Alternative Formula vs. Multiple SUMIFs?

Chazzo

New Member
Joined
Dec 28, 2014
Messages
24
Office Version
  1. 365
Hello Everyone,

In Column D in the grid below beginning in row 3, I want to SUM Total the values in row 2 if there's an 'X' or any text value in columns A thru C.

For example in row 3 there is an 'X' in column A which is valued at 20, and an 'X' in column C which is valued at 60 which of course totals to 80.

Currently, I'm using:

=SUMIF(A3,"X",A$2)+SUMIF(B3,"X",B$2)+SUMIF(C3,"X",C$2) which works when copying the formula down HOWEVER...

I would like to avoid SUMIF +SUMIF + SUMIF as the sheet will gain additional columns overtime.

Any suggestions in how I could build a more robust formula to accomplish this?

Thanks in advance.



A
B
C
D
1
Clip1
Clip2
Clip3
TOTAL
2
20
40
60
3
X
X
80
4
X
X
X
120
5
X
20

<tbody>
</tbody>
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi,

Put the range in the SUMIF:


Book1
ABCD
1Clip1Clip2Clip3TOTAL
2204060
3XX80
4XXX120
5X20
Sheet137
Cell Formulas
RangeFormula
D3=SUMIF(A3:C3,"X",A$2:C$2)


Formula copied down.
 
Upvote 0
You're welcome, "overthinking", that happens to everyone now and then...;)
 
Upvote 0

Forum statistics

Threads
1,214,601
Messages
6,120,465
Members
448,965
Latest member
grijken

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