Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Nested COUNTIF

Im trying in excel to count 2 columns using the COUNTIF function :

ie COUNTIF (A:A,TRUE)

however how do i countif with 2 columns, ie

COUNTIF (A:A,TRUE) and (B:B='1')

i need to count number of cells where column A = true and column B = 1, ie a
nested countif

any advice.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Nested COUNTIF

=Sumproduct(($A$1:$A$300=True)*($B$1:$B$300=1))

you can't address and entire column using an array formula such as the above
(and wouldn't want to as recalculation would be extremely slow). Use a few
cells as necessary.

There is no ability to have a "nested" countif.

--
Regards,
Tom Ogilvy

"David Taplin" wrote in message
...
Im trying in excel to count 2 columns using the COUNTIF function :

ie COUNTIF (A:A,TRUE)

however how do i countif with 2 columns, ie

COUNTIF (A:A,TRUE) and (B:B='1')

i need to count number of cells where column A = true and column B = 1, ie

a
nested countif

any advice.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Nested COUNTIF

Many thanks Tom.
Regards
David

"Tom Ogilvy" wrote in message
...
=Sumproduct(($A$1:$A$300=True)*($B$1:$B$300=1))

you can't address and entire column using an array formula such as the

above
(and wouldn't want to as recalculation would be extremely slow). Use a

few
cells as necessary.

There is no ability to have a "nested" countif.

--
Regards,
Tom Ogilvy

"David Taplin" wrote in message
...
Im trying in excel to count 2 columns using the COUNTIF function :

ie COUNTIF (A:A,TRUE)

however how do i countif with 2 columns, ie

COUNTIF (A:A,TRUE) and (B:B='1')

i need to count number of cells where column A = true and column B = 1,

ie
a
nested countif

any advice.






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
Nested COUNTIF? Astro Excel Worksheet Functions 15 February 10th 10 07:04 PM
Nested countif,or letsrolldog Excel Discussion (Misc queries) 2 June 3rd 08 02:04 AM
Nested Countif joshpub New Users to Excel 6 May 15th 08 06:03 AM
Nested IF and Countif ? LPS Excel Worksheet Functions 6 December 5th 07 07:45 PM
Nested Countif wayne75 Excel Worksheet Functions 2 June 3rd 05 04:30 PM


All times are GMT +1. The time now is 12:40 PM.

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"