Numbers IF Function has me a bit lost (I don’t deal in Functions often). ![]()
It’s only partly successful so far.
I need a cell to display 0 if a calculation result is 0 or negative. Otherwise it should display the result. Should be simple, but… I’m trying to use IF, in Functions pane:
IF(if-expression, if-true, if-false)
if-expression: A logical expression. if-expression can contain anything as long as the expression can be evaluated as a boolean value. If the expression evaluates to a number, 0 is considered to be FALSE, and any other number is considered to be TRUE.
if-true: The value returned if if-expression is TRUE. if-true can contain [any value](file:///Applications/Numbers.app/Contents/Resources/FunctionHelp.bundle/Contents/Resources/en.lproj/ffa361bc137.html#ffa361bc137). If if-true is omitted (there’s a comma, but no value) and if-expressionevaluates to TRUE, IF returns 0.
if-false: An optional argument specifying the value returned if if-expression is FALSE. if-false can contain any value. If if-false is omitted (there’s a comma, but no value) and if-expression evaluates to FALSE, IF returns 0. If if-false is entirely omitted (there’s no comma after if-true) and if-expression evaluates to FALSE, IF returns FALSE.
I’ve now re-read the instructions about the sixth time and finally it looks like what I’ve entered is acting correctly:
but is not what I’m seeking. I need, in the example above, C6 to display “2”. I’ve tried adding a comma after the if-true quotes, and a comma and empty quotation marks but those don’t result in displaying the number in a6.
Is IF the wrong function, or should the syntax be different or what?
(just a nudge in the right direction, or keyword would be sufficient, not asking for paragraphs of explanation, I should be able to figure this out on my own but today, ah…)

