Forum Discussion
ash-701
Jul 29, 2021Copper Contributor
COUNTFS/COUNTIF not working with cells that have multiple values
I cannot figure out a formula that will work for my needs. I need to total the number of times a specific type of error occurs in a specific range of cells. I can total just fine if I use =COUNTIF(e4:e200,”income”) but if a cell has multiple items selected it will not count it if “Income” is one of the items selected in that cell. I’ve tried the following things that have no worked (I get an error):
=COUNTFS(e4:e200, contains(“income”, @cell)) ->results in #NAME? as the result
=COUNTF(e4:e200, has(@cell,”income”@row))
I cannot for the life of me figure it out and I’ve poured over many posts. I’ve attached screen shots of what I’m looking at.
=COUNTFS(e4:e200, contains(“income”, @cell)) ->results in #NAME? as the result
=COUNTF(e4:e200, has(@cell,”income”@row))
I cannot for the life of me figure it out and I’ve poured over many posts. I’ve attached screen shots of what I’m looking at.
DCL611 You are not doing anything wrong, your version of Excel doesn't have dynamic arrays (which means you also don't have some of the new functions that come with it like FILTER(), UNIQUE() and some others). So going back to old school tricks I think this should work for you:
=IFERROR(OFFSET(Ranks!$Y$1,AGGREGATE(15,7, ROW(Ranks!$Z:$Z)/(Ranks!$Z:$Z=$AQ8),COUNTIF($AQ$1:$AQ8,$AQ8))-1,0)," ")
see attached. If it works for you I hope you like and mark this as best answer 🙂
3 Replies
Sort By
- Subodh_Tiwari_sktneerSilver ContributorUse wild card character * before and after the criteria like this and you will get the desired count...
=COUNTIF(E4:E200,"*Income*")- ash-701Copper ContributorTHANK YOU! That worked! You’ve saved me another night of sleep lost. 🙂
- Subodh_Tiwari_sktneerSilver Contributor
You're welcome ash-701! Glad it worked as desired.
Please take a minute to accept the post with the proposed solution as Best Response to mark your question as Solved.