Advertisement
asdfasdfadsf

Untitled

Jan 22nd, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #+TBLNAME: funds
  2. | year | amount |
  3. |------+--------|
  4. | 2010 | 1234 |
  5. | 2011 | 1254 |
  6. | 2012 | 4000 |
  7. | 2013 | 123 |
  8.  
  9. #+TBLNAME: diff
  10. | year | diff |
  11. |------+-------|
  12. | 2011 | 20 |
  13. | 2012 | 2746 |
  14. | 2013 | -3877 |
  15. #+TBLFM: @2$1=remote(funds,@3$1)::@2$2=remote(funds,@3$2)-remote(funds,@2$2)
  16. #+TBLFM: @3$1=remote(funds,@4$1)::@3$2=remote(funds,@4$2)-remote(funds,@3$2)
  17. #+TBLFM: @4$1=remote(funds,@5$1)::@4$2=remote(funds,@5$2)-remote(funds,@4$2)
  18.  
  19. how to make the above simpler?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement