+ Reply to Thread
Results 1 to 3 of 3

Merge identical cells in one column, adding corresponding values in next

  1. #1
    Registered User
    Join Date
    02-01-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    2

    Merge identical cells in one column, adding corresponding values in next

    Hi,

    So I have a large sheet that contains 2 columns; one is components and the other is an inventory number. The components are repeated throughout the sheet. I can sort them and have all of the similar ones together, but I need a fast way to merge them while adding the values :

    This:
    Column A - Column B
    x - 1
    x - 2
    x - 1
    x - 4
    y - 1
    y - 5
    y - 1
    z - 1
    z - 1
    z - 1

    Needs to become this:
    Column A - Column B
    x - 8
    y - 7
    z - 3

    There are roughly 4000 rows in the sheet covering about 400 products so it'll take me a long time to do by hand. What is an easier way to accomplish this?

    Thank you.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Merge identical cells in one column, adding corresponding values in next

    • copy column A and B into C and D
    • highlight column C and D
    • remove duplicates - deselect D (ie select only C)...this will give you a unique list of Item codes
    • then do a SUMIF formula for the combined numbers
      Formula: copy to clipboard
      Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by humdingaling; 02-01-2016 at 11:05 PM. Reason: Sumif, not countif
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    02-01-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    2

    Re: Merge identical cells in one column, adding corresponding values in next

    That worked perfectly. Thank you!

    David

+ 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] Merge identical cells in table
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-26-2015, 01:35 AM
  2. [SOLVED] Looking up unique values from a column of identical cells
    By Groovicles in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-14-2013, 10:35 AM
  3. VBA to merge cells with identical content
    By juangar1992 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-27-2013, 04:05 PM
  4. Creating an Special Key Column for Cells with Identical Values
    By walle786 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-24-2013, 02:42 AM
  5. Replies: 0
    Last Post: 07-27-2010, 03:08 PM
  6. Can't paste as merge cells aren't identical
    By Muttley in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2006, 11:15 AM
  7. [SOLVED] REQ - Help with merge/delete of duplicate/identical cells
    By Mark in forum Excel General
    Replies: 1
    Last Post: 05-04-2005, 08:06 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