need help with sum formula

C

chrisnsmith

I have a worksheet with columns D thru M. In column M I have the following
sum formula, H-I. This formula is simple but what I need is a formula that
will return no value if cells D thru M have no entries.

What formula should I use?
 
F

Fred Smith

Use Count -- it will ignore blanks. As in:

=if(count(Range)>0,sum(YourRange),"")

Regards,
Fred/
 
S

Shane Devenshire

Hi,


=IF(SUM(H1:I1),SUM(H1:I1),"")

This will work if when the two cells are 0 you will be happy with a blank
entry. If not

=IF(COUNT(H1:I1),SUM(H1:I1),"")
 
C

chrisnsmith

Thanks Fred,
This was just what I needed.

Fred Smith said:
Use Count -- it will ignore blanks. As in:

=if(count(Range)>0,sum(YourRange),"")

Regards,
Fred/
 

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