+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    02-20-2010
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2007
    Posts
    2

    ordering forecast formula

    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).
    1. 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.
    1. 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!
    Attached Files Attached Files

  2. #2
    Forum Guru Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007
    Posts
    3,441

    Re: ordering forecast formula

    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.

  3. #3
    Registered User
    Join Date
    02-20-2010
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: ordering forecast formula

    Thank you Palmetto, you saved my day!

  4. #4
    Forum Guru Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007
    Posts
    3,441

    Re: ordering forecast formula

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0