SUMIFS across multiple columns and one row

ryxk1

New Member
Joined
Jul 26, 2018
Messages
5
How can I find the sum of the values in columns 1-3 if column A equals Yes, column B equals FC, column C equals LE? This is just a sample set, the dataset I'm using has many more columns. Thanks.

[TABLE="width: 640"]
<colgroup><col width="64" style="width:48pt" span="10"> </colgroup><tbody>[TR]
[TD="width: 64, bgcolor: transparent"]A[/TD]
[TD="width: 64, bgcolor: transparent"]B[/TD]
[TD="width: 64, bgcolor: transparent"]C[/TD]
[TD="width: 64, bgcolor: transparent"]D[/TD]
[TD="width: 64, bgcolor: transparent"]E[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]1[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]2[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]3[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]4[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]5[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Yes[/TD]
[TD="bgcolor: transparent"]FC[/TD]
[TD="bgcolor: transparent"]LE[/TD]
[TD="bgcolor: transparent"]TB[/TD]
[TD="bgcolor: transparent"]PM[/TD]
[TD="bgcolor: transparent, align: right"]0.5[/TD]
[TD="bgcolor: transparent, align: right"]0.5[/TD]
[TD="bgcolor: transparent, align: right"]0.8[/TD]
[TD="bgcolor: transparent, align: right"]0.005[/TD]
[TD="bgcolor: transparent, align: right"]0.005[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Yes[/TD]
[TD="bgcolor: transparent"]TC[/TD]
[TD="bgcolor: transparent"]RF[/TD]
[TD="bgcolor: transparent"]TV[/TD]
[TD="bgcolor: transparent"]PM[/TD]
[TD="bgcolor: transparent, align: right"]0.8[/TD]
[TD="bgcolor: transparent, align: right"]0.8[/TD]
[TD="bgcolor: transparent, align: right"]0.8[/TD]
[TD="bgcolor: transparent, align: right"]0.005[/TD]
[TD="bgcolor: transparent, align: right"]0.005[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]No[/TD]
[TD="bgcolor: transparent"]VC[/TD]
[TD="bgcolor: transparent"]LE[/TD]
[TD="bgcolor: transparent"]TC[/TD]
[TD="bgcolor: transparent"]PM[/TD]
[TD="bgcolor: transparent, align: right"]0.6[/TD]
[TD="bgcolor: transparent, align: right"]0.6[/TD]
[TD="bgcolor: transparent, align: right"]0.7[/TD]
[TD="bgcolor: transparent, align: right"]0.8[/TD]
[TD="bgcolor: transparent, align: right"]0.8[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]No[/TD]
[TD="bgcolor: transparent"]FC[/TD]
[TD="bgcolor: transparent"]LE[/TD]
[TD="bgcolor: transparent"]TC[/TD]
[TD="bgcolor: transparent"]N/A[/TD]
[TD="bgcolor: transparent, align: right"]0.7[/TD]
[TD="bgcolor: transparent, align: right"]0.7[/TD]
[TD="bgcolor: transparent, align: right"]0.7[/TD]
[TD="bgcolor: transparent, align: right"]0.8[/TD]
[TD="bgcolor: transparent, align: right"]0.8[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Yes[/TD]
[TD="bgcolor: transparent"]FC[/TD]
[TD="bgcolor: transparent"]LE[/TD]
[TD="bgcolor: transparent"]TB[/TD]
[TD="bgcolor: transparent"]PM[/TD]
[TD="bgcolor: transparent, align: right"]0[/TD]
[TD="bgcolor: transparent, align: right"]0[/TD]
[TD="bgcolor: transparent, align: right"]0.7[/TD]
[TD="bgcolor: transparent, align: right"]0.8[/TD]
[TD="bgcolor: transparent, align: right"]0.9[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Yes[/TD]
[TD="bgcolor: transparent"]TC[/TD]
[TD="bgcolor: transparent"]RF[/TD]
[TD="bgcolor: transparent"]TB[/TD]
[TD="bgcolor: transparent"]N/A[/TD]
[TD="bgcolor: transparent, align: right"]0[/TD]
[TD="bgcolor: transparent, align: right"]0[/TD]
[TD="bgcolor: transparent, align: right"]0.7[/TD]
[TD="bgcolor: transparent, align: right"]0.9[/TD]
[TD="bgcolor: transparent, align: right"]0.9[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Perhaps

=sumproduct((a2:a7="yes")*(b2:b7="FC")*(c2:c7="LE")*(f2:j7))
 
Upvote 0
Hi,

If it's the "Total" of column 1-3, the last 2 columns probably shouldn't be included in the formula.
You thread title said "one row", formula included:


Book1
ABCDEFGHIJKLM
2YesFCLETBPM0.50.50.80.0050.0051.82.5
3YesTCRFTVPM0.80.80.80.0050.005
4NoVCLETCPM0.60.60.70.80.8
5NoFCLETCN/A0.70.70.70.80.8
6YesFCLETBPM000.70.80.90.7
7YesTCRFTBN/A000.70.90.9
Sheet172
Cell Formulas
RangeFormula
L2=IF(AND(A2="Yes",B2="FC",C2="LE"),SUM(F2:H2),"")
M2=SUMPRODUCT((A2:A7="Yes")*(B2:B7="FC")*(C2:C7="LE")*(F2:H7))


L2 formula copied down.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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