Hi,
I have a slight problem with a file I'm working on.
Basically I have a file with some columns:
Sold (How many products I sold last week), Forecast (How many products that I predict to sell coming week), Stock (How much I have in stock, of the product) and Order (How much I want to order).
- When I input a how many products I have sold into the "Sold" column, a number pops up in the "Forecast" column, this is a prediction of how many products I'm going to sell.
- The next step is that I input how many products I have in stock.
So what I want to achieve is that once I input a number into any of the stock columns, the "Order" amount is calculated automatically.
Sold=X
Forecast=Y
Stock=Z
Order= D
So I would like to have a function (formula) like this in the "Order" column.
IF X >= Y then X-Y otherwise Y-X,
IF (X-Y or Y-X) >= Z then (X-Y or Y-X)-Z otherwise Z-(X-Y or Y-X)
Any hints and tips on how I can achieve this would be greatly appreciated.
Thanks in advance!
Try this in cell I12, based on how I understand the logic as explained in your workbook.
=IF(MAX(D12-E12,E12-D12)>=H12,MAX(D12-E12,E12-D12)-H12,H12-MAX(D12-E12,E12-D12))
Palmetto
Do you know . . . ?
You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.
Thank you Palmetto, you saved my day!
Glad to be of help.
If you are satisfied with the solution, please mark your thread as solved by going to the top of YOUR first post, click on Thread Tools, then Go Advanced and choose the [SOLVED] prefix.
Feedback is always appreciated. See my signature for how to go about it.
Palmetto
Do you know . . . ?
You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks