Multiple criteria sum formula

BAHNTR

New Member
Joined
Jun 30, 2011
Messages
2
I am needing assistance on creating a formula to sum a row if 2 criterias are met. There are 2 worksheets

Sheet #1
Acct YTD Total
1........?
2........ ?


Sheet #2

..............1 2 3 4 5 6
..............Y Y Y Y Y N
Account
1 ............1 2 3 4 5 6
2 ............7 8 9 3 4 5


I need the formula for the ? to say that if the period is Y then to sum the account row, ie. for account 1 it would sum 1-5 to give a total of 15.
 
Last edited:

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
In excel 2007 or later you can use the sumifs formula. Else you can use an array function or you can combine the parameters with concatenate().
 
Upvote 0
I have tried sumifs and it is bring back #value error. I am unable to get it sum the row correctly. I am not familiar with an array function either.
 
Last edited:
Upvote 0
If you replace Y and N with true and false you can use it as a multiplicative.

=sumproduct(range1,range2) will return exactly what you need.
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,463
Members
452,915
Latest member
hannnahheileen

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