range of values in IF

pedroc

New Member
Joined
Jul 20, 2011
Messages
22
I would like excel to return a result for any values that fall outside of a range (19-59) - what's the easiest way to do this using an IF function?

Cheers

pedroc
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
using comparisons like any other if statements and using AND operator (search it up)
< 19? > 59??
 
Upvote 0
I would like excel to return a result for any values that fall outside of a range (19-59) - what's the easiest way to do this using an IF function?

Cheers

pedroc
What result?

Maybe something like this...

=IF(OR(A2<19,A2>59),"Outside","OK")
 
Upvote 0
Are you going to be doing multiple ranges with different results?

Like
If between 0 and 10 Then x
If between 11 and 20 Then y
If between 21 and 30 Then z

??

If so, a lookup is much more appropriate than IF's.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,730
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top