Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JanetP
 
Posts: n/a
Default Need formula to count specific cells in a row

In row 2 I have some columns that contain AM and some that contain PM. In
row 3 I have either "h" or "e" or "u". In a3 I would like to have a formula
which would tell me how many h's are in any cell in row 3 between column h
and column z that has a PM in row 2.
  #2   Report Post  
Vasant Nanavati
 
Posts: n/a
Default

=SUMPRODUCT((H2:Z2="PM")*(H3:Z3="h"))

--

Vasant


"JanetP" wrote in message
...
In row 2 I have some columns that contain AM and some that contain PM. In
row 3 I have either "h" or "e" or "u". In a3 I would like to have a

formula
which would tell me how many h's are in any cell in row 3 between column h
and column z that has a PM in row 2.



  #3   Report Post  
JulieD
 
Posts: n/a
Default

Hi Janet

=SUMPRODUCT(--(H3:Z3="h"),--(H2:Z2="PM"))

check out
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
for details on this function

--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"JanetP" wrote in message
...
In row 2 I have some columns that contain AM and some that contain PM. In
row 3 I have either "h" or "e" or "u". In a3 I would like to have a
formula
which would tell me how many h's are in any cell in row 3 between column h
and column z that has a PM in row 2.



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
Macro or Formula to remove Text from Cells smck Excel Worksheet Functions 6 May 11th 05 03:22 AM
Formula for counting specific cells which are greater than 1 mmock Excel Discussion (Misc queries) 0 April 26th 05 03:03 AM
How to count occcurence of specific text block in a column Anshuman Excel Discussion (Misc queries) 2 February 12th 05 12:55 PM
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 01:37 AM
need formula to count cells below Bill_S Excel Discussion (Misc queries) 3 January 20th 05 10:41 PM


All times are GMT +1. The time now is 06:20 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"