+ Reply to Thread
Results 1 to 5 of 5

Need to add items based on multiple matches.

  1. #1
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Need to add items based on multiple matches.

    I am sure there is a compact formula, just can't put it together.
    I have two columns.
    Col A has names, Col B has qty.
    I need a formula that can look for Three names [call them A,B,C] and add all items from Col B matching these names.



    Here's a typical setup.

    A 10
    B 15
    C 20
    B 10
    C 15
    A 20
    D 25
    E 10
    F 15
    C 20
    A 15
    B 20
    D 15
    F 25
    C 10

    Thanks for your help.
    1. Click on the * Add Reputation if you think this helped you
    2. Mark your thread as SOLVED when question is resolved

    Modytrane

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Need to add items based on multiple matches.

    You can do it with a SUMIF function
    Enter formula in E2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B C D E
    1
    2 A 10 A 45
    3 B 15 B 45
    4 C 20 C 65
    5 B 10
    6 C 15
    7 A 20
    8 D 25
    9 E 10
    10 F 15
    11 C 20
    12 A 15
    13 B 20
    14 D 15
    15 F 25
    16 C 10
    Or if you want a total for A, B and C
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by AlKey; 10-31-2018 at 05:14 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Need to add items based on multiple matches.

    You could have used a pivot table as well.

  4. #4
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Need to add items based on multiple matches.

    Thank you both for suggestions.
    Appreciate your help.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,162

    Re: Need to add items based on multiple matches.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] Sum value of column based on matches across multiple rows.
    By systemlordanubis in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-29-2016, 06:25 AM
  2. [SOLVED] Multiple lookup criteria and sum values based on matches.
    By skonduru in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-31-2016, 11:53 PM
  3. [SOLVED] What formulas can I use to find matches based on multiple criteria
    By Jonathan68 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-21-2014, 02:22 PM
  4. Replies: 2
    Last Post: 03-03-2014, 10:03 PM
  5. Replies: 6
    Last Post: 03-06-2013, 04:02 AM
  6. Replies: 2
    Last Post: 07-19-2011, 04:08 PM
  7. Replies: 4
    Last Post: 06-14-2010, 09:26 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