Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
UB UB is offline
external usenet poster
 
Posts: 120
Default Countif array function not working

Hi
I am using this formula to count
=COUNT(IF((TRIM($C$4:$C$100)="C")*(TRIM($M$4:$M$10 0)<"Closed"),$A$4:$A$100))
I am not getting the right results, because column $m$4:$m$100 has blank
cells , so this formula is counting the blank cells.
Please advise how can I correct this formula that is considers blank cells
in coulmn M.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Countif array function not working

One way (no need to array-enter):

=SUMPRODUCT(--ISNUMBER($A$4:$A$100), --(TRIM($C$4:$C$100)="C"),
--(TRIM($M$4:$M$100)<"Closed"), --(LEN(TRIM($M$4:$M$100))0))

In article ,
ub wrote:

Hi
I am using this formula to count
=COUNT(IF((TRIM($C$4:$C$100)="C")*(TRIM($M$4:$M$10 0)<"Closed"),$A$4:$A$100))
I am not getting the right results, because column $m$4:$m$100 has blank
cells , so this formula is counting the blank cells.
Please advise how can I correct this formula that is considers blank cells
in coulmn M.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 180
Default Countif array function not working

change your formula as

=COUNT(IF((TRIM($C$4:$C$100)="C")*(TRIM($M$4:$M$10 0)<"Closed"),$A$4:$A$100,0))

You were missing the last part of the IF condition, which I added as 0
(zero) in the above formula.

HTH,
--
Pranav Vaidya
VBA Developer
PN, MH-India
If you think my answer is useful, please rate this post as an ANSWER!!


"ub" wrote:

Hi
I am using this formula to count
=COUNT(IF((TRIM($C$4:$C$100)="C")*(TRIM($M$4:$M$10 0)<"Closed"),$A$4:$A$100))
I am not getting the right results, because column $m$4:$m$100 has blank
cells , so this formula is counting the blank cells.
Please advise how can I correct this formula that is considers blank cells
in coulmn M.

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
UB UB is offline
external usenet poster
 
Posts: 120
Default Countif array function not working

Hi
It didn't work, it gives error message # Value


"JE McGimpsey" wrote:

One way (no need to array-enter):

=SUMPRODUCT(--ISNUMBER($A$4:$A$100), --(TRIM($C$4:$C$100)="C"),
--(TRIM($M$4:$M$100)<"Closed"), --(LEN(TRIM($M$4:$M$100))0))

In article ,
ub wrote:

Hi
I am using this formula to count
=COUNT(IF((TRIM($C$4:$C$100)="C")*(TRIM($M$4:$M$10 0)<"Closed"),$A$4:$A$100))
I am not getting the right results, because column $m$4:$m$100 has blank
cells , so this formula is counting the blank cells.
Please advise how can I correct this formula that is considers blank cells
in coulmn M.

Thanks


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
UB UB is offline
external usenet poster
 
Posts: 120
Default Countif array function not working

Hi
It didn't work, it gives the same result ( incorrect numbers)


"Pranav Vaidya" wrote:

change your formula as

=COUNT(IF((TRIM($C$4:$C$100)="C")*(TRIM($M$4:$M$10 0)<"Closed"),$A$4:$A$100,0))

You were missing the last part of the IF condition, which I added as 0
(zero) in the above formula.

HTH,
--
Pranav Vaidya
VBA Developer
PN, MH-India
If you think my answer is useful, please rate this post as an ANSWER!!


"ub" wrote:

Hi
I am using this formula to count
=COUNT(IF((TRIM($C$4:$C$100)="C")*(TRIM($M$4:$M$10 0)<"Closed"),$A$4:$A$100))
I am not getting the right results, because column $m$4:$m$100 has blank
cells , so this formula is counting the blank cells.
Please advise how can I correct this formula that is considers blank cells
in coulmn M.

Thanks



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Countif array function not working

It works in a test workbook for me.

Do you have a #VALUE! error in your data range?

Did you use the formula exactly? If not, did you make sure the range
sizes were the same?

In article ,
ub wrote:

It didn't work, it gives error message # Value


"JE McGimpsey" wrote:

One way (no need to array-enter):

=SUMPRODUCT(--ISNUMBER($A$4:$A$100), --(TRIM($C$4:$C$100)="C"),
--(TRIM($M$4:$M$100)<"Closed"), --(LEN(TRIM($M$4:$M$100))0))

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
Array formula on INDEX function not working vsoler Excel Worksheet Functions 8 June 3rd 07 07:14 PM
Array fomrula not working... NWO Excel Worksheet Functions 5 March 1st 07 09:56 PM
CountIf Array not working NWO Excel Discussion (Misc queries) 1 March 1st 07 07:48 PM
Countif with nested function not working? jshuatree Excel Worksheet Functions 4 July 17th 06 10:48 PM
Array formula not working Alex Excel Worksheet Functions 3 June 15th 05 12:28 AM


All times are GMT +1. The time now is 07:22 AM.

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"