ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Count nonblank cells based on another column (https://www.excelbanter.com/excel-worksheet-functions/216246-count-nonblank-cells-based-another-column.html)

SandyB

Count nonblank cells based on another column
 
Column C has months listed (as text: Jan 2009) and Columns D-N have various
reference categories. Each row is marked at least once in Columns D-N with an
"X."

What I want to do is count the non-blank cells based on the month. For
example, for all of the Rows that have "Jan 2009" listed in Column C, I want
to count all the non blank cells in Column D (labeled "Letter").

I've tried COUNTIF, DCOUNTA, and SUMPRODUCT and feel like I keep missing
something.

Thanks!

Elkar

Count nonblank cells based on another column
 
SUMPRODUCT should work.

=SUMPRODUCT(--(C1:C10="Jan 2009"),--(D1:D10<""))

HTH
Elkar


"SandyB" wrote:

Column C has months listed (as text: Jan 2009) and Columns D-N have various
reference categories. Each row is marked at least once in Columns D-N with an
"X."

What I want to do is count the non-blank cells based on the month. For
example, for all of the Rows that have "Jan 2009" listed in Column C, I want
to count all the non blank cells in Column D (labeled "Letter").

I've tried COUNTIF, DCOUNTA, and SUMPRODUCT and feel like I keep missing
something.

Thanks!



All times are GMT +1. The time now is 04:31 AM.

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