Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Count Non-Zeros Formula

Status
Not open for further replies.

sopomeres

MIS
Jan 16, 2003
61
US
How can I count occurences of a field in the detail section, but omitting zero values? So, If I have detail listing:

96
93
0
99

Then a Count formula would provide me with a count of 3.

Thank you in advance!
 
Hello !

Just create a formula like:

if {YourField} <> 0 then
1
else
0


Place it in the detail section and insert a summary (count) on the formula.

/Goran
 
You'll want to do a Sum summary, if you do a count, it will also count the zero's Mike
If you're not part of the solution, you're part of the precipitate.
 
I used the sum summary and it did work properly.

Thank you both!

Much appreciated!
 
Of course Mike !

I don´t know what I was thinking about.

/Goran [surprise]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top