ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   disregarding zeroes (https://www.excelbanter.com/excel-discussion-misc-queries/228994-disregarding-zeroes.html)

Sapper

disregarding zeroes
 
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?

Pete_UK

disregarding zeroes
 
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

On Apr 27, 11:40*am, Sapper wrote:
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?



Dave Peterson

disregarding zeroes
 
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.



Sapper wrote:

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?


--

Dave Peterson

Sapper

disregarding zeroes
 
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

"Dave Peterson" wrote:

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.



Sapper wrote:

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?


--

Dave Peterson


Dave Peterson

disregarding zeroes
 
And we Dave's have to stick together!

Sapper wrote:

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

"Dave Peterson" wrote:

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.



Sapper wrote:

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?


--

Dave Peterson


--

Dave Peterson


All times are GMT +1. The time now is 09:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com