Formulas - Countif and Fill Down

J

Joey

Hello,

I created a Countif function to add totals from Column A. =Countif(A:A,1).
I have over 6000 entries and would like a way to Fill Down and have the
Criteria in my range automatically update from ranges of 1 to 295. Is this
possible or do I need to create a Macro?

Thanks
 
M

Mike H

Hi,

Your question is a bit confusing in that you say you add the 1's in column A
with the formula
=countif(a:a,1)
If you really mean add up then that only works by luck because what it's
doing is counting the instances of 1 which just happens to be the same as
summing them which wouldn't work for any other number. However, if you mean
countif and want to drag it try this
=COUNTIF(A:A,ROW(A1))
Dragging it down 1 row will count all the number 2 etc

Mike
 
J

Joey

That's it! Thanks so much!

Mike H said:
Hi,

Your question is a bit confusing in that you say you add the 1's in column A
with the formula
=countif(a:a,1)
If you really mean add up then that only works by luck because what it's
doing is counting the instances of 1 which just happens to be the same as
summing them which wouldn't work for any other number. However, if you mean
countif and want to drag it try this
=COUNTIF(A:A,ROW(A1))
Dragging it down 1 row will count all the number 2 etc

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top