Highlight names that appear only 1 or 2 times

DaRTH KiRo

New Member
Joined
Jan 24, 2018
Messages
39
Office Version
  1. 2016
Platform
  1. Windows
In column A, I have a list of names and I need to find the names that only show up once or twice but not more than two times. I have tried different variations of =COUNTIF($A:$A,$A2)>2 but it just highlights the first and second entries, even if there are three or more in the list. Is there anything that can be done to work around this?
 

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).
How about
Excel Formula:
=COUNTIF($A:$A,$A2)<3
 
Upvote 0
Solution
How about
Excel Formula:
=COUNTIF($A:$A,$A2)<3
Actually, I just looked again, it is doing the opposite now, so it will highlight the 3rd and so on, but I need to determine which customers have only purchase once or twice from us. If that makes sense.
 
Upvote 0
It cannot highlight the 3rd value, it will highlight any names that occur twice or less.
 
Upvote 0
It cannot highlight the 3rd value, it will highlight any names that occur twice or less.
Your solution was correct, my "Applies to" was off so when you gave me the right answer it still looked wrong. Thank you again for your help!
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,411
Messages
6,119,356
Members
448,888
Latest member
Arle8907

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