+ Reply to Thread
Results 1 to 6 of 6

Lookup and sum on multiple repeating values.

  1. #1
    Registered User
    Join Date
    05-19-2017
    Location
    Toronto
    MS-Off Ver
    Office
    Posts
    2

    Lookup and sum on multiple repeating values.

    I have tried sorting this out myself but have run aground! Any help is much appreciated.

    (I need to do this without removing duplicated or using a pivot table, so I think I need to use sum and lookup in an array form possibly?)


    I have two columns. One has a list of product Id's with some repeated values, the other is numeric values.

    A B
    ProductBall 2
    ProductBall 3
    ProductGizmo 6
    ProductGadget 7
    ProductGadget 1

    I need a formula that looks up repeated values(product names) in column A and sums the values in column B if column a names are identical. So the above table would yield this:

    A B
    ProductBall 5. <--- I need solely the formula for this cell.
    ProductGizmo 6
    ProductGadget 8


    Thanks again if anyone has insight!
    Tristan
    Last edited by tdurie; 05-19-2017 at 10:04 PM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,690

    Re: Lookup and sum on multiple repeating values.

    Offhand two ways come to mind. 1 would be to create a pivot table.
    another would be to copy the cells from column A into another location (for example column D) then use the remove duplicates function in excel, then use this formula to sum the dups in columns A and B... =sumif(A:A,D1,B:B) (this assumes you put your copied values in column D)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    05-19-2017
    Location
    Toronto
    MS-Off Ver
    Office
    Posts
    2

    Re: Lookup and sum on multiple repeating values.

    Hi Sam,

    Thanks, I just tried what you said but I think I need to do it using lookup and sum. The data I'm working with is large and changes on a daily basis, so I don't want to manually remove duplicated everytime ( I also need them kept seperate as other columns can't be added together). I know there is a way of do it with these two formulas but this blog if found has examples which are slightly too confusing for me: https://www.ablebits.com/office-addins-blog/2014/08/05/excel-vlookup-sum-sumif/

    Cheers,
    Tristan

  4. #4
    Forum Contributor
    Join Date
    08-13-2009
    Location
    Caribbean
    MS-Off Ver
    Excel 2003
    Posts
    129

    Re: Lookup and sum on multiple repeating values.

    couldn't a SUMIFS do this?

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Lookup and sum on multiple repeating values.

    Mystic... yes. I'd generate a list of product codes in E2, using this formula, copied down:

    =IFERROR(INDEX($A$2:$A$6,MATCH(0,INDEX(COUNTIF($E$1:$E1,$A$2:$A$6),0),0)),"")

    and SUMIF in F2, copied down:

    =IF(E2="","",SUMIF(A:A,E2,B:B))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

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

    Re: Lookup and sum on multiple repeating values.

    And the same file, with a pivot table.
    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.

+ 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. Returning multiple distinct/repeating values for vlookup or index-match
    By amatvien in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-21-2018, 01:14 PM
  2. return multiple values based on a repeating number, Index and Match?
    By damagedbodies in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-28-2017, 10:42 AM
  3. Switching 1 column's multiple (repeating) values to Headers?
    By ishahmir in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-20-2016, 01:15 PM
  4. creating a repeating formula that doesn't show repeating values
    By cybershot in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 12-09-2010, 06:12 PM
  5. Lookup with Repeating Values
    By pauldaddyadams in forum Excel General
    Replies: 15
    Last Post: 11-03-2009, 02:42 PM
  6. Replies: 6
    Last Post: 10-25-2009, 07:21 AM
  7. Repeating values in multiple columns
    By kollizion in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-21-2008, 09:16 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