Formula Help Please

Joe Galvan

Board Regular
Joined
Jun 24, 2008
Messages
152
=IF(AE4-((Sum((O$4:O$11))<$X4,AE4-((Sum((O$4:O$11)))+(((ROUND(($Z4-(AE4-((Sum((O$4:O$11)))/$Y4,0)))*$Y4),AE4-((Sum((O$4:O$11)))


The underlined parts in the formula used to reference just one cell... now i need to to sum a range first, then complete the rest of the function.

Not sure if sticking a Sum function in the middle of the formula was the right thing to do....

Any help is greatly appreciated.



thanks,
JOE
 

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.
Original Formula
=IF((AE4-$AC4)<$X4,AE4-$AC4+(((ROUND(($Z4-(AE4-$AC4))/$Y4,0)))*$Y4),AE4-$AC4)


The formula is for a forecasting model... basically it takes demand, re-order points/quantites, and current inventory and tells you when you will need to produce more product.

AE= Inventory Position
AC=weekly deman
X=Re-Order Point
Z=Re-Order point and Quantity combined
Y= Re-Order Quantity

AE=11,060
AC=500
X=250
Z=1,250
Y= 1,000


So the formula removes the demand, while making sure that it hasnt dropped below the re-order point... once it does drop, it put the re-order quantity into inventory as if you produced that product.. and starts all over again.


Sorry I cannot upload anything from the business computer...


thanks,
JOE
 
Upvote 0
This sorts out the sum bit but I'm not sure it returns what you want

=IF(AE4-SUM(O4:O11)<X4,AE4-SUM(O4:O11)+ROUND(Z4-(AE4-SUM(O4:O11))/Y4,0)*Y4,AE4-SUM(O4:O11))
 
Upvote 0
Cell 'AC', needs to become a SUM formula... i need it to sum a range first, before, the range is O4-O11


normally I would just sum it and continue using the one cell reference... but Im working within the confinds of a formatted, established workbook...
 
Upvote 0
not sure whats going on it will not let me post the full formula...one more go

=IF(AE4-SUM(O4:O11)<X4,AE4-SUM(O4:O11)+ROUND(Z4-(AE4-SUM(O4:O11))/Y4,0)*Y4,AE4-SUM(O4:O11))
 
Upvote 0
Use the "Evaluate Formula" tool to see where it it going wrong!!!
II don't see why it shouldn't work!!
lenze
 
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