+ Reply to Thread
Results 1 to 3 of 3

using Sumproduct with multiple criteria

  1. #1
    Registered User
    Join Date
    07-19-2007
    Posts
    51

    using Sumproduct with multiple criteria

    I have a spreadsheet with attribute values in two columns; "month" in column A and "state" in column B
    I need a sumproduct function that will add the values contained in column C when i am calculating a particular month/state total.
    I tried the following, i think im close, but it didnt work
    =SUMPRODUCT(--($A$1:$A$5= "Jan"),($B$1:$B$5= "NY"),(C1:C5))

    thanks

  2. #2
    Registered User
    Join Date
    10-30-2007
    Posts
    51
    Sometimes a little trial and error does the trick. I've only ever needed the preceeding "--" when making it work with named ranges. I'm still not sure why.

    For your example try this:

    =SUMPRODUCT(($A$1:$A$5= "Jan")*($B$1:$B$5= "NY")*(C1:C5))

  3. #3
    Registered User
    Join Date
    07-19-2007
    Posts
    51
    thanks for the help, that did the trick

+ 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