• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • Last Modified:

Excel Macro Create Squence Numbers for Duplicate Names

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
thomasm1948
Asked:
thomasm1948
1 Solution
 
regmigrantCommented:
if list starts in A1

put =COUNTIF($A$1:A1,A1)-1 in column b and copy down
0
 
thomasm1948Author Commented:
Excellent, Thank you very much.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now