Only ever having used Excel at the most basic level i have a
requirement where i need to increment a value base on the number of
times a particular cell value occurs to end up with a sequence number.
i.e. if i have a range of cells
sprocket
sprocket
widget
widget
widget
thingy
I need to generate a sequence number as follows
sprocket 001
sprocket 002
widget 001
widget 002
widget 003
thingy 001
any clues would be much appreciated
cheers
Paul
assume your example starts in A1,
in b1 put this and copy down, format cells accordingly to get leading zeros..
=COUNTIF($A$1:A1,A1)
--
Regards,
Peo Sjoblom
"Paul" <paul...@nsb.co.uk> wrote in message news:df7ae5ab.02051...@posting.google.com...
If your sequence starts in cell A2, enter the following formula in cell
B2:
=TEXT(IF(A3=A2,B2+1,1),"000")
and copy down. This will not work if you start in row 1.
--
Regards,
Vasant.
**No direct emails please--keep discussion in newsgroup.**
"Paul" <paul...@nsb.co.uk> wrote in message
news:df7ae5ab.02051...@posting.google.com...
=IF(A2<>A1,1,B1+1)
Then select B column, right click, Format Cells..., click
on Number tab, select Custom, and key in 000 on your
right. Hit OK.
HTH
Jason
Atlanta, GA
>.
>