ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Summing some cells (https://www.excelbanter.com/excel-worksheet-functions/13596-summing-some-cells.html)

Jim

Summing some cells
 
In cell E1 I will type in Yes or No.

In D1 I would like to count the number of cells that have data in B1:B10,
but only when the Yes or No that is listed in C1:C10 is matched

Thanks for the help


Ragdyer

Try this:

=SUMPRODUCT(--(C1:C10=E1),--(B1:B10<""))
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Jim" wrote in message
...
In cell E1 I will type in Yes or No.

In D1 I would like to count the number of cells that have data in B1:B10,
but only when the Yes or No that is listed in C1:C10 is matched

Thanks for the help




All times are GMT +1. The time now is 02:05 PM.

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