counting range

  • Thread starter saman110 via OfficeKB.com
  • Start date
S

saman110 via OfficeKB.com

In column A I have numbers. How can I in column B start a count from 1 each
time that I get different number. For example:


What I have:

A

200
200
200
200
788
788
788
922
922
922
922

The result:

A B

200 1
200 2
200 3
200 4
788 1
788 2
788 3
922 1
922 2
922 3
922 4
 
T

T. Valko

One way:

Numbers in the range A1:A11

Enter 1 in cell B1

Enter this frmula in B2 and copy down to B11:

=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

Top