![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Location: California, USA
Posts: 2
|
I'm looking for a formula that will sequence records based on a condition. Example: I have data listing employees by job code. I need to sequence those employees starting with "1" and restart when there is a different job code.
[ This Message was edited by: John Munoz on 2002-02-26 14:26 ] |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Perth Australia
Posts: 1,567
|
Hi
Please post an example of what you are trying to do. Can you not just use the sort function? regards Derek |
|
|
|
|
|
#3 |
|
New Member
Join Date: Feb 2002
Location: California, USA
Posts: 2
|
I'm looking for a formula that can create a sequence and restart based on changes in the job code. Naturally, the job codes would have to be sorted first for this to work in a formulaic fasion.
Example: Job Code Sequence Name 00001 1 Joe Blow 00001 2 Danny Boy 00002 1 Suzy Smith 00002 2 Donald Duck 00002 3 Micky Mouse |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
Quote:
in your above example, in cell B2 try the following : =COUNTIF($A$2:A2,A2) and drag down Formula still retains its integrity if you add or delete rows in your range and I'll stick my neck out saying it still works if not sorted by job code Hope this helps Chris [ This Message was edited by: Chris Davison on 2002-02-26 19:18 ] [ This Message was edited by: Chris Davison on 2002-02-26 19:19 ] |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|