Solved

Excel Macro Create Squence Numbers for Duplicate Names

Posted on 2014-02-05
2
210 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Excel Formula 4 28
FormulaArray VBA Issue 6 17
macro for closing opened workbook 6 19
Move entire row to another workbook based on cell value 20 45
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

910 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

22 Experts available now in Live!

Get 1:1 Help Now