ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Help with conditional format (https://www.excelbanter.com/excel-worksheet-functions/44678-help-conditional-format.html)

Amanda

Help with conditional format
 
I need to count the number of Cells in Column D that are not blank (that
column contains dates) AND has Amanda in Column C in the same row.

bj

try
=sumproduct(--(D1:D1000<""),--(C1:C1000="Amanda"))
the --( changes the logical true false to a numeric 1 0
and the arrays in each section needs to be the same size but cant be the
full column or row shorthand (A:A won't work)

"Amanda" wrote:

I need to count the number of Cells in Column D that are not blank (that
column contains dates) AND has Amanda in Column C in the same row.


Biff

Hi!

cant be the full column or row shorthand (A:A won't work)


Sumproduct will work on entire rows but not on entire columns:

=SUMPRODUCT(--(1:1="x"),--(2:2="y"),3:3)

Biff

"bj" wrote in message
...
try
=sumproduct(--(D1:D1000<""),--(C1:C1000="Amanda"))
the --( changes the logical true false to a numeric 1 0
and the arrays in each section needs to be the same size but cant be the
full column or row shorthand (A:A won't work)

"Amanda" wrote:

I need to count the number of Cells in Column D that are not blank (that
column contains dates) AND has Amanda in Column C in the same row.





All times are GMT +1. The time now is 03:43 PM.

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