+ Reply to Thread
Results 1 to 2 of 2

Merge cells which contain the same data

  1. #1
    Registered User
    Join Date
    01-21-2008
    Posts
    1

    Merge cells which contain the same data

    Hello,

    I would like to create some code which checks a row of data and merges the cells which contain the same data.

    The data in Excel is as such:

    A1 B1 C1 D1 E1 F1
    05-06 06-07 06-07 07-08 07-08 08-09

    The outcome for the above example would be that cells B1 and C1 would merge and then D1 and E1 would merge as they contain the same data.

    I am unable to simply merge them myself using the 'merge function' as they change on a quarterly basis and when they change it may be that different cells require merging, so I'd want to create a button that automatically does this for me.

    Many thanks in advance for any help / advice you can give.

    Thanks
    Cesarina

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    I wouldn't used Merged Cells, they generally cause problems.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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