ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Sumif based on criteria on another cell (https://www.excelbanter.com/excel-worksheet-functions/228595-sumif-based-criteria-another-cell.html)

Jane

Sumif based on criteria on another cell
 
I am trying to add values in one column, if another column meets a certain
criteria.

This is the formula I have come up with and it doesnt work. Please help

SUMIF(B:B,"<=AC10 and =AD10",C:C )


I thought I posted this question already, but could not find my post on the
forum, so submitting again

Mike H

Sumif based on criteria on another cell
 
Jane,

SUMIF only works with a single criteria, try eumproduct

=SUMPRODUCT((B1:B100=AD10)*(B1:B100<=AC10)*(C1:C1 00))

Mike

"Jane" wrote:

I am trying to add values in one column, if another column meets a certain
criteria.

This is the formula I have come up with and it doesnt work. Please help

SUMIF(B:B,"<=AC10 and =AD10",C:C )


I thought I posted this question already, but could not find my post on the
forum, so submitting again


Jane

Sumif based on criteria on another cell
 
It worked ... Thank you Mike!!!



"Mike H" wrote:

Jane,

SUMIF only works with a single criteria, try eumproduct

=SUMPRODUCT((B1:B100=AD10)*(B1:B100<=AC10)*(C1:C1 00))

Mike

"Jane" wrote:

I am trying to add values in one column, if another column meets a certain
criteria.

This is the formula I have come up with and it doesnt work. Please help

SUMIF(B:B,"<=AC10 and =AD10",C:C )


I thought I posted this question already, but could not find my post on the
forum, so submitting again


T. Valko

Sumif based on criteria on another cell
 
SUMIF(B:B,"<=AC10 and =AD10",C:C )

Assuming:
AC10 is your upper boundary value
AD10 is your lower boundary value

=SUMIF(B:B,"="&AD10,C:C)-SUMIF(B:B,""&AC10,C:C)


--
Biff
Microsoft Excel MVP


"Jane" wrote in message
...
I am trying to add values in one column, if another column meets a certain
criteria.

This is the formula I have come up with and it doesnt work. Please help

SUMIF(B:B,"<=AC10 and =AD10",C:C )


I thought I posted this question already, but could not find my post on
the
forum, so submitting again





All times are GMT +1. The time now is 07:59 AM.

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