Apple Event: May 7th at 7 am PT

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

Numbers '08 "If" with a greater or less than answer

Hi all - I have a cell with a sum D & E28 (merged cell) that I want another cell B30 to display a value based on what is in cell D & E28.

If cell D & E28 is 8 or less I want B30 to say 8. If D & E28 is greater than 8.001 but less than 12 I want B30 to say 12 and if D & E28 is greater than 12.001 but less then 18 I want B30 to say 18
Any ideas?

Thanks
Peter

Mac Mini, Mac OS X (10.4.10)

Posted on Apr 21, 2008 5:23 AM

Reply
Question marked as Best reply

Posted on Dec 21, 2010 2:58 PM

pdmjr,

=IF(ROUND(D28,3)<=8.001, 8, IF(ROUND(D28,3)<=12.001, 12, IF(ROUND(D28,3)<=18, 18, "Over 18")))

should do it for you.

The nested IF statements handle your logic. The ROUND statements handle internal math errors and your need to break at .001. You didn't say what to do with inputs of 18 or greater, so I suggested a text string for that case.

The form of the IF statement is: If (logical statement) is True, Then do this, Else do this. Your case requires three tests. You could quibble about a value that is, say, 12.0011 and rounds to 12.001, but I doubt you are concerned about that level of detail. If so let me know.

Does this help?

Regards,

Jerry

Message was edited by: Jerrold Green1
3 replies
Question marked as Best reply

Dec 21, 2010 2:58 PM in response to pdmjr

pdmjr,

=IF(ROUND(D28,3)<=8.001, 8, IF(ROUND(D28,3)<=12.001, 12, IF(ROUND(D28,3)<=18, 18, "Over 18")))

should do it for you.

The nested IF statements handle your logic. The ROUND statements handle internal math errors and your need to break at .001. You didn't say what to do with inputs of 18 or greater, so I suggested a text string for that case.

The form of the IF statement is: If (logical statement) is True, Then do this, Else do this. Your case requires three tests. You could quibble about a value that is, say, 12.0011 and rounds to 12.001, but I doubt you are concerned about that level of detail. If so let me know.

Does this help?

Regards,

Jerry

Message was edited by: Jerrold Green1

Numbers '08 "If" with a greater or less than answer

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