+ Reply to Thread
Results 1 to 4 of 4

[SOLVED] Need calculation based on 2 conditions

  1. #1
    Registered User
    Join Date
    12-11-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2003
    Posts
    4

    [SOLVED] Need calculation based on 2 conditions

    Hi -

    I'm stumped. I am working on an expense report (similiar to a check book register) where Column A lists the months of the year and Column C lists a description, for example supplies. I'm trying to create a formula that reads a specific month of the year in Column A, for example January, then reads Column C looking for "supplies" to then return a calcuation subtracting columns E from Column F.

    Thanks,

    Kristen
    Last edited by kguenzel; 12-14-2012 at 11:41 AM. Reason: Solved

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Need calculation based on 2 conditions

    With your data in a, c, e and f and in rows 1 thru 12, you could use this formula:

    =SUMPRODUCT(($A$1:$A$12="January")*($C$1:$C$12="supplies")*($E$1:$E$12-$F$1:$F$12))

    Adjust for your ranges.

    The above formula will subtract as Column E - Column F. If you want it the other way around, change the last part to:
    ($F$1:$F$12-$E$1:$E$12)

    - Moo

  3. #3
    Registered User
    Join Date
    12-11-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Need calculation based on 2 conditions

    Thank you, Thank you, Thank you - that totally worked!

  4. #4
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: [SOLVED] Need calculation based on 2 conditions

    Glad to help.

    - Moo

+ 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