Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
cynthiabryant
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
cynthiabryant
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Duke Carey
 
Posts: n/a
Default 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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counter in a worksheet Jason B Excel Worksheet Functions 3 January 26th 06 07:00 PM
Did I stump everyone? Counter that ignores hidden rows TechMGR Excel Discussion (Misc queries) 2 April 5th 05 08:45 PM
Creating a counter that does not include hidden rows TechMGR Excel Discussion (Misc queries) 1 April 4th 05 10:11 PM
Row counter in formula jjpcpanama Excel Worksheet Functions 5 March 23rd 05 06:20 AM
Increment a counter in Excel COSdl Excel Worksheet Functions 2 March 4th 05 09:47 PM


All times are GMT +1. The time now is 04:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"