2 If formulas

yrajnani

New Member
Joined
Aug 18, 2010
Messages
25
Can we merge below mentioned 2 if formulas in 1

=IF(ISNUMBER(DR26),IF(DR26>1.2,"Excess Stock",IF(DR26>1.2,"Adequate Stock","Short Supply")),"")
&
=IF(AND(CZ26=0,DP26>=1),"Non Moving Stock"," ")

Any help will be highly appreciated.

Thanks,
Yogita
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
your first formula is flawed, it will never give adequate stock, only short or excess.
 
Upvote 0
I could if i knew the correct criteria, the only information I have so far is your formula, nothing that tells me what you're trying to do.
 
Upvote 0
Hi,

My condition is mentioned below:

Closing Stock =cell DG2, Average sales= cell CZ2
DP23= Average closing stock
Cell DR2 has closing stock/average sale qty

If DR2 is greater than 1.2 = excess stock
If DR2 is between 1-1.2= adequate stock and if
DR2 is less than 1.2 = short stock.
Also if Average closing stock is greater than 1 and average sale is 0, then it should state non-moving stock

Pls let me know if any further info is required.
Thanks,
Yogita
 
Upvote 0
If DR2 is greater than 1.2 = excess stock
If DR2 is between 1-1.2= adequate stock and if
DR2 is less than 1.2 = short stock.

Your logic is still flawed, 1.1 is between 1 and 1.2 making it adequate, and is also less than 1.2 making it short.

Which is it? It can't be both!

Maybe this will work.

PHP:
=IF(AND(CZ26=0,DP26>=1),"Non Moving Stock",IF(DR26>1.2,"Excess Stock",IF(DR26<1,"Short Supply","Adequate Stock")))
 
Upvote 0
Thanks, its working.. also can u pls help me in adding 1 more thing.
Incase, the formula returns an error, it should be blank.

Thanks,
Yogita
 
Upvote 0
PHP:
=IFERROR(IF(AND(CZ26=0,DP26>=1),"Non Moving Stock",IF(DR26>1.2,"Excess Stock",IF(DR26<1,"Short Supply","Adequate Stock"))),"")
 
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,795
Members
452,943
Latest member
Newbie4296

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