Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
COUNTIF or not to COUNTIF on a range in another sheet | Excel Worksheet Functions | |||
Combining IF and COUNTIF based on two columns | Excel Discussion (Misc queries) | |||
Countif to ignore any errors | Excel Worksheet Functions | |||
Unresolved Errors in IF Statements - Errors do not show in results | Excel Worksheet Functions | |||
Countif - Countif | Excel Worksheet Functions |