ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   SUMIF with two condition from two ranges (https://www.excelbanter.com/excel-worksheet-functions/201374-sumif-two-condition-two-ranges.html)

JBoyer

SUMIF with two condition from two ranges
 
I want to sum the cells in D5:D64 where B5:B64="AA", and where E5:E64<"".
So again, I would like it to check for the cells in Column B that = "AA" and
of those check if Column E that < "" and add the cells in column D that meet
both conditions.

Duke Carey

SUMIF with two condition from two ranges
 
=sumproduct(--(b5:b64="AA"),--(E5:e64<""),d5:d64)


"JBoyer" wrote:

I want to sum the cells in D5:D64 where B5:B64="AA", and where E5:E64<"".
So again, I would like it to check for the cells in Column B that = "AA" and
of those check if Column E that < "" and add the cells in column D that meet
both conditions.


Gaurav[_3_]

SUMIF with two condition from two ranges
 
=SUMPRODUCT((B5:B64="AA")*(E5:E64<"")*(D5:D64))


"JBoyer" wrote in message
...
I want to sum the cells in D5:D64 where B5:B64="AA", and where E5:E64<"".
So again, I would like it to check for the cells in Column B that = "AA"
and
of those check if Column E that < "" and add the cells in column D that
meet
both conditions.




JBoyer

SUMIF with two condition from two ranges
 
Thanks, that worked perfect!

"Duke Carey" wrote:

=sumproduct(--(b5:b64="AA"),--(E5:e64<""),d5:d64)


"JBoyer" wrote:

I want to sum the cells in D5:D64 where B5:B64="AA", and where E5:E64<"".
So again, I would like it to check for the cells in Column B that = "AA" and
of those check if Column E that < "" and add the cells in column D that meet
both conditions.



All times are GMT +1. The time now is 03:36 AM.

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