+ Reply to Thread
Results 1 to 8 of 8

Dublicates, combine and sums

  1. #1
    Registered User
    Join Date
    03-14-2019
    Location
    Denmark
    MS-Off Ver
    15.33
    Posts
    2

    Question Dublicates, combine and sums

    Hi guys,

    Really hope one of you guys have a little time to help an excel newbie in his way of becoming an excel champion.

    What I want to do is:

    (A) and (B) is connected in rows and the value of each row is placed in (C) as a number.

    However in column (A) and (B) there are a bunch of duplicates.

    How can I remove duplicates but in the same time combine the sum the values of (C).

    Example:
    (A) (B) (C)
    1231 Something 1
    1231 Something 3
    1244 SometingElse 1
    1231 Something 1

    Output should be:
    (A) (B) (C)
    1231 Something 5
    1244 SometingElse 1
    Attached Files Attached Files

  2. #2
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,765

    Re: Dublicates, combine and sums

    Welcome to the forum!

    A .txt file is not of much use - please attach the Excel workbook.

    Are you using Excel for Mac?
    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.

  3. #3
    Forum Contributor
    Join Date
    08-14-2018
    Location
    Hanoi, Vietnam
    MS-Off Ver
    2016
    Posts
    118

    Re: Dublicates, combine and sums

    It could be done with 2 steps.
    Step1: Getting list of unique string.
    Step2: Sum the values with sumif formula.

  4. #4
    Registered User
    Join Date
    03-14-2019
    Location
    Denmark
    MS-Off Ver
    15.33
    Posts
    2

    Re: Dublicates, combine and sums

    Oh I have updated the file now.

    Is it possible for you to show me how you would do that? Is there a good keyword i should youtube or something like that? :-)

    Really wanna learn how to do it :-)
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    08-14-2018
    Location
    Hanoi, Vietnam
    MS-Off Ver
    2016
    Posts
    118

    Re: Dublicates, combine and sums

    Plz try
    Step 1:
    Please Login or Register  to view this content.
    Step 2:
    Please Login or Register  to view this content.
    Last edited by congnt92; 03-14-2019 at 07:44 AM. Reason: code tag

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Dublicates, combine and sums

    The new table starts from E2:
    E2:
    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    F2:
    Please Login or Register  to view this content.
    G2:
    Please Login or Register  to view this content.
    Drag all down as far as possibleUntitled.png
    Quang PT

  7. #7
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Dublicates, combine and sums

    in "F2" also use
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Dublicates, combine and sums

    As another alternative for returning unique ID/Produkt
    • copy A2:B?? and paste into E2
    • while that paste range is still selected click Data > Remove Duplicates (in the Data Tools group)
    • click OK


    Then apply the formula of choice from above posts for the sums.
    Dave

+ 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. Combine Vlookup with iferror and sums it up
    By gill123 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-13-2018, 01:49 PM
  2. Check for dublicates
    By raviveda in forum Excel General
    Replies: 4
    Last Post: 12-17-2014, 08:22 PM
  3. combine macro that sums per color with a specific date (day)
    By lelebrasa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-25-2014, 06:47 PM
  4. Replies: 1
    Last Post: 11-07-2013, 04:55 AM
  5. [SOLVED] Delete dublicates for each row from several columns
    By sunn1ly in forum Excel General
    Replies: 4
    Last Post: 05-21-2013, 04:33 AM
  6. Prevent Dublicates
    By kameran in forum Excel General
    Replies: 0
    Last Post: 10-01-2011, 03:23 PM
  7. Search for dublicates
    By Manos in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-02-2006, 02:45 AM

Tags for this Thread

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