IF statement

mickyd67

Board Regular
Joined
Jul 13, 2011
Messages
70
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I should probably know this but I have got a mental block

I have a quantity of stock in Cell A

If that goes to -1 or less then I want to say "Supply Exceeded"
If that is between -1 & +1 I want to say "Supply Consumed"
If that is >1 I want to say "Supply Available"

Anyone able to help me with that please?

Thanks :)
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Try a nested IF, i.e.
Excel Formula:
=IF(A1<=-1,"Supply Exceeded",IF(A1>1,"Supply Available","Supply Consumed"))
Note it is unclear what should happen if it exactly equals 1.
Currently, it will return "Supply Consumed".
If you want "Supply Available", changed "A1>1" to "A1>=1".
 
Upvote 0
Solution
Try a nested IF, i.e.
Excel Formula:
=IF(A1<=-1,"Supply Exceeded",IF(A1>1,"Supply Available","Supply Consumed"))
Note it is unclear what should happen if it exactly equals 1.
Currently, it will return "Supply Consumed".
If you want "Supply Available", changed "A1>1" to "A1>=1".

Great. Thanks, Joe!

I'll adjust the formula for exactly 1 now that I know how to do the rest of it
 
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,215,084
Messages
6,123,029
Members
449,092
Latest member
ikke

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