#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JRD JRD is offline
external usenet poster
 
Posts: 60
Default counting

A B
1 Right femoral Angioseal
2 Left Femoral Manual Pressure / TR band
3 Right Femoral Angioseal
4 Left Femoral Manual Pressure / TR band
5 Right Femoral Manual Pressure
6 Right Radial TR band

With the above cells, how do I count the number of rows in which column A
contains the word Femoral and column B in the same row contains the word
Manual? Answer : 3

Also how do I do the same but this time column A contains Femoral and column
B contains exactly Manual Pressure? Answer : 1

Thanks

John

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default counting

(a) Use:
=SUMPRODUCT((ISNUMBER(SEARCH("Femoral",A1:A10)))*( ISNUMBER(SEARCH("Manual",B1:B10))))

(b) Use:
=SUMPRODUCT((ISNUMBER(SEARCH("Femoral",A1:A10)))*( B1:B10="Manual Pressure"))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"JRD" wrote:
A B
1 Right femoral Angioseal
2 Left Femoral Manual Pressure / TR band
3 Right Femoral Angioseal
4 Left Femoral Manual Pressure / TR band
5 Right Femoral Manual Pressure
6 Right Radial TR band


(a)
With the above cells, how do I count the number of rows in which column A
contains the word Femoral and column B in the same row contains the word
Manual? Answer : 3


(b)
Also how do I do the same but this time column A contains Femoral and column
B contains exactly Manual Pressure? Answer : 1


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default counting

For your first question:

=SUMPRODUCT(--(ISNUMBER(FIND("Femoral",A1:A6))),--(ISNUMBER(FIND("Manual",B1:B6))))

For your second question:

=SUMPRODUCT(--(ISNUMBER(FIND("Femoral",A1:A6))),--(B1:B6="Manual Pressure"))

HTH,
Elkar


"JRD" wrote:

A B
1 Right femoral Angioseal
2 Left Femoral Manual Pressure / TR band
3 Right Femoral Angioseal
4 Left Femoral Manual Pressure / TR band
5 Right Femoral Manual Pressure
6 Right Radial TR band

With the above cells, how do I count the number of rows in which column A
contains the word Femoral and column B in the same row contains the word
Manual? Answer : 3

Also how do I do the same but this time column A contains Femoral and column
B contains exactly Manual Pressure? Answer : 1

Thanks

John

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
counting function but not double counting duplicates JRD Excel Worksheet Functions 2 November 7th 07 06:43 PM
Help Counting Brento Excel Discussion (Misc queries) 2 May 10th 06 12:50 AM
Counting rows, then counting values. Michael via OfficeKB.com Excel Discussion (Misc queries) 7 August 4th 05 10:57 PM
Counting Help JerryS Excel Worksheet Functions 2 August 3rd 05 09:03 PM
Counting names in a column but counting duplicate names once TBoe Excel Discussion (Misc queries) 9 May 11th 05 11:24 PM


All times are GMT +1. The time now is 06:03 AM.

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

About Us

"It's about Microsoft Excel"