Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Sequential numbering when X column repeats records

I have excel file that has 2 rows

Row 1 has records
A
A
A
B
B
C
A
Row 2 need to have the number of times row one repeats a record.
Something like this
1
2
3
1
2
1

Any formula that will find records on column one and sequentially number
column B depending on amount of records?

Thank you

-RoMo
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Sequential numbering when X column repeats records

Im sorry. I meant to say columns not rows

I have excel file that has 2 Columns

Column 1 has records
A
A
A
B
B
C
A
Column 2 need to have the number of times row one repeats a record.
Something like this
1
2
3
1
2
1

Any formula that will find records on column one and sequentially number
column B depending on amount of records?



"robpiolink" wrote:

I have excel file that has 2 rows

Row 1 has records
A
A
A
B
B
C
A
Row 2 need to have the number of times row one repeats a record.
Something like this
1
2
3
1
2
1

Any formula that will find records on column one and sequentially number
column B depending on amount of records?

Thank you

-RoMo

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sequential numbering when X column repeats records

Assuming the data starts in cell A2...

Enter 1 in cell B2

Enter this formula in cell B3 and copy down as needed:

=IF(A3=A2,B2+1,1)

--
Biff
Microsoft Excel MVP


"robpiolink" wrote in message
...
I have excel file that has 2 rows

Row 1 has records
A
A
A
B
B
C
A
Row 2 need to have the number of times row one repeats a record.
Something like this
1
2
3
1
2
1

Any formula that will find records on column one and sequentially number
column B depending on amount of records?

Thank you

-RoMo



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 527
Default Sequential numbering when X column repeats records

If the list begins in A2 then the formula in B2 is:

=COUNTIF($A$2:A2,A2) and copy down.

If the list is likely to be extended later use

=IF(ISBLANK(A2),"",COUNTIF($A$2:A2,A2)) and copy down as far as you like.

Peter Atherton

"robpiolink" wrote:

I have excel file that has 2 rows

Row 1 has records
A
A
A
B
B
C
A
Row 2 need to have the number of times row one repeats a record.
Something like this
1
2
3
1
2
1

Any formula that will find records on column one and sequentially number
column B depending on amount of records?

Thank you

-RoMo

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
Remove Sequential Repeats Jakobshavn Isbrae Excel Discussion (Misc queries) 2 February 9th 09 04:27 PM
sequential numbering Connie Excel Discussion (Misc queries) 2 June 20th 08 10:50 PM
PO with sequential numbering with start / end numbering [email protected] Excel Discussion (Misc queries) 1 April 24th 07 04:38 PM
Sequential Numbering Mel Excel Discussion (Misc queries) 10 May 9th 06 04:12 PM
Populate column in sequential order by number of records araki Excel Discussion (Misc queries) 1 April 28th 06 08:13 PM


All times are GMT +1. The time now is 01:53 PM.

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

About Us

"It's about Microsoft Excel"