+ Reply to Thread
Results 1 to 8 of 8

SumProduct Formula with Multiple Criteria

  1. #1
    Registered User
    Join Date
    02-20-2012
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    74

    Post SumProduct Formula with Multiple Criteria

    I have a spreadsheet with a budget and by month by product. I am trying to use the Sumproduct Formula to calculate the YTD budget based on 2 criteria. I've looked at others formula's and i cannot seem to understand why my formula isn't working.

    Here is how i have it laid out:

    Column c6:c14 = Product
    column d5:05 = Month (January, February, March... )
    Begining in column d6:o13 i have the data that i am trying to sum. For instance if June, i want is to sum everything less than June so May - Dec. for a particular product. Here is my formula.

    =SUMPRODUCT(('YTD Volume Pivot'!$C$11:$J$11=$C27)*('YTD Volume Pivot'!$A$12:$A$27<$D$5),'YTD Volume Pivot'!$C$12:$J$27)

    PLEASE HELP. I am getting desperate.
    Attached Files Attached Files
    Last edited by krunk; 06-05-2012 at 08:25 PM. Reason: adding attachment

  2. #2
    Registered User
    Join Date
    03-08-2011
    Location
    Dover NH
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: SumProduct Formula with Multiple Criteria

    It might be easier to understand what you want and possible solutions if you attach a spreadsheet.
    Thanks,
    Evelyn

  3. #3
    Registered User
    Join Date
    02-20-2012
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    74

    Re: SumProduct Formula with Multiple Criteria

    trying to attach...

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: SumProduct Formula with Multiple Criteria

    Is that the workbook you wanted to attach? I don't see the relation
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Registered User
    Join Date
    02-20-2012
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    74

    Re: SumProduct Formula with Multiple Criteria

    this is just the summary sheet and the budget sheet is the other tab where i am trying to pull the data. if you look at the ytd columns in I and F 27 it will show you how i am trying to match the aggregator name and Month to the budget sheet to pull in where the column header and row match the criteria. The formula just returns the wrong value and i cannot figure out what i am doing wrong. The actually sheet is much larger and it will not let me attached.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: SumProduct Formula with Multiple Criteria

    Without seeing the source workbook, it is not possible to fully diagnose.

    Suggestions I can make are make sure that there are no extra spaces in text fields, that spelling matches exactly, and that number fields are actually numbers, and not text that look like numbers and that you have covered the full ranges.... the fact that you are getting back results means, the formula is generally okay.... but that is all I can offer without seeing the source.

  7. #7
    Registered User
    Join Date
    02-20-2012
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    74

    Re: SumProduct Formula with Multiple Criteria

    test.xlsxHere is the sheet again, i highlighted the cell where i am trying to return the sumproduct using the Forecast tab. Cell G16 to be exact. It is returning 71,702 but it should be returning 66,755.

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: SumProduct Formula with Multiple Criteria

    It is because you have months as text strings... which you can't use the boolean check accurately against.

    I suggest you change the months in the Forecast sheet to the first of each month... then format the cells as Custom with type: mmmm (this will show the month name only).

    Then you change formula in G16 to:

    =SUMPRODUCT((Forecast!$C$6:$C$13=$D2)*(Forecast!D4:O4<(D5&" 1")+0),Forecast!D6:O13)

+ 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