+ Reply to Thread
Results 1 to 7 of 7

Sum if based on 2 criteria

  1. #1
    Registered User
    Join Date
    01-04-2012
    Location
    Preston, England
    MS-Off Ver
    Excel 2010
    Posts
    49

    Sum if based on 2 criteria

    I have a table that i trying to do accounts on.

    Currently i have a date colum A, a value in column D, a catagory in column E.

    What i want to achive is a total for each item if the date is within the same month and in the same catagory. Kind of hard to explain.

    I have posted a blank excel with the headers and just below ive shown what i would like to achieve (however ive not used formulas). Hiope this helps explain a little more

    I have coloured the feild yellow which im looking for a formula for

    Thanks for any suggestions

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sum if based on 2 criteria

    No attachement but looks like to need SUMIFS function.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    11-05-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    229

    Re: Sum if based on 2 criteria

    Hi Sam,

    Looks like your file didn't get posted. Can't see it anywhere!
    Taming the Excel dragon... www.TheExcelphile.com

  4. #4
    Registered User
    Join Date
    01-04-2012
    Location
    Preston, England
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Sum if based on 2 criteria

    it would help if i attatched the item :s
    Attached Files Attached Files

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sum if based on 2 criteria

    Do you mean?

    =SUMPRODUCT((MONTH($A$6:$A$12)=MONTH(A6))*($E$6:$E$12=E6)*($D$6:$D$12))

    In G6 and copy down.

  6. #6
    Registered User
    Join Date
    01-04-2012
    Location
    Preston, England
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Sum if based on 2 criteria

    Thats brilliant thanks, Just to improve upon that formula is there any way of making it a rolling total for the catagorys?

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sum if based on 2 criteria

    ...s there any way of making it a rolling total for the catagorys?
    can you explain a little more your request?

+ 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