Mar 29 2023 11:57 AM
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 if I use the cell reference with the last name in it?
For Example:
Column B has the reference of last names I am using in my COUNTIF function. B2 has the first name I am referencing (Smith). If I type ="COUNTIF('SHEET 1'!A$4:E$20, B2), 0 result populates. If I type the same formula but as ="COUNTIF('SHEET 1'!A$4:E$20, "Smith"), the correct result populates.
I want to copy this formula down to repeat for over 100 last names... It would take forever to hand type each last name as I copy down the formula. Any tips?
Mar 29 2023 12:05 PM
Mar 29 2023 12:08 PM
Mar 29 2023 12:23 PM
Mar 29 2023 12:29 PM
Mar 29 2023 12:36 PM
Mar 29 2023 02:08 PM
@Detlef_Lewin Thank you so much. This worked like a charm and you saved me so much time. I appreciate it!!!!!