incremental counter

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have seen this befroe but can not locate. I need to implement a counter
based on a previose cell. If it have

123
123
124
125
125
125
125
I need
123 1
123 2
124 1
125 1
125 2
125 3
125 4
 
Try something like this:

B2: =IF(A2<>A1,1,B1+1)
copy down as far as needed

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro
 
if your series starts in A1, then B1 = 1 and B2 would be
=IF(A2=A1,B1+1,1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top