+ Reply to Thread
Results 1 to 3 of 3

Sum multiple lookup_values occurences

  1. #1
    Registered User
    Join Date
    06-25-2012
    Location
    Virginia Beach, VA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Sum multiple lookup_values occurences

    The sheet I'm using has part numbers in column A, sub-part numbers in column B and costs in column C. The same part number may be listed 5 times along with multiple sub-part numbers. I would like to do a VLOOKUP (or maybe I need to use some other function) of the total costs for each part number, but when I do VLOOKUP it just gives me the cost for the first part number in the list.

    Example:

    A - B - C
    CPU- Monitor- $3.00
    CPU- Mouse- $1.00
    CPU- Keyboard $5.00

    I want to get $9.00, not $3.00.

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

    Re: Sum multiple lookup_values occurences

    Try SUMIF instead.

    Eg.

    If your VLOOKUP was =VLOOKUP(X1,B:C,2,FALSE), then your SUMIF would be =SUMIF(B:B,X1,C:C)
    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
    06-25-2012
    Location
    Virginia Beach, VA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Sum multiple lookup_values occurences

    Thanks! Got it.

+ 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