Sumif multiple columns based on critiera

CodyMonster

Board Regular
Joined
Sep 28, 2009
Messages
159
Hey, wondering if there was a way to sumif across a row, with multiple columns, based off of specific column criteria.
I'm sure there is a way to use the offset function to add what has an X and what doesn't. Just can't think of a way to do it.

For Example:
Amount CriteriaAmount2Criteria2Amount3Criteria3Total (sumif)
5x5x510
5x5x5x15

Is there a way to do this without making nested sumifs for each column? As I would have about 12 of them.

Thanks!
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
How about
+Fluff 1.xlsm
ABCDEFG
1AmountCriteriaAmount2Criteria2Amount3Criteria3Total (sumif)
25x5x510
35x5x5x15
Master
Cell Formulas
RangeFormula
G2:G3G2=SUMIFS(A2:E2,B2:F2,"x")
 
Upvote 0
Doesn't work, the criteria I'm using is a Date, so it's picking up the criteria (the date number) and adding it.
Sorry, should have been more specific in my example.
 
Upvote 0
In that case please post some data that actually reflects your data & headers.
 
Upvote 0
Ok, how about
Excel Formula:
=SUMIFS(A2:E2,A1:E1,"<>Invoiced?",B2:F2,"<>")
 
Upvote 0
Solution

Forum statistics

Threads
1,214,921
Messages
6,122,280
Members
449,075
Latest member
staticfluids

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