Apr 05 2018
09:11 AM
- last edited on
Jul 25 2018
11:34 AM
by
TechCommunityAP
Apr 05 2018
09:11 AM
- last edited on
Jul 25 2018
11:34 AM
by
TechCommunityAP
Hi all. I have two separate worksheets, one of which needs to be connected to another. On Sheet 1 for column K, I have either "true" or "false". In Sheet 2 for cell B6, I want to count all the number of "true"s from Sheet 1. No "false" cells will be counted.
I am sure my logical thinking is off here. =if('Sheet 1'!K2:K29="true", "Sheet 2"=countif(B6)). How close did I get to what I wanted to do? If the formula is wrong, what formula should I have been using? Thanks very much for your help on this.
Apr 05 2018 09:39 AM - edited Apr 05 2018 09:39 AM
Hi Scott,
Please try this formula:
=COUNTIF(Sheet1!K:K,TRUE)
Apr 05 2018 10:17 AM
Apr 05 2018 10:30 AM
Hi Scott,
I guess that the TRUEs and FALSEs are parsed as texts, and it seems that the COUNTIF function cannot handle this situation!
So please replace the previous formula with this:
=SUMPRODUCT(--(K:K="TRUE"))
Hope that helps