Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
drvortex
 
Posts: n/a
Default Countif w/ #VALUE! errors


I'm so close to completion on this project. One problem I'm having.

=IF(COUNTIF($C$9:$C$33,B42)0,SUMPRODUCT(--($C$9:$C$33=B42),--($L$9:$L$33)))

Take this formula above. The following table looks like this:

C9:C33 displays names
B42 = one specific name
L9:L33 displays TRUE or FALSE answers

However, the array L9:L33 and C9:C33 may change for each month
(pertaining to each worksheet). The above formula WORKS if the ALL the
boxes in L9:L33 array is filled in w/ TRUE or FALSE. However, what do I
need to add to the formula in case the box is *blank*.

I thought of using the ISERROR, ISERR, ISNA, or something else to have
the formula NOT COUNT the blank box. Been working on this all day and
nothing seems to work. Doesn't seem difficult to fix but nothing is
working.


--
drvortex
------------------------------------------------------------------------
drvortex's Profile: http://www.excelforum.com/member.php...o&userid=15896
View this thread: http://www.excelforum.com/showthread...hreadid=489624

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default Countif w/ #VALUE! errors

Hi

Maybe
=IF(COUNTIF($C$9:$C$33,B42)0,SUMPRODUCT(--($C$9:$C$33=B42),--($L$9:$L$33),--($L$9:$L$33<"")))

Regards

Roger Govier


drvortex wrote:
I'm so close to completion on this project. One problem I'm having.

=IF(COUNTIF($C$9:$C$33,B42)0,SUMPRODUCT(--($C$9:$C$33=B42),--($L$9:$L$33)))

Take this formula above. The following table looks like this:

C9:C33 displays names
B42 = one specific name
L9:L33 displays TRUE or FALSE answers

However, the array L9:L33 and C9:C33 may change for each month
(pertaining to each worksheet). The above formula WORKS if the ALL the
boxes in L9:L33 array is filled in w/ TRUE or FALSE. However, what do I
need to add to the formula in case the box is *blank*.

I thought of using the ISERROR, ISERR, ISNA, or something else to have
the formula NOT COUNT the blank box. Been working on this all day and
nothing seems to work. Doesn't seem difficult to fix but nothing is
working.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Countif w/ #VALUE! errors

Since only TRUE will be counted (or rather summed since that is what you are
doing but if summed it's value is 1, FALSE is zero so it won't be counted)
you can use

SUMPRODUCT(--($C$9:$C$33=B42),--($L$9:$L$33=TRUE))

for the sumproduct part, that way you count TRUE in L where C is B42


--

Regards,

Peo Sjoblom

"drvortex" wrote in
message ...

I'm so close to completion on this project. One problem I'm having.


=IF(COUNTIF($C$9:$C$33,B42)0,SUMPRODUCT(--($C$9:$C$33=B42),--($L$9:$L$33)))

Take this formula above. The following table looks like this:

C9:C33 displays names
B42 = one specific name
L9:L33 displays TRUE or FALSE answers

However, the array L9:L33 and C9:C33 may change for each month
(pertaining to each worksheet). The above formula WORKS if the ALL the
boxes in L9:L33 array is filled in w/ TRUE or FALSE. However, what do I
need to add to the formula in case the box is *blank*.

I thought of using the ISERROR, ISERR, ISNA, or something else to have
the formula NOT COUNT the blank box. Been working on this all day and
nothing seems to work. Doesn't seem difficult to fix but nothing is
working.


--
drvortex
------------------------------------------------------------------------
drvortex's Profile:

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



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
drvortex
 
Posts: n/a
Default Countif w/ #VALUE! errors


Wow...you are amazing. It worked and can't believe it that all I had to
add was the "=TRUE" in one location and BAM it works. I added that in
my three other formulas and TADA...it works. This saves a ton of time
and greatly improves the metrics of our flight. Thanks again!!!


--
drvortex
------------------------------------------------------------------------
drvortex's Profile: http://www.excelforum.com/member.php...o&userid=15896
View this thread: http://www.excelforum.com/showthread...hreadid=489624

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Countif w/ #VALUE! errors

Thanks for the feedback

--
Regards,

Peo Sjoblom

(No private emails please)


"drvortex" wrote in
message ...

Wow...you are amazing. It worked and can't believe it that all I had to
add was the "=TRUE" in one location and BAM it works. I added that in
my three other formulas and TADA...it works. This saves a ton of time
and greatly improves the metrics of our flight. Thanks again!!!


--
drvortex
------------------------------------------------------------------------
drvortex's Profile:
http://www.excelforum.com/member.php...o&userid=15896
View this thread: http://www.excelforum.com/showthread...hreadid=489624


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
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
Countif to ignore any errors Excel Worksheet Functions 4 January 7th 05 06:32 PM
Unresolved Errors in IF Statements - Errors do not show in results Markthepain Excel Worksheet Functions 2 December 3rd 04 08:49 AM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM


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