+ Reply to Thread
Results 1 to 4 of 4

trying to add numbers that correspond to multiple names listed in column using SUMIFS

  1. #1
    Registered User
    Join Date
    09-12-2014
    Location
    Huntington Beach, California
    MS-Off Ver
    2007
    Posts
    4

    trying to add numbers that correspond to multiple names listed in column using SUMIFS

    I am new to excel. I think this is a basic question for the experts but i am stuck. Thank you for any help.

    I have a column of various names. They are listed in a column B2 down to B6.
    I then have a column of various numbers in column C C2 down to C6.

    I want to sum up and display the numbers horizontally that matches up with the name.


    In a cell D1 to display my answer I have this formula.

    =SUMIFS(C2:C6,B2:B6,"Mary",B2:B6,"Jim")

    Why does this not work? I would have thought I was saying addup the numbers in column c between C2 and C6 that only corresponds to the names Mary and Jim. However it doesnt work. Can someone tell me the correct method. I am new to SUMIF and SUMIFS. I could use SUMIF and it worked with one name but now I want to do 2 names.
    thanks

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: trying to add numbers that correspond to multiple names listed in column using SUMIFS

    SUMIFS doesn't work that way. All the tests would have to be true, and a B2 can't be both Mary and Jim.

    Use this: =SUMPRODUCT(($B$2:$B$6="Jim")+($B$2:$B$6="Mary"),C2:C6)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    09-12-2014
    Location
    Huntington Beach, California
    MS-Off Ver
    2007
    Posts
    4

    Re: trying to add numbers that correspond to multiple names listed in column using SUMIFS

    Thank you!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: trying to add numbers that correspond to multiple names listed in column using SUMIFS

    As it appears you've reached a conclusion, I've marked this thread SOLVED for you.
    FYI, this is done through the Thread Tools located above the first post in this thread. Thanks.

+ 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] Summing numbers only if they correspond to another column???
    By pshearer in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-17-2014, 10:32 AM
  2. Get values from same cell address from listed file names in column....
    By Prasadg2007 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-05-2013, 12:16 AM
  3. Sumifs with multiple criteria for multiple names
    By mcayea in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 05-07-2013, 10:55 AM
  4. [SOLVED] Rule to find cells in column A that correspond to multiple values in column B
    By margaretanne in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-11-2013, 07:24 PM
  5. Replies: 6
    Last Post: 06-26-2012, 11:19 AM

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