ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   sumproduct and countif in one formula (https://www.excelbanter.com/excel-worksheet-functions/212477-sumproduct-countif-one-formula.html)

Aaron Hodson \(Coversure\)

sumproduct and countif in one formula
 
Hello,

I have been trying for days to get the following function to work:

=SUMPRODUCT((JAN!G:G=C18)*(JAN!M:M="y"))=COUNTIF(J AN!B:B,C2)


The Sumproduct section works fine in isolation... but the above gives me a
true/false result.

I have tried * instead of = prior to the countif, but this results in an
incorrect outcome.

Please help,

Thanks

Aaron


Gary''s Student

sumproduct and countif in one formula
 
Perhaps the countif is not needed:
=SUMPRODUCT((JAN!G1:G10=C18)*(JAN!M1:M10="y")*(JAN !B1:B10=C2))
--
Gary''s Student - gsnu2007k


"Aaron Hodson (Coversure)" wrote:

Hello,

I have been trying for days to get the following function to work:

=SUMPRODUCT((JAN!G:G=C18)*(JAN!M:M="y"))=COUNTIF(J AN!B:B,C2)


The Sumproduct section works fine in isolation... but the above gives me a
true/false result.

I have tried * instead of = prior to the countif, but this results in an
incorrect outcome.

Please help,

Thanks

Aaron



Aaron Hodson \(Coversure\)

sumproduct and countif in one formula
 
Perfect!!!

Thanks very much for your help and prompt assistance.

Kind regards

Aaron

"Gary''s Student" wrote in message
...
Perhaps the countif is not needed:
=SUMPRODUCT((JAN!G1:G10=C18)*(JAN!M1:M10="y")*(JAN !B1:B10=C2))
--
Gary''s Student - gsnu2007k


"Aaron Hodson (Coversure)" wrote:

Hello,

I have been trying for days to get the following function to work:

=SUMPRODUCT((JAN!G:G=C18)*(JAN!M:M="y"))=COUNTIF(J AN!B:B,C2)


The Sumproduct section works fine in isolation... but the above gives me
a
true/false result.

I have tried * instead of = prior to the countif, but this results in an
incorrect outcome.

Please help,

Thanks

Aaron





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

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