+ Reply to Thread
Results 1 to 5 of 5

incremental counter

  1. #1
    cynthiabryant
    Guest

    incremental counter

    I have seen this befroe but can not locate. I need to implement a counter
    based on a previose cell. If it have

    123
    123
    124
    125
    125
    125
    125
    I need
    123 1
    123 2
    124 1
    125 1
    125 2
    125 3
    125 4

  2. #2
    Ron Coderre
    Guest

    RE: incremental counter

    Try something like this:

    B2: =IF(A2<>A1,1,B1+1)
    copy down as far as needed

    Does that help?

    ***********
    Regards,
    Ron

    XL2002, WinXP-Pro


    "cynthiabryant" wrote:

    > I have seen this befroe but can not locate. I need to implement a counter
    > based on a previose cell. If it have
    >
    > 123
    > 123
    > 124
    > 125
    > 125
    > 125
    > 125
    > I need
    > 123 1
    > 123 2
    > 124 1
    > 125 1
    > 125 2
    > 125 3
    > 125 4


  3. #3
    Gary''s Student
    Guest

    RE: incremental counter

    in B1 put 1
    in B2 put:
    =IF(A2=A1,B1+1,1)
    and copy down
    --
    Gary's Student


    "cynthiabryant" wrote:

    > I have seen this befroe but can not locate. I need to implement a counter
    > based on a previose cell. If it have
    >
    > 123
    > 123
    > 124
    > 125
    > 125
    > 125
    > 125
    > I need
    > 123 1
    > 123 2
    > 124 1
    > 125 1
    > 125 2
    > 125 3
    > 125 4


  4. #4
    cynthiabryant
    Guest

    RE: incremental counter

    Thanks that did the trick

    "Gary''s Student" wrote:

    > in B1 put 1
    > in B2 put:
    > =IF(A2=A1,B1+1,1)
    > and copy down
    > --
    > Gary's Student
    >
    >
    > "cynthiabryant" wrote:
    >
    > > I have seen this befroe but can not locate. I need to implement a counter
    > > based on a previose cell. If it have
    > >
    > > 123
    > > 123
    > > 124
    > > 125
    > > 125
    > > 125
    > > 125
    > > I need
    > > 123 1
    > > 123 2
    > > 124 1
    > > 125 1
    > > 125 2
    > > 125 3
    > > 125 4


  5. #5
    Duke Carey
    Guest

    RE: incremental counter

    if your series starts in A1, then B1 = 1 and B2 would be
    =IF(A2=A1,B1+1,1)

    "cynthiabryant" wrote:

    > I have seen this befroe but can not locate. I need to implement a counter
    > based on a previose cell. If it have
    >
    > 123
    > 123
    > 124
    > 125
    > 125
    > 125
    > 125
    > I need
    > 123 1
    > 123 2
    > 124 1
    > 125 1
    > 125 2
    > 125 3
    > 125 4


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1