Need Help with SUM and IF

Drawcar3

New Member
Joined
Jan 11, 2018
Messages
2
I have the below table. I need a formula that will sum Row 1, but only provide the sum for the cells that do not have a value in row 2. So I need the Sum on Row 1 in this circumstance to equal $80 (Because there is a value in A2, E2, H2, & L2...therefore not adding cells A1, E1, H1 & L1 to the formula). Anyone able to provide a formula that will do this properly?

Thanks so much!

[TABLE="width: 630"]
<colgroup><col width="64" style="width: 48pt;" span="12"> <col width="72" style="width: 54pt; mso-width-source: userset; mso-width-alt: 2633;"> <tbody>[TR]
[TD="class: xl67, width: 64, bgcolor: transparent"]A[/TD]
[TD="class: xl67, width: 64, bgcolor: transparent"]B[/TD]
[TD="class: xl67, width: 64, bgcolor: transparent"]C[/TD]
[TD="class: xl67, width: 64, bgcolor: transparent"]D[/TD]
[TD="class: xl67, width: 64, bgcolor: transparent"]E[/TD]
[TD="class: xl67, width: 64, bgcolor: transparent"]F[/TD]
[TD="class: xl67, width: 64, bgcolor: transparent"]G[/TD]
[TD="class: xl67, width: 64, bgcolor: transparent"]H[/TD]
[TD="class: xl67, width: 64, bgcolor: transparent"]I[/TD]
[TD="class: xl67, width: 64, bgcolor: transparent"]J[/TD]
[TD="class: xl67, width: 64, bgcolor: transparent"]K[/TD]
[TD="class: xl67, width: 64, bgcolor: transparent"]L[/TD]
[TD="width: 72, bgcolor: transparent"]Sum[/TD]
[/TR]
[TR]
[TD="class: xl68, bgcolor: transparent"]10[/TD]
[TD="class: xl68, bgcolor: transparent"]10[/TD]
[TD="class: xl68, bgcolor: transparent"]10[/TD]
[TD="class: xl68, bgcolor: transparent"]10[/TD]
[TD="class: xl68, bgcolor: transparent"]10[/TD]
[TD="class: xl68, bgcolor: transparent"]10[/TD]
[TD="class: xl68, bgcolor: transparent"]10[/TD]
[TD="class: xl68, bgcolor: transparent"]10[/TD]
[TD="class: xl68, bgcolor: transparent"]10[/TD]
[TD="class: xl68, bgcolor: transparent"]10[/TD]
[TD="class: xl68, bgcolor: transparent"]10[/TD]
[TD="class: xl68, bgcolor: transparent"]10[/TD]
[TD="class: xl65, bgcolor: transparent"]$120 [/TD]
[/TR]
[TR]
[TD="class: xl69, bgcolor: transparent"]12[/TD]
[TD="class: xl69, bgcolor: transparent"] [/TD]
[TD="class: xl69, bgcolor: transparent"] [/TD]
[TD="class: xl69, bgcolor: transparent"] [/TD]
[TD="class: xl69, bgcolor: transparent"]12[/TD]
[TD="class: xl69, bgcolor: transparent"] [/TD]
[TD="class: xl69, bgcolor: transparent"] [/TD]
[TD="class: xl69, bgcolor: transparent"]12[/TD]
[TD="class: xl69, bgcolor: transparent"] [/TD]
[TD="class: xl69, bgcolor: transparent"] [/TD]
[TD="class: xl69, bgcolor: transparent"] [/TD]
[TD="class: xl70, bgcolor: transparent"]12[/TD]
[TD="class: xl66, bgcolor: transparent"]$48 [/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Welcome to the Board!

Try this:
Code:
=SUMIF(A2:L2,"=" & "",A1:L1)
 
Upvote 0
Hi,

Can it just be this, without the "="

Code:
=SUMIF(A2:L2,"",A1:L1)
 
Upvote 0
Can it just be this, without the "="
Yes, I apparently made it more complicated than it needed to be!
 
Upvote 0
You're welcome, welcome to the forum.
 
Upvote 0

Forum statistics

Threads
1,226,739
Messages
6,192,740
Members
453,755
Latest member
IQBS

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top