Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Creating a simple IF-THEN formula

I'm almost embarrassed to ask this, but I have searched the "iWork Formula and Function Help" in vain, and any similar questions asked in these forums are complex and really unrelated to what I need to do. What is the basic syntax for an IF-THEN formula in Numbers 09?


For example: I want one cell to show the sum of two other cells, but if that sum is over a certain limit, I want it to show the limit. In other words I want to tell Numbers something like this: "If C1 plus C2 are less than 24, enter the sum of C1 plus C2. If their sum is more than 24, enter 24." I've been looking for two hours now, and I simply cannot find anything that gives me the basic syntax to such a statement, certainly not in "iWork Formula and Function Help." Please help if you can. Thanks.

MacBook Pro, Mac OS X (10.6.8)

Posted on May 7, 2012 1:13 PM

Reply
Question marked as Best reply

Posted on May 7, 2012 1:39 PM

Building a little on what Wayne gave you, the actual syntax is basically the following:


IF( <some test that will result in a true or false>, <What to do if the test is true>, <What to do if False>)


The test is going to -almost- always going to include a cell reference and comparison sign, like A2=2 or like in Waynes above (C1+C2)<25.


The place to put what you would want if True or False contains the equation (note that it's without the equal sign). But it is the actual equation you would have typed by hand.


so in Waynes example (formatted with the areas with similar formatting to help you see where each part matches up):

IF( <some test that will result in a true or false>, <What to do if the test is true>, <What to do if False>)

IF((C1+C2)<25, C1+C2, 24)



Jason

20 replies

Sep 3, 2013 11:20 AM in response to j.scottsikes

you can use a conditional test for a range of test values like:


=sumif(A, "Groceries", B)



column A refers to the test values

column B refers the sum value


you can replace the fixed test value "Groceries" with a cell reference is needed in which case the cell you reference would contains the text condition. When a cell in column A equals the value in the second argument ("Groceries" in this case) the corresponding value in the same row of column B is accumulated into the sum

Creating a simple IF-THEN formula

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.