A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Numbering Sequence



 
 
Thread Tools Display Modes
  #1  
Old June 2nd, 2010, 12:04 AM posted to microsoft.public.excel.misc
DataGuy
external usenet poster
 
Posts: 11
Default Numbering Sequence

Hello,

I have a list of employee ID numbers in column "A". I need a formula to
count starting with one but, when the employee ID changes, I need to start a
new count again starting with one. Incase what I said above is confusing,
below is a sample of what I need to achieve. I need a counting formula to
calculate column "B" but change when the employee ID changes.

Employee ID Sequence
10001 1
10001 2
10001 3
10001 4
10001 5
10001 6
10002 1
10002 2
10002 3
10002 4
10002 5
10002 6
10002 7
10003 1
10003 2


  #2  
Old June 2nd, 2010, 12:21 AM posted to microsoft.public.excel.misc
L. Howard Kittle
external usenet poster
 
Posts: 516
Default Numbering Sequence

In the sequence column, (C here), first cell =IF(B1"",1,"")
In the second cell and pull down =IF(B2=B1,C1+1,1)

HTH
Regards,
Howard

"DataGuy" wrote in message
...
Hello,

I have a list of employee ID numbers in column "A". I need a formula to
count starting with one but, when the employee ID changes, I need to start
a
new count again starting with one. Incase what I said above is confusing,
below is a sample of what I need to achieve. I need a counting formula to
calculate column "B" but change when the employee ID changes.

Employee ID Sequence
10001 1
10001 2
10001 3
10001 4
10001 5
10001 6
10002 1
10002 2
10002 3
10002 4
10002 5
10002 6
10002 7
10003 1
10003 2




  #3  
Old June 2nd, 2010, 12:25 AM posted to microsoft.public.excel.misc
FSt1
external usenet poster
 
Posts: 2,788
Default Numbering Sequence

hi
i did a simple test and this is working on your example data.
=IF(A1=A2,B1+1,1)
the above assumes that emp ids are in A column and formula is in B column.
it also assumes that emp ids are sorted desending.
formula looks left....is above same, yes = add 1, else start over at 1.
adjust to suit.

regards
FSt1

"DataGuy" wrote:

Hello,

I have a list of employee ID numbers in column "A". I need a formula to
count starting with one but, when the employee ID changes, I need to start a
new count again starting with one. Incase what I said above is confusing,
below is a sample of what I need to achieve. I need a counting formula to
calculate column "B" but change when the employee ID changes.

Employee ID Sequence
10001 1
10001 2
10001 3
10001 4
10001 5
10001 6
10002 1
10002 2
10002 3
10002 4
10002 5
10002 6
10002 7
10003 1
10003 2


  #4  
Old June 2nd, 2010, 01:46 AM posted to microsoft.public.excel.misc
FSt1
external usenet poster
 
Posts: 2,788
Default Numbering Sequence

good call. adds clairification that i didn't specify.

regards
FSt1

"L. Howard Kittle" wrote:

In the sequence column, (C here), first cell =IF(B1"",1,"")
In the second cell and pull down =IF(B2=B1,C1+1,1)

HTH
Regards,
Howard

"DataGuy" wrote in message
...
Hello,

I have a list of employee ID numbers in column "A". I need a formula to
count starting with one but, when the employee ID changes, I need to start
a
new count again starting with one. Incase what I said above is confusing,
below is a sample of what I need to achieve. I need a counting formula to
calculate column "B" but change when the employee ID changes.

Employee ID Sequence
10001 1
10001 2
10001 3
10001 4
10001 5
10001 6
10002 1
10002 2
10002 3
10002 4
10002 5
10002 6
10002 7
10003 1
10003 2




.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:09 PM.


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