+ Reply to Thread
Results 1 to 8 of 8

SUMIF when checking two columns.

  1. #1
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    SUMIF when checking two columns.

    Morning,

    Any help would be greatly appreciated, thanks...

    I'm using: =SUMIF($I$2:$I$249,"s", AC$2:AC$249) to add up the value in AC if there is an S in column I.

    I now want to amend this to only add up the values in column AC if there is an S in column I and a M in column B.

    Thanks
    Last edited by Cmorgan; 08-10-2012 at 08:50 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: SUMIF when checking two columns.

    Use the formula somproduct for that.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Re: SUMIF when checking two columns.

    Sorry, I'm a bit of a dummy, where would I put the extra argument?

    Thanks

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: SUMIF when checking two columns.

    Using 2010 SUMIFS will also do the trick

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: SUMIF when checking two columns.

    Try this one.

    =sumproduct(($I$2:$I$249="s")*($b$2:$b$249="b")*( AC$2:AC$249))

  6. #6
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Re: SUMIF when checking two columns.

    Thanks, now trying to do it with an average:

    =IFERROR(AVERAGEIF($I$2:$I$249,"s",AC$2:AC$249),"")

    I want it to also check to see if M is in column B.

    Many thanks for your help on this.

  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: SUMIF when checking two columns.

    Hi

    As you are in Excel 2010 you can use.

    1)=SUMIFS(AC:AC,B:B,"B",I:I,"S")

    2) =AVERAGEIFS(AC:AC,B:B,"M",I:I,"S")
    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.

  8. #8
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Re: SUMIF when checking two columns.

    Many thanks for this, it's worked a treat

+ 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