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

Can anyone tell me whether there is a way to count up the number of cells in
a column that contain a specific word but only if there is a specific word in
another column e.g.

Column A Column B
1 Elective Yes
2 Elective No
3 Urgent No
4 Urgent Yes
5 Urgent Yes

I would like excel to tell me how many "urgent" in column A where "yes" is
present in column B i.e. the answer in above example would be 2.

Hope this makes sense!

John

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 256
Default Counting

Try...

=SUMPRODUCT(--($A$1:$A$5="Urgent"),--($B$1:$B$5="Yes"))

Hope this helps!

In article ,
JRD wrote:

Can anyone tell me whether there is a way to count up the number of cells in
a column that contain a specific word but only if there is a specific word in
another column e.g.

Column A Column B
1 Elective Yes
2 Elective No
3 Urgent No
4 Urgent Yes
5 Urgent Yes

I would like excel to tell me how many "urgent" in column A where "yes" is
present in column B i.e. the answer in above example would be 2.

Hope this makes sense!

John

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Counting

=SUMPRODUCT(--(A2:A50="Urgent"),--(B2:B50="Yes"))

replace the criteria with cell references for better usability and just put
the criteria in the cells


--


Regards,


Peo Sjoblom


"JRD" wrote in message
...
Can anyone tell me whether there is a way to count up the number of cells
in
a column that contain a specific word but only if there is a specific word
in
another column e.g.

Column A Column B
1 Elective Yes
2 Elective No
3 Urgent No
4 Urgent Yes
5 Urgent Yes

I would like excel to tell me how many "urgent" in column A where "yes" is
present in column B i.e. the answer in above example would be 2.

Hope this makes sense!

John



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Counting

=SUMPRODUCT(--(A1:A5="Urgent"),--(B1:B5="Yes"))
--
Gary''s Student - gsnu200754


"JRD" wrote:

Can anyone tell me whether there is a way to count up the number of cells in
a column that contain a specific word but only if there is a specific word in
another column e.g.

Column A Column B
1 Elective Yes
2 Elective No
3 Urgent No
4 Urgent Yes
5 Urgent Yes

I would like excel to tell me how many "urgent" in column A where "yes" is
present in column B i.e. the answer in above example would be 2.

Hope this makes sense!

John

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Counting

This should do it for you:
=SUMPRODUCT(--(A1:A5="Urgent"),--(B1:B5="Yes"))

Regards,
Ryan---


--
RyGuy


"JRD" wrote:

Can anyone tell me whether there is a way to count up the number of cells in
a column that contain a specific word but only if there is a specific word in
another column e.g.

Column A Column B
1 Elective Yes
2 Elective No
3 Urgent No
4 Urgent Yes
5 Urgent Yes

I would like excel to tell me how many "urgent" in column A where "yes" is
present in column B i.e. the answer in above example would be 2.

Hope this makes sense!

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 kelljeff Excel Discussion (Misc queries) 7 April 4th 06 05:33 PM
Counting again Dean Excel Worksheet Functions 2 January 17th 06 03:02 PM
Counting Pos and Neg #'s jimbob Excel Discussion (Misc queries) 4 November 27th 05 08:09 PM
Counting rows, then counting values. Michael via OfficeKB.com Excel Discussion (Misc queries) 7 August 4th 05 10:57 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 12:35 AM.

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"