jmunsch

opencalc: if statements

Aug 14th, 2014
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. # list of functions https://wiki.openoffice.org/wiki/Documentation/Reference/Calc_functions
  2. #Open Calc If statement rounding example
  3. # any value >=20 round else same
  4.  
  5. =IF($Sheet1.F3 >= 20; ROUNDUP($Sheet1.F3/2); $Sheet1.F3)
  6. =IF($Sheet1.F3 >= 20; ROUNDDOWN($Sheet1.F3/2); 0)
  7. =IF(Sheet1.F3=I3)
  8.  
  9. # search cell A1 by substring return 1 for true, 0 for false
  10. =IF(ISNUMBER(SEARCH("stringhere"; A1)); 1; 0)
  11. # search cell for multiple keys return 1 if true 0 if false
  12. =IF(ISNUMBER(AND(SEARCH("WOMENS"; D25); SEARCH("NFL"; D25))); 1; 0)
  13.  
  14. =IF(OR(ISNUMBER(SEARCH("Bag", B1)), ISNUMBER(SEARCH("Purse", B1))),1, 0)
Advertisement
Add Comment
Please, Sign In to add comment