IF Statement

Moxioron

Active Member
Joined
Mar 17, 2008
Messages
436
Office Version
  1. 2019
Hello all.

Here is what I am trying to do:

IF F6 < 25, $1,200
IF F6 > 72 AND < 80, $2,400
IF F6 >= 80, $3,600

I am certain there is a simple formula, but I just can't seem to think today!

Thank you.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
What do you want if F6 is between 25 and 72?
 
Upvote 0
Nothing... it's a job grade thing ... 14 - 25 72 - 80 and then > 80

Thank you.
 
Upvote 0
Gotcha, try:

=LOOKUP(F6,{0,14,25,73,80},{"",1200,"",2400,3600})

This will return:
  • 0-13 = Blank
  • 14-24 = 1200
  • 25-72 = Blank
  • 73-79 = 2400
  • 80+ = 3600
 
Upvote 0
The lookup function works great for this. If you are interested in seeing the "if"and "then" here is another way.
=IF(AND(F6>72,F6<80),2400,IF(F6<25,1200,IF(F6>=80,3600,"")))
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,713
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