+ Reply to Thread
Results 1 to 2 of 2

Number identical cells within groups of data

  1. #1
    Registered User
    Join Date
    01-21-2014
    Location
    Belgium
    MS-Off Ver
    Office 365
    Posts
    21

    Number identical cells within groups of data

    I'm looking for a macro that adds a number to cells that are duplicates of preceding cells. The counter should reset everytime it hits a cell with "**" in it. Example:

    AA
    BB
    CC
    **
    BB
    CC
    BB
    AA
    **
    PP
    RR
    BB
    CC
    **
    AA
    AA
    BB
    NN
    BB
    BB
    **

    Should become:
    AA
    BB
    CC
    **
    BB
    CC
    BB2
    AA
    **
    PP
    RR
    BB
    CC
    **
    AA
    AA2
    BB
    NN
    BB2
    BB3
    **

    Same example in attachment. Example_numbers.xlsx

    Thanks in advance!
    Last edited by boomcie; 07-08-2015 at 08:27 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Number identical cells within groups of data

    Hi,

    I hope this gets you on your way...

    Please Login or Register  to view this content.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

+ 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] How do I divide a data set into a specified number of groups
    By jstanley41 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-27-2012, 06:58 PM
  2. Colour And Shift Number Of Cell Groups Specified By Two Cells
    By swordswinger710 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-13-2012, 09:54 AM
  3. Replies: 1
    Last Post: 07-22-2010, 08:39 AM
  4. Grouping cells with identical data
    By ChacoKevy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-23-2008, 03:53 PM
  5. [SOLVED] Counting the number of rows between identical data.
    By Art MacNeil in forum Excel General
    Replies: 7
    Last Post: 04-22-2006, 01:25 PM

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