Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Need to add Sequence/Instance Number to Duplicate Records

Hello,

How would I go about adding a Sequence/Instance Number to Duplicate Records?

Example: I have a list of duplicate site names and I want the 1st instance
to be "1" and the 2nd instance to be "2".

Site | Seq/Inst Num
ABBEVILLE | 1
ABBEVILLE | 2
AIRPORT MEMPHIS | 1
AIRPORT MEMPHIS | 2
AIRPORT NASHVILLE | 1
AIRPORT NASHVILLE | 2

Thanks!
Jaret
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Need to add Sequence/Instance Number to Duplicate Records

Try this in cell B2, then copy down as far as your data goes.

=COUNTIF($A$2:A2,A2)

HTH
Elkar


"mcmilja" wrote:

Hello,

How would I go about adding a Sequence/Instance Number to Duplicate Records?

Example: I have a list of duplicate site names and I want the 1st instance
to be "1" and the 2nd instance to be "2".

Site | Seq/Inst Num
ABBEVILLE | 1
ABBEVILLE | 2
AIRPORT MEMPHIS | 1
AIRPORT MEMPHIS | 2
AIRPORT NASHVILLE | 1
AIRPORT NASHVILLE | 2

Thanks!
Jaret

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Need to add Sequence/Instance Number to Duplicate Records

=A2&"|"&COUNTIF($A$2:$A2,A2)

and copy down

--
__________________________________
HTH

Bob

"mcmilja" wrote in message
...
Hello,

How would I go about adding a Sequence/Instance Number to Duplicate
Records?

Example: I have a list of duplicate site names and I want the 1st instance
to be "1" and the 2nd instance to be "2".

Site | Seq/Inst Num
ABBEVILLE | 1
ABBEVILLE | 2
AIRPORT MEMPHIS | 1
AIRPORT MEMPHIS | 2
AIRPORT NASHVILLE | 1
AIRPORT NASHVILLE | 2

Thanks!
Jaret



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Need to add Sequence/Instance Number to Duplicate Records

Thanks Elkar!

"Elkar" wrote:

Try this in cell B2, then copy down as far as your data goes.

=COUNTIF($A$2:A2,A2)

HTH
Elkar


"mcmilja" wrote:

Hello,

How would I go about adding a Sequence/Instance Number to Duplicate Records?

Example: I have a list of duplicate site names and I want the 1st instance
to be "1" and the 2nd instance to be "2".

Site | Seq/Inst Num
ABBEVILLE | 1
ABBEVILLE | 2
AIRPORT MEMPHIS | 1
AIRPORT MEMPHIS | 2
AIRPORT NASHVILLE | 1
AIRPORT NASHVILLE | 2

Thanks!
Jaret

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete records when certain records have duplicate column data JVroom New Users to Excel 1 January 26th 09 06:23 PM
duplicate records Zack Excel Discussion (Misc queries) 1 August 22nd 08 08:24 PM
duplicate records rcarlo Excel Discussion (Misc queries) 1 December 11th 07 11:30 PM
Macro help inserting records by date sequence. Richard Excel Discussion (Misc queries) 4 September 18th 07 11:05 PM
Faster way to duplicate worksheet with sequence ??? [email protected] Excel Discussion (Misc queries) 1 January 11th 06 03:15 AM


All times are GMT +1. The time now is 10:53 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"