ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Compound Sumif (https://www.excelbanter.com/excel-programming/395002-compound-sumif.html)

Steve[_4_]

Compound Sumif
 
Hello all. Is it possible to have a 2-column sumif? Columns A & B
have crieteria in them. Column C has the data to be summed.
Essentially, sum the fields in column C if the criteria in BOTH column
A & B are met.

For example, Column A has hire date. Column B is employee status (Y
or N). Can I have a sumif for all employees hired after 1/1/2006 AND
employee status of Y?

Thanks!


Bob Phillips

Compound Sumif
 
=SUMPRODUCT(--(A2:A200=--"2006-01-01"),--(B2:B200="Y"),C2:200)

SP doesn't work with whole columns pre Excel 2007

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Steve" wrote in message
ups.com...
Hello all. Is it possible to have a 2-column sumif? Columns A & B
have crieteria in them. Column C has the data to be summed.
Essentially, sum the fields in column C if the criteria in BOTH column
A & B are met.

For example, Column A has hire date. Column B is employee status (Y
or N). Can I have a sumif for all employees hired after 1/1/2006 AND
employee status of Y?

Thanks!




Jim Thomlinson

Compound Sumif
 
Take a look at SumProduct...

http://www.xldynamic.com/source/xld.SUMPRODUCT.html
--
HTH...

Jim Thomlinson


"Steve" wrote:

Hello all. Is it possible to have a 2-column sumif? Columns A & B
have crieteria in them. Column C has the data to be summed.
Essentially, sum the fields in column C if the criteria in BOTH column
A & B are met.

For example, Column A has hire date. Column B is employee status (Y
or N). Can I have a sumif for all employees hired after 1/1/2006 AND
employee status of Y?

Thanks!




All times are GMT +1. The time now is 10:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com