SUMIF Help...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have either a number or a blank in cells D2:P2. I want cell R2 to sum all
of the cells from D2:P2 that have a number in them. All of the cells D2:P2
have a formula in them that either enters a number in the cell or a blank.
How do I have cell R2 sum all the cells that have a number in them? Thanks
 
=sum(d2:p2) will calculate regardless of whether it is a blank or a formula
or a number.
 
Just using sum(d2:p2) does work but now I don't want it to add cells G2, I2,
K2, M2, O2. If I type in d2+e2+f2+h2+j2+l2+n2+p2 it gives me a #value!
error. Thanks
 
Jambruins said:
Just using sum(d2:p2) does work but now I don't want it to add cells G2, I2,
K2, M2, O2. If I type in d2+e2+f2+h2+j2+l2+n2+p2 it gives me a #value!
error. Thanks
[...]

=SUM(D2:F2,H2,J2,N2,P2)
 

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

Similar Threads

copy down 9
Help Writing a SUM Formula 5
sumifs problem 1
Remove #n/a in vlookup to sum results 6
sumifs function 3
SumIFS Cell 1
Return highest number or a blank if 0 6
Add Totals for Last 12 Months 2

Back
Top