Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default COUNTA with IF in an array

Hi

I need asistance with this problem:

Column A Column B
P1 08:22:00
P2 02:45:00
P1 03:15:00
P3 00:45:00
P3 11:14:00
P2 21:07:00

Column A is formated to contain Text
Column B is formated to contain hh:mm:ss data

Considering the above data set, I want to count the number of cells in
Column B which have values in them (like a COUNTA) but only where Column A =
"P3", for example. I.e. the answer will be "2" for this example.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default COUNTA with IF in an array

=SUMPRODUCT(-(A1:A6="P3"),-(ISNUMBER(B1:B6)))



"WildWill" wrote:

Hi

I need asistance with this problem:

Column A Column B
P1 08:22:00
P2 02:45:00
P1 03:15:00
P3 00:45:00
P3 11:14:00
P2 21:07:00

Column A is formated to contain Text
Column B is formated to contain hh:mm:ss data

Considering the above data set, I want to count the number of cells in
Column B which have values in them (like a COUNTA) but only where Column A =
"P3", for example. I.e. the answer will be "2" for this example.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default COUNTA with IF in an array

=SUMPRODUCT((A1:A6="P3")*(B1:B6<""))

--
Gary''s Student - gsnu200806


"WildWill" wrote:

Hi

I need asistance with this problem:

Column A Column B
P1 08:22:00
P2 02:45:00
P1 03:15:00
P3 00:45:00
P3 11:14:00
P2 21:07:00

Column A is formated to contain Text
Column B is formated to contain hh:mm:ss data

Considering the above data set, I want to count the number of cells in
Column B which have values in them (like a COUNTA) but only where Column A =
"P3", for example. I.e. the answer will be "2" for this example.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default COUNTA with IF in an array

Thanks Teethless mama - SORTED!

"Teethless mama" wrote:

=SUMPRODUCT(-(A1:A6="P3"),-(ISNUMBER(B1:B6)))



"WildWill" wrote:

Hi

I need asistance with this problem:

Column A Column B
P1 08:22:00
P2 02:45:00
P1 03:15:00
P3 00:45:00
P3 11:14:00
P2 21:07:00

Column A is formated to contain Text
Column B is formated to contain hh:mm:ss data

Considering the above data set, I want to count the number of cells in
Column B which have values in them (like a COUNTA) but only where Column A =
"P3", for example. I.e. the answer will be "2" for this example.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default COUNTA with IF in an array

Thanks GS!

"Gary''s Student" wrote:

=SUMPRODUCT((A1:A6="P3")*(B1:B6<""))

--
Gary''s Student - gsnu200806


"WildWill" wrote:

Hi

I need asistance with this problem:

Column A Column B
P1 08:22:00
P2 02:45:00
P1 03:15:00
P3 00:45:00
P3 11:14:00
P2 21:07:00

Column A is formated to contain Text
Column B is formated to contain hh:mm:ss data

Considering the above data set, I want to count the number of cells in
Column B which have values in them (like a COUNTA) but only where Column A =
"P3", for example. I.e. the answer will be "2" for this example.


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
Using COUNTA for a variable array Schannah Excel Worksheet Functions 5 July 22nd 08 05:02 PM
counta in array formula not working Bruce Excel Worksheet Functions 3 March 14th 08 10:02 PM
meaning of : IF(Switch; Average(array A, array B); array A) DXAT Excel Worksheet Functions 1 October 24th 06 06:11 PM
counta rabol Excel Discussion (Misc queries) 2 March 6th 05 05:12 PM
COUNTA Function not working =COUNTA(C3:C69,"NH") MikeinNH Excel Worksheet Functions 2 November 8th 04 01:19 AM


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