Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
SamGB
 
Posts: n/a
Default More Count Help Please


How do you get the COUNT function to count a range of ROWS based on 2
conditions?
i.e if the row contains A AND B it counts 1
but if the row contains A but NOT B it counts 0
and if the row does NOT contain A but DOES contain B it counts 0

any ideas?
many thanks


--
SamGB
------------------------------------------------------------------------
SamGB's Profile: http://www.excelforum.com/member.php...o&userid=31263
View this thread: http://www.excelforum.com/showthread...hreadid=510334

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default More Count Help Please

=IF(AND(COUNTIF(1:1,"A"),COUNTIF(1:1,"B"),1,0)

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"SamGB" wrote in
message ...

How do you get the COUNT function to count a range of ROWS based on 2
conditions?
i.e if the row contains A AND B it counts 1
but if the row contains A but NOT B it counts 0
and if the row does NOT contain A but DOES contain B it counts 0

any ideas?
many thanks


--
SamGB
------------------------------------------------------------------------
SamGB's Profile:

http://www.excelforum.com/member.php...o&userid=31263
View this thread: http://www.excelforum.com/showthread...hreadid=510334



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 Intervals of 2 Consecutive Values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 6 November 29th 05 03:27 PM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 0 May 15th 05 08:14 PM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 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


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