+ Reply to Thread
Results 1 to 3 of 3

Calculate Values based on Multiple Conditions

  1. #1
    Registered User
    Join Date
    05-06-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    24

    Calculate Values based on Multiple Conditions

    Hi All,

    I have a slight problem with calculating end state values based on a time period of activity.

    Basically, I wanting to calculate Receipts minus Issues in a cummulative manner but only when there is instances of activity. At the end, I want the formula to be able to reduce the On Hand quantity when the Receipts have ceased.

    I have enclosed my required end state values in the attached sample file for reference.

    Thanks heaps in advance.
    Attached Files Attached Files
    Last edited by creativefusion; 05-24-2009 at 09:28 PM. Reason: Solved

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Calculate Values based on Multiple Conditions

    Put this formula in B4 and copy across, it seems to calculate the same way you did in the red cells:

    =MAX(SUM($B2:B2)-SUM($B$3:B3),0)

    If you want the decimal places the same, you will have to adjust the number formatting for that row.


    EDIT: I just duplicated your methodology, I wouldn't necessarily do it that way. Since this appears to work, too, this is probably what I would do:

    B4: =B2-B3
    C4: =MAX(B4+C2-C3,0)
    ...copied across to the end.
    Last edited by JBeaucaire; 05-24-2009 at 09:22 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    05-06-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Calculate Values based on Multiple Conditions

    Hi JB

    It's true.

    You are a rocket scientist. You make it look so easy.

    Thanks heaps JB.

+ Reply to 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.6.0 RC 1