ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   SUMIF-with 2 conditions, need to add range in 2 columns (https://www.excelbanter.com/excel-worksheet-functions/207074-sumif-2-conditions-need-add-range-2-columns.html)

nursemlb

SUMIF-with 2 conditions, need to add range in 2 columns
 
Column a
Column b
Column c
Column d

If column d = "specific" and column a = "mary", would like to add columns b
and c

Please help!



T. Valko

SUMIF-with 2 conditions, need to add range in 2 columns
 
Try this:

=SUMPRODUCT((A1:A10="Mary")*(D1:D10="Specific")*B1 :C10)

--
Biff
Microsoft Excel MVP


"nursemlb" wrote in message
...
Column a
Column b
Column c
Column d

If column d = "specific" and column a = "mary", would like to add columns
b
and c

Please help!





ShaneDevenshire

SUMIF-with 2 conditions, need to add range in 2 columns
 
Hi

Try this:

=SUMPRODUCT(--(A1:A6="mary"),--(D1:D6="specific"),B1:B6+C1:C6)


If this helps please check the yes button.
--
Thanks,
Shane Devenshire


"nursemlb" wrote:

Column a
Column b
Column c
Column d

If column d = "specific" and column a = "mary", would like to add columns b
and c

Please help!



Ashish Mathur[_2_]

SUMIF-with 2 conditions, need to add range in 2 columns
 
Hi,

you can also try this array formula (Ctrl+Shift+Enter)

=sum(if((D1:D10="specific")*(A1:A10="Mary"),B1:C10 ))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"nursemlb" wrote in message
...
Column a
Column b
Column c
Column d

If column d = "specific" and column a = "mary", would like to add columns
b
and c

Please help!




All times are GMT +1. The time now is 04:21 AM.

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