Forum Discussion
xtine17
Mar 29, 2023Copper Contributor
COUNTIF not counting unless I specifically type criteria out?
I am trying to use a COUNTIF function to count how many times names appear throughout the worksheet tabs. The COUNTIF function works correctly if I physically type out "Smith" for criteria, but not ...
Detlef_Lewin
Mar 29, 2023Silver Contributor
xtine17
Mar 29, 2023Copper Contributor
Just checked, no spaces in the data reference column. Could it be because out of all the ranges COUNTIF is searching for, this spreadsheet has multiple cells with multiple last names listed (for example 1 cell will say "Smith, Jones, Parker") ?
- Detlef_LewinMar 29, 2023Silver Contributor
- xtine17Mar 29, 2023Copper ContributorThat's what I assumed but I have tried a few things and if I type =COUNTIF('WEEK 1'!A$4:E$19, "*Smith*"), it is counting correctly. Just not sure why I can't put "*B2*" doesn't output the same? Because I am trying to copy down this formula (with multiple COUNTIF functions added together) down without manually typing a new last name every row.
- Detlef_LewinMar 29, 2023Silver Contributor