ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   can I use IF with SUMPRODUCT????? (https://www.excelbanter.com/excel-discussion-misc-queries/263938-can-i-use-if-sumproduct.html)

SBecker

can I use IF with SUMPRODUCT?????
 
I have the following formula,

=(SUMPRODUCT(--($E$2:$E$49550000),--($E$2:$E$495<75001),$D$2:$D$495)/SUMPRODUCT(--($E$2:$E$49550000),--($E$2:$E$495<75001)))

Which is calculating averages of property values between specified ranges.
I would like to be able to drill further into this data by grouping the
averages by state.

Suggestions?

Thanks,
Suzanne

Luke M[_4_]

can I use IF with SUMPRODUCT?????
 
Why not add it as a criteria in your SUMPRODUCT?

=(SUMPRODUCT(--($E$2:$E$49550000),--($E$2:$E$495<75001),--(B2:B495="My
State"),$D$2:$D$495)/SUMPRODUCT(--($E$2:$E$49550000),--(B2:B495="My
State"),--($E$2:$E$495<75001)))

--
Best Regards,

Luke M
"SBecker" wrote in message
...
I have the following formula,

=(SUMPRODUCT(--($E$2:$E$49550000),--($E$2:$E$495<75001),$D$2:$D$495)/SUMPRODUCT(--($E$2:$E$49550000),--($E$2:$E$495<75001)))

Which is calculating averages of property values between specified ranges.
I would like to be able to drill further into this data by grouping the
averages by state.

Suggestions?

Thanks,
Suzanne




SBecker

can I use IF with SUMPRODUCT?????
 
Luke,

Perfect!! Thank you so much....

Suzanne

"Luke M" wrote:

Why not add it as a criteria in your SUMPRODUCT?

=(SUMPRODUCT(--($E$2:$E$49550000),--($E$2:$E$495<75001),--(B2:B495="My
State"),$D$2:$D$495)/SUMPRODUCT(--($E$2:$E$49550000),--(B2:B495="My
State"),--($E$2:$E$495<75001)))

--
Best Regards,

Luke M
"SBecker" wrote in message
...
I have the following formula,

=(SUMPRODUCT(--($E$2:$E$49550000),--($E$2:$E$495<75001),$D$2:$D$495)/SUMPRODUCT(--($E$2:$E$49550000),--($E$2:$E$495<75001)))

Which is calculating averages of property values between specified ranges.
I would like to be able to drill further into this data by grouping the
averages by state.

Suggestions?

Thanks,
Suzanne



.



All times are GMT +1. The time now is 01:09 PM.

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