sum a range and then test its result ?

L

lindasf

Hi ,

Is there a way to sum a range and then test its result ?

For example: sum g5:g17 and then test for 0.

* If the result is 0, insert a blank/space into the cell.

* If the result is NOT 0, leave the sum that was just calculated (e.g
- g5:g17) in the cell.

Thx.

lindas
 
B

Biff

Hi lindasf!

Try this:

=IF(SUM(G5:G17)=0,"",SUM(G5:G17))

If the sum is zero, it will leave the cell blank but don't
confuse that with being an empty cell.

Biff
 

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

Top