View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
style0 style0 is offline
external usenet poster
 
Posts: 3
Default incremental counting based on criteria

Got it, thanks again!

"Domenic" wrote:

You're very welcome!

Basically, when the formula is first entered in C1, the range is $B$1:B1
and the criteria is B1. When the formula is copied and pasted or
dragged down to C2, the range changes to $B$1:B2 and the criteria
changes to B2.

As you can see, the starting reference for the range does not change and
remains at $B$1, whereas the ending reference for the range changes from
B1 to B2, and the criteria changes from B1 to B2.

That's because the starting reference is an absolute reference
(specified by the $ signs) and so does not change when copied, whereas
the reference for the ending reference and criteria are relative
references (relative to the cell housing the formula).

For more information, have a look at Excel's help files under 'absolute
and relative references'.

Hope this helps!

http://www.xl-central.com

In article ,
style0 wrote:

Worked perfectly, thank you so much!
Now maybe you can help me understand what "$B$1:B1,B1" means.

"Domenic" wrote:

Try...

C1, copied down:

=COUNTIF($B$1:B1,B1)

Hope this helps!

http://www.xl-central.com