What is wrong with this Countif formula?

tigerzen

Board Regular
Joined
Mar 8, 2023
Messages
165
Office Version
  1. 365
Platform
  1. Windows
Clearly Joe is on both lists but the formula ignores it. Both Joe entries have 3 characters in them, it doesn't matter where Joe sits on the second column he is ignored.

Book12
ABC
1OriginalNewOutcome
2JoeJoe 
3PoorHarryThis is on both lists
4FredSam 
5HarryPete 
6TomFredThis is on both lists
7Joe 
Sheet1
Cell Formulas
RangeFormula
C2:C7C2=IF(COUNTIF($A$2:$A$7,B2)=1,"This is on both lists","")
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
The formula should use greater than or equal to 1

Excel Formula:
IF(COUNTIF($A$2:$A$7,B2)>=1,"This is on both lists","")

Update: I see @AhoyNC beat me to it :)
 
Upvote 0
Thank you both, I should have picked that up. Been staring at a computer screen too long! Appreciate the quick turnaround.
 
Upvote 0
Happens to all of us. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top