+ Reply to Thread
Results 1 to 21 of 21

Multiple SUMIF?!

Hybrid View

  1. #1
    Registered User
    Join Date
    02-05-2006
    Posts
    86

    Multiple SUMIF?!

    hi
    is there anyway to sum the total of certain cells in one column if they meet criteria in two other columns?!
    for example
    F...........I...........U
    736......CMP......-250
    736......REC.......-100
    729......CMP......-150
    736......CMP......-200
    711......CMP........-50
    736......ZAC.......-150

    i need to sum the total of the cells in column U, where column F is 736 AND column I is CMP?!
    how can i go about this?
    thanks
    Last edited by rjmills18; 07-17-2008 at 10:44 AM.

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

    =Sumproduct((F1:F100=736)*(I1:100="CMP")*(U1:U100))

    adjust ranges to suit
    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.

  3. #3
    Registered User
    Join Date
    02-05-2006
    Posts
    86
    it is returning #VALUE,
    the range is to cell 1000, and the 736 etc are formatted as text, here is what i put:
    =SUMPRODUCT((F1:F1000="736")*(I1:I1000="CMP")*(U1:U1000))
    cheers

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Does U1 have text in it (a column header perhaps?)

    Try:

    =SUMPRODUCT((F1:F1000="736")*(I1:I1000="CMP"),(U1:U1000))

  5. #5
    Registered User
    Join Date
    02-05-2006
    Posts
    86
    thanks colin, the #VALUE has gone but it now returns nothing when there are cells that meet the criteria???!!

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

    anyways... are you sure there are no extra spaces before after the 736 or CMP entries.?

  7. #7
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256
    Hi,

    I'm Colin. I posted a reply on this thread at 4:02 - exactly the same time as you. It appears that it has been moderated / removed?

    Colin

    Edit:
    Hi NBVC,

    Re. the information you provided in #8, I will quickly summarise the 'missing post' in here to improve the readability of the thread. Thanks.

    Essentially my reply was:
    =====
    The most likely reason for that formula returning #VALUE is that you have column headers, ie. Cell U1 contains text. To cater for this try amending your formula to this:

    =SUMPRODUCT(-(F2:F1000="736"),-(I2:I1000="CMP"),(U2:U1000))
    =====

    So our replies complimented each other's nicely!
    Last edited by Colin Legg; 07-17-2008 at 11:18 AM.

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    hmmm...strange... I didn't see that post..... maybe because you say it was exact same time, somehow it got blown away. Not sure...

  9. #9
    Registered User
    Join Date
    02-05-2006
    Posts
    86
    there are no spaces in any cell, these entries are selected from a drop-down list. starting the array at F3 etc removed the ~value but i am still getting a 0 returned!!

+ 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