disregarding zeroes

  • Thread starter Thread starter Sapper
  • Start date Start date
S

Sapper

Data recorded in col A is called for in Col G. So that blank cells in A do
not deliver zeros in col G, I used =if(A1="","",A1). Thanks Dave Peterson.
I total col G using =countif(G1:G100,"**") but it includes the zeros
returning a false count. How can I not include the zeroes?
Can anyone help?
 
You could do this:

=COUNTIF(G1:G100,">0")

if your numbers are all positive, or this:

=COUNTIF(G1:G100,"<>0")

if you might have positive and negative numbers.

Hope this helps.

Pete
 
Are you trying to count numbers?
=count(g1:g100)

Are you trying to count text?
=count(g1:g100,"?*")

If you want both numbers and text, then just add those two together.
 
You did it for me again Dave

What sort of book has this depth of info - I must try to increase my
Knowledge without bothering people every ime I set up a function

Incidentally display name is sapper, real name is Dave


regards
 
And we Dave's have to stick together!
You did it for me again Dave

What sort of book has this depth of info - I must try to increase my
Knowledge without bothering people every ime I set up a function

Incidentally display name is sapper, real name is Dave

regards
 

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

Back
Top