If statement question greater than or equal too

zoomaj

New Member
Joined
Jul 20, 2011
Messages
9
Hi guys,

i am trying to do an if statement and ran into some trouble! and need some help, its probably very simple but i cant figure it out,

basically i have a stock inventory with the amounts left displayed in percentages,

ie

100%
75%
50%
25%
0%



=IF(J11>=90,"STOCK OK",IF(J11=50,"HALF STOCK",IF(J11<=25,"25% STOCK LEFT",IF(J11<=0,"ORDER STOCK","ORDER STOCK"))))

im using the formula above, sometimes when i have 80% stock left it says order stock, any ideas why this is please? as im pretty sure< means less than?

cheers
 
=LOOKUP(J11,{0,1,25,50,75,100},{"Out of Stock","25% Stock Left","??? Half stock left","??? Order stock","??? Stock OK","Full Stock"})
 
Upvote 0

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
0 = out of stock
Greater than or equal to 1 and less than or equal to 24 = ??? 25% stock left
Greater than or equal to 25 and less than or equal to 49 = ??? half stock leftt
Greater than or equal to 50 and less than or equal to 74 = ??? order stock
Greater than or equal to 75 = ??? stock ok
100 = Full stock
I would create this 2 column table based on those definitions:

Book1
LM
110%out of stock
1210%25% stock left
1325%half stock left
1450%order stock
1575%stock ok
16100%Full stock
Sheet1

Then...

J11 = some percentage like 31%

This formula entered in K11:

=LOOKUP(J11,L11:M16)
 
Upvote 0

Forum statistics

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