Forum Discussion
COUNTIF and COUNTIFS giving different results
- Aug 12, 2021
PhilipLibman First of all, the "numbers" in column A and B were texts. Fixed that with Text-to-columns. Then, the second formula contains a typo. You used COUINTIF. Hence the #NAME? error. Remove the letter "I" marked in red and it shall work.
See attached.
Could you attach a sample workbook demonstrating the problem? Don't include any sensitive information.
Yes please see attached file. Thanks
- Riny_van_EekelenAug 12, 2021Platinum Contributor
PhilipLibman First of all, the "numbers" in column A and B were texts. Fixed that with Text-to-columns. Then, the second formula contains a typo. You used COUINTIF. Hence the #NAME? error. Remove the letter "I" marked in red and it shall work.
See attached.
- PhilipLibmanAug 12, 2021Copper ContributorThanks! The typo is a silly error. I did change from text to numbers, but did it in "Format Cells" and it didn't take. Only Text to Column worked and allowed the formula to calculate correctly.
Much appreciated.- Riny_van_EekelenAug 12, 2021Platinum Contributor
PhilipLibman You're welcome. And just bare in mind that formatting a cell as Number doesn't change the content of the cell to a number if it had been entered/imported as a text.