Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
VB
 
Posts: n/a
Default Count designated cells

I want to count designated cells (versus a range) only if they meet a certain
criteria:

Count cells A1, C1, E1 and F1 if they contain the word "yes"

A1=No Answer
B1=Yes
C1=Yes
D1=Yes
E1=No Answer
F1=No

In the above example the answer would be 1; cells B1 and D1 are not counted
because they are not designated in the formula, where they would be counted
if a range were used.
  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Try one of these:

=SUM((A1="yes"),(C1="yes"),(E1="yes"),(F1="yes"))

=SUMPRODUCT(--(MOD(COLUMN(A1:F1),2)=1),--(A1:F1="yes"))+(F1="yes")

Biff

"VB" wrote in message
...
I want to count designated cells (versus a range) only if they meet a
certain
criteria:

Count cells A1, C1, E1 and F1 if they contain the word "yes"

A1=No Answer
B1=Yes
C1=Yes
D1=Yes
E1=No Answer
F1=No

In the above example the answer would be 1; cells B1 and D1 are not
counted
because they are not designated in the formula, where they would be
counted
if a range were used.



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
Count # of cells b/w cells ... AriBari Excel Discussion (Misc queries) 4 July 18th 05 09:26 PM
count cells that have *text1* and don't have *text2* amntre Excel Discussion (Misc queries) 1 April 6th 05 12:50 PM
Count cells in a column that contain dates Cachod1 New Users to Excel 1 March 29th 05 08:56 PM
Count cells in one range based on parameters in another range dave roth Excel Worksheet Functions 2 March 29th 05 05:33 PM
How do I count shaded cells Randy Excel Worksheet Functions 19 February 3rd 05 11:35 PM


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