sum only if there is a value in cells

  • Thread starter Thread starter Geo
  • Start date Start date
G

Geo

I have the following formula:
A3=SUM(A1+A2)
Is there a way so that A3 only sums if there is a value in both cells and
not if there is text?
The values are hours and minutes.
 
=IF(AND(ISNUMBER(A1),ISNUMBER(A2)),A1+A2,"")

=IF(COUNT(A1:A2)=2,A1+A2,"")
 

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