ROUNDUP inside an IF formula

MrQuestion

New Member
Joined
Mar 3, 2013
Messages
7
=IF(C13<=B3*D3,"IN STOCK","BACKORDER"),IF(B3*D3/C13>=1,"IN STOCK ",ROUNDUP(B3*D3/C13,0))

Can someone tell me what is wrong with this formula? The first part works, but when I combine a second if function it doesn't work. It gives me a value error.

This is what was assigned to me.


  • A number.
    This means we do not have enough on-hand in our inventory, but we can get it in time. And, we need this many boxes from our supplier.
    Let's look at the glue rows. The order requests 40 glue sticks but we have only 36 in stock. It takes 1 day for us to get more from our supplier and we have 2 days to fill the order. So we have time to get this item in stock and fulfill the order, and we need 1 box of glue sticks to do it. You may want to use the =ROUNDUP function here.
 
Excellent.....(y)....would you like to share your final formula ??
 
Upvote 0

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi! need your help to explain this roundup function. Blue text area is okay. Not understand next syntax properly . Thank you.
Here M8=26000 , K8= 4, I8 = 18

=IF(M8<=5000,20*K8+(M8/I8),IF(((ROUNDUP(M8/I8/25000,0))*20)>50,50,(ROUNDUP(((M8-5000)/I8)/25000,0)*20))*K8+(M8/I8))
 
Upvote 0

Forum statistics

Threads
1,214,620
Messages
6,120,559
Members
448,970
Latest member
kennimack

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