Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: How to sequence using a condition

  1. #1
    New Member
    Join Date
    Feb 2002
    Location
    California, USA
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #2
    Board Regular
    Join Date
    Feb 2002
    Location
    Perth Australia
    Posts
    1,584
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi
    Please post an example of what you are trying to do.
    Can you not just use the sort function?
    regards
    Derek

  3. #3
    New Member
    Join Date
    Feb 2002
    Location
    California, USA
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #4
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Millbank, London, UK
    Posts
    1,790
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-02-26 16:58, John Munoz wrote:
    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
    Hi John,

    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 ]

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •