+ Reply to Thread
Results 1 to 9 of 9

Is a multiple SUMIF formula possible in Excel 2003?

  1. #1
    Registered User
    Join Date
    12-02-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    40

    Is a multiple SUMIF formula possible in Excel 2003?

    After searching the forum it seems that what I need is SUMIFS, but that's not available in my rather dated version of Excel.

    I need a SUMIF formula that will return a total from Col.I only if specified conditions are met in both Col.J and Col.K.

    I've attempted to attach a copy of the worksheet, which is a list of wiring required to make up a harness (loom) for a car. Cell W21 contains a single SUMIF formula, but it needs to be combined with the formula in X21, in other words both cable size (Col.J) and colour (Col.K) coincide.

    Any help with this will be greatly appreciated.

    Richard
    Attached Files Attached Files

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Is a multiple SUMIF formula possible in Excel 2003?

    I didn't download your file.

    In Excel 2003 (and earlier) you can use the SUMPRODUCT function.

    An example:

    =SUMPRODUCT(--(Range1="this"),--(Range2="that"))

    Better if you use cells to hold the criteria:

    A1 = this
    B1 = that

    =SUMPRODUCT(--(Range1=A1),--(Range2=B1))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    12-02-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    40

    Re: Is a multiple SUMIF formula possible in Excel 2003?

    Sorry, but I don't understand how this can serve the purpose. I looked at SUMPRODUCT but discarded it because it multiplies.
    I need to add the corresponding values in Col.I.

    The Excel helps says this:

    "Multiplies corresponding components in the given arrays, and returns the sum of those products."

    It also says: "SUMPRODUCT treats array entries that are not numeric as if they were zeros."

    Obviously this won't work when the criteria are text, not numeric.

    Would an array formula of some kind work, perhaps?

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Is a multiple SUMIF formula possible in Excel 2003?

    OK, I (reluctantly) downloaded your file.

    This will do what you want:

    =SUMPRODUCT(--(J$3:J$79=U21),--(K$3:K$79=V21),I$3:I$79)

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Is a multiple SUMIF formula possible in Excel 2003?

    P.S.

    SUMPRODUCT is one of the most versatile and powerful functions Excel has.

    To see some of what it can do see this...

    http://xldynamic.com/source/xld.SUMPRODUCT.html

  6. #6
    Registered User
    Join Date
    12-02-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    40

    Re: Is a multiple SUMIF formula possible in Excel 2003?

    Brilliant, Tony—many thanks indeed. I did try your suggestion but omitted the hyphens (-) because I didn't realise they were part of the formula.

    What exactly is their function? It's important that I understand how this works.

    Thanks again for your help.

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Is a multiple SUMIF formula possible in Excel 2003?

    =SUMPRODUCT(--(J$3:J$79=U21),--(K$3:K$79=V21),I$3:I$79)

    These expressions will return an array of TRUE or FALSE:

    J$3:J$79=U21

    J3=U21
    J4=U21
    J5=U21
    etc
    etc

    K$3:K$79=V21

    K3=V21
    K4=V21
    K5=v21
    etc
    etc

    The double unary minus -- will convert the TRUE or FALSE to 1 or 0:

    --TRUE = 1
    --FALSE = 0

    Then, all these arrays are multiplied together and summed:

    1*1*10=10
    0*1*5=0
    1*0*5=0
    1*1*12=12
    etc
    etc

    {10,0,0,12}

    =SUMPODUCT({10,0,0,12}) = 22

    This is covered in the link I provided.

  8. #8
    Registered User
    Join Date
    12-02-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    40

    Re: Is a multiple SUMIF formula possible in Excel 2003?

    Thanks again, Tony, for the clear explanation and also for the link. I had no idea Excel functions could be manipulated in so many ways, thus keeping my outdated version alive.

    Cheers,

    R.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Is a multiple SUMIF formula possible in Excel 2003?

    You're welcome. Thanks for the feedback!

    BTW, I still use Excel 2002 as my default version!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] SUMIF Formula for Excel 2003
    By forexcellence13 in forum Excel General
    Replies: 13
    Last Post: 02-10-2013, 03:59 AM
  2. Multiple formula for accounting excel 2003
    By wakeup75 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-19-2012, 04:07 PM
  3. Replies: 2
    Last Post: 04-24-2012, 10:36 AM
  4. SUMIF Multiple arrays in 2003
    By snoproladd in forum Excel General
    Replies: 0
    Last Post: 02-20-2012, 03:50 PM
  5. SUMIF multiple criteria (Excel 2003 - Windows XP)
    By barongreenback in forum Excel General
    Replies: 4
    Last Post: 03-13-2010, 06:19 AM
  6. SUMIF Multiple Criteria - Excel 2003
    By VegasL in forum Excel General
    Replies: 10
    Last Post: 01-11-2010, 08:30 AM
  7. SUMIF with multiple criteria in Excel 2003
    By stoneglobe in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-05-2009, 08:33 AM
  8. [SOLVED] How do I use wildcard characters in Excel 2003 sumif formula?
    By Erik T in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-13-2006, 04:45 PM

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