Link to home
Start Free TrialLog in
Avatar of Shaye Larsen
Shaye Larsen

asked on

Excel conditional format question

I have a sheet with a column that has emails.  Some emails are duplicate and some are BLUE.

I need to make a condition or formula that satisfies this.

If an email text is BLUE, find any duplicate emails of that same email and make them BLUE as well.
Avatar of Katie Pierce
Katie Pierce
Flag of United States of America image

Highlight entire list

Click Conditional Formatting in the Home ribbon

Click Highlight Cell Rules

Click Duplicate Values

In the righthand dropdown list select Custom Format

Select your font and/or fill colors there.

Click OK, then OK.
Avatar of Shaye Larsen
Shaye Larsen

ASKER

That is not what I am after.  There are some duplicates that I don't want highlighted.  I just need to highlight any duplicates of emails that already are highlighted.
Ah, I see. Sorry for misunderstanding. As far as I'm aware, you can't have a logic statement factor in the existing formatting of a cell, but I am curious to see if someone else has a trick.
Ok, thanks for trying.
Hey, this would take a couple more steps than a simple formula, and I don't know how many rows you have, but you could always:

-create a column that you manually enter something like "x" if the email is blue
-sort rows by that column, so all the blue emails are now grouped together
-select the whole list and do a conditional formatting where UNIQUE values are made a color that is not blue
-manually make blue what's left (you may also need to re-make-blue any of the "x" marked emails that were unique and thus changed to the new color)

Again, this might be insane if you have thousands of rows, but it would be a reasonable workaround for a small chunk.
My lists are massive.  Several thousand records.  Anything manual is out.
May I ask the end desired result? Is there a particular reason the blue duplicates need highlighting?
What I am after is a way to find out all emails (or people) that have taken a certain training course.  It is easy to highlight the ones who have taken the course I am after.  However, if they have taken that course, then I need to find their names on any other courses and also highlight those.  What I am after is to remove those people from my list.  So, in short. Anyone who has taken a certain course remove them from the list and any other records with their email.

This is why I was thinking of highlighting the flagged course by highlighting those whole rows with blue text.  The hard part is then to find any emails that match a blue email and make them blue as well.
Ah, I see. So then is the course listed in another column?  If so, you could rely on the values to get some logic statements working on your side.  As it is, logic statements can't look at formatting to help you.

If you want to upload a small sample, I could take a look for you.
k, sample attached.  Note the F column.  I first need to find everyone that has the "Online" course.  Then, anyone that has the online course, I need to find what other courses they have.  So for example, all the "Jane Does" will be called out because she has an online course.  But all the John Does will not cause he does not have an online course.
Nothing was attached.
Hmm, try that
test2.xlsx
ASKER CERTIFIED SOLUTION
Avatar of Katie Pierce
Katie Pierce
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I think we are close.  Your first formula worked, but yes, it incremented the number so it didn't to the whole sheet.  The second formula is not producing the "online" values.
Nevermind, I think I got it.  Checking it out, one minute.
Awesome.  You did it.  Thanks