+ Reply to Thread
Results 1 to 3 of 3

Merging duplicate cells

  1. #1
    Registered User
    Join Date
    06-06-2008
    Posts
    1

    Merging duplicate cells

    Hi
    I am using Excel 2007 and i wanted to know if i could merge duplicate cells in one column in one cell, but the cells are in random order e.x

    F1 R1 0.7
    F3 R6 0.2
    F5 R5 0.1
    F1 R3 0.5
    F3 R2 0.6

    and so on.
    I want to know if there is a button so that it will make my data look like this

    F1 R1 0.7
    R3 0.5
    F3 R5 0.1
    R2 0.6
    F5 R5 0.1

    Thank you in advance

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    Should the result be this?

    F1 R1 0.7
    R3 0.5
    F3 R2 0.6
    R6 0.2
    F5 R5 0.1

    If so, if you take your original data in column A, then do a sort A-Z, then in cell A6 type F5 (this is to get the result above)

    Then in B1 put this formula and drag down to B5

    =IF(LEFT(A1,2)=LEFT(A2,2),A1,RIGHT(A1,6))
    Last edited by oldchippy; 06-07-2008 at 06:14 AM.
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717
    here is the VBA code to achieve similar result

    Please Login or Register  to view this content.

+ 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. Adding adjacent cells when value of cells is the same
    By mike d in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-15-2008, 05:45 AM
  2. Merging and unmerging cells...
    By chaudhry_arif in forum Excel General
    Replies: 1
    Last Post: 01-30-2008, 08:40 AM
  3. Merging duplicate records in a sheet
    By nd2006 in forum Excel General
    Replies: 1
    Last Post: 02-24-2007, 02:03 AM
  4. finding duplicate cells in different columns?
    By gurj_sandhu in forum Excel General
    Replies: 1
    Last Post: 12-21-2006, 10:53 AM
  5. 'Filter/Clean' Cells; 2 questions
    By EHS in forum Excel General
    Replies: 12
    Last Post: 11-15-2006, 07:32 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