#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alternating BG colors between groups of rows WhiteFantom Excel Discussion (Misc queries) 2 December 16th 06 06:05 PM
(Unsuccessfully!) Unhiding Rows in Excel 2003 [email protected] Excel Worksheet Functions 6 May 24th 06 08:17 PM
countif for only visible rows when combined with autofilter - possible? johli Excel Discussion (Misc queries) 1 September 21st 05 08:23 AM
Automatically inserting rows ausdiver99 Excel Worksheet Functions 1 June 2nd 05 02:15 PM
Hiding Rows if the linked rows are blank KG Excel Discussion (Misc queries) 9 May 18th 05 02:32 AM


All times are GMT +1. The time now is 08:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"