+ Reply to Thread
Results 1 to 3 of 3

sequential numbering duplicate data

  1. #1
    Registered User
    Join Date
    07-07-2010
    Location
    Cape Cod
    MS-Off Ver
    Excel 2007
    Posts
    31

    sequential numbering duplicate data

    I have a worksheet (brief copy attached) that has duplicate data "h" that I want to assign a sequential number to the left column of. 1st "h" 1, 2nd "h" 2 and so on to be used for a vlookup function in another sheet.This sheet is constantly growing with an copy/insert macro I created so I need it to expand as other entries "h" are made. Here is a before and after example.
    Attached Files Attached Files
    Last edited by mlopardo; 07-08-2010 at 09:29 AM. Reason: more info and examples

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: sequential numbering duplicate data

    Hi Mlopardo, welcome to the forum.

    Please post a sample sheet that shows a before AND after view of how your data should look. I can't tell if you simply want numbers in column A any time the letter "h" appears in column B, if you want the same to apply to any repeated letter or number in column B, etc..

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: sequential numbering duplicate data

    Thanks for updating the spreadsheet, Mlopardo.

    In A3 put this formula:

    =IF(B3="h",COUNTIF($B$3:B3,"h"),"")

    Fill that down column A as far as necessary and you should see your numbers.

+ 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