ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Countif rows (https://www.excelbanter.com/excel-discussion-misc-queries/123210-countif-rows.html)

Lauravila

Countif rows
 
Hi,
I have the info in the following format:
Sector: Energy Energy Industrials Industrials Comm
1 2 10
11
4 10 6 7
8

Each column is a different company. For each row I would like to count how
many nonblanksmare in the Energy sector, then Industrial, etc. What do I need
to do?
Thank you,
Laura

pinmaster

Countif rows
 
Hi

Try something like this:

=SUMPRODUCT((B1:E1="energy")*(B2:E5<""))

HTH
Jean-Guy

"Lauravila" wrote:

Hi,
I have the info in the following format:
Sector: Energy Energy Industrials Industrials Comm
1 2 10
11
4 10 6 7
8

Each column is a different company. For each row I would like to count how
many nonblanksmare in the Energy sector, then Industrial, etc. What do I need
to do?
Thank you,
Laura


Teethless mama

Countif rows
 
Assuming your header in row 1, and the Energy in column B and column C
=COUNT(B2:C100)


"Lauravila" wrote:

Hi,
I have the info in the following format:
Sector: Energy Energy Industrials Industrials Comm
1 2 10
11
4 10 6 7
8

Each column is a different company. For each row I would like to count how
many nonblanksmare in the Energy sector, then Industrial, etc. What do I need
to do?
Thank you,
Laura



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

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