+ Reply to Thread
Results 1 to 3 of 3

Deleting duplicates but moving the data to another cell

  1. #1
    Registered User
    Join Date
    10-28-2008
    Location
    Huffman, TX
    Posts
    7

    Deleting duplicates but moving the data to another cell

    Ok, so we have one worksheet With 3 col. & 1000 rows

    Col1 has product sku
    col 2 has Categorys
    Col 3 is Price

    What I am trying to do is take col 1 and remove the duplicates but take the information and add it to col 2. for example


    COL1 COL2 COL3
    9559 Networking 19.99
    9559 Computers 19.99
    9665 Computers 27.99
    9667 Hardware 199.95
    9667 Computers 199.95



    This is what I would like for it to look like

    COL1 COL2 COL3
    9559 Networking | Computers 19.99
    9665 Computers 27.99
    9667 Hardware | Computers 199.95


    I hope I have explained this enough if not then let me know and I will try to explain it some more.
    Last edited by VBA Noob; 02-09-2009 at 03:16 PM.

  2. #2
    Forum Contributor
    Join Date
    10-11-2007
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    251

    Re: Deleting duplicates but moving the data to another cell

    I tried to come up with some formula to try to solve your problem.

    I solved COL 1 and 3, what i canīt solve is COL2. Maybe someone else knows how to concatenate two cell values using an array. I donīt think it is possible. Maybe with som VBA?

    COL1 COL2 COL3
    9559 Networking | Computers 19.99
    9665 Computers 27.99
    9667 Hardware | Computers 199.95


    See attached workbook.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Deleting duplicates but moving the data to another cell

    Here you go. The shortened list in F:H.

    F1 has a unique formula, array entered (Ctrl-Shift-Enter)
    F2 and down share a formula, array entered
    G1 and down use an installed UDF to string concat, array entered
    H1 and down is a simple match
    Attached Files Attached Files
    Last edited by JBeaucaire; 02-11-2009 at 01:51 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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