Solved

Excel Macro Create Squence Numbers for Duplicate Names

Posted on 2014-02-05
2
209 Views
Last Modified: 2014-02-05
hi,

I need help to add sequence numbers for duplicate names

For Example:

Column A   Column B
Thomas             0
Thomas             1
Larry                  0
Larry                  1
Larry                  2


I have a large excel file that has multiple name

Either a formula or VBscript would work, but I don't know how to start it
0
Comment
Question by:thomasm1948
2 Comments
 
LVL 19

Accepted Solution

by:
regmigrant earned 500 total points
ID: 39837636
if list starts in A1

put =COUNTIF($A$1:A1,A1)-1 in column b and copy down
0
 

Author Closing Comment

by:thomasm1948
ID: 39837679
Excellent, Thank you very much.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now