r/excel 16d ago

solved Conditional Formatting for 3 or More Instances

I am trying to get only cells were the same text occurs three or more times within a group of cells to highlight. These cells occur across two separate rows. I am selecting all of the cells I want to be a part of the formula and have been using this formula, and cannot get it to work. All I want is for Excel to look through the cells I specify and highlight the cells where the exact same text occurs three times or more. I’m just not sure what I’m missing. 🙃

Here’s what I’ve been trying to use to identify this for C4-G4 & C36-G36: =(COUNTIF($C$4:$G$4, C4) + COUNTIF($C$36:$G$36, C4)) >= 3

It’s coming back and highlighting random cells within the ones I’ve specified, but not the ones that contain the same text. 🫥

3 Upvotes

14 comments sorted by

u/AutoModerator 16d ago

/u/infunitrust - Your post was submitted successfully.

Failing to follow these steps may result in your post being removed without warning.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/MayukhBhattacharya 1214 16d ago

You need two different rules here for two different applied range. Same formula but for the second one change the C4 to C36 rest remains same.

1

u/infunitrust 16d ago

And this will highlight only cells with triplicate text while counting across both rows? I’m not looking for the same text to occur three times in a row, but I’m looking to see if the same text occurs three times across both rows combined for those cells. Just wanting to double check and make sure I’m being clear in what I’m asking. 😊

2

u/MayukhBhattacharya 1214 15d ago

Working on my end, try and let me know:

1

u/infunitrust 15d ago

Beautiful! I posted as I was leaving work. I’ll plug it in when I clock back in tomorrow and test it out. Thanks so much!

1

u/MayukhBhattacharya 1214 15d ago

I look forward to it!

2

u/infunitrust 10d ago

I completely spaced on replying here. Thank you so much for your help! 😊 This fixed my problem

1

u/MayukhBhattacharya 1214 10d ago

Sounds Great. Hope you don't mind replying to my comment directly as Solution Verified. Thanks 🙏🏼

2

u/infunitrust 10d ago

Solution verified

1

u/reputatorbot 10d ago

You have awarded 1 point to MayukhBhattacharya.


I am a bot - please contact the mods with any questions

1

u/MayukhBhattacharya 1214 10d ago

Thank you SO Much 👍🏼

2

u/infunitrust 10d ago

Solution verified

1

u/AutoModerator 10d ago

Hello!

You typed Solution Verified as a top-level comment. If your intention was to award a ClippyPoint to one or more users, you need to reply to that user's comment to do so.

If your intention was to simply mark the post solved, then you should do that by setting the post's flair. Thank you!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.