Conditional Formatting with VLOOKUP

I am using VLookup to pull values in from one Excel tab to another. I want to make the cell change color if the user manually types in a value to replace the VLOOKUP value. So, for example, if the user goes into Cell B2 on the tab with the VLOOKUP value of "Joe" and types in "Jack" instead, I want the cell to change color so the user can see what they have changed.

I've tried this as a conditional formatting test: ="VLOOKUP(A2,SEG_D1!A:B,2,FALSE)<>B2"

The first part yields the original value and is the formula in Cell B2. If the user types over this value and puts something else in there than what the VLOOKUP yields, I want the cell to change color. Looks to me like the above would apply the test between what the VLOOKUP is yielding and what is actually in Cell B2. But when I change the value in B2 manually, it doesn't change color.

Any suggestions appreciated.

Buck_BeasomDatabase DesignerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ejgil HedegaardCommented:
You can't reference another sheet in a conditional format formula.

But with a named range it is possible.
Name columns A:B on the sheet SEG_D1 LookupRange
Then use the name in the Vlookup formula like this =VLOOKUP(A2,LookupRange,2,FALSE)<>B2
Buck_BeasomDatabase DesignerAuthor Commented:
Seems like it should work. I named the range "RPTID" in the SEG_D1 tab and the VLOOKUP works, but when I put this into the conditional format:


It still doesn't change color when I change the B2 value.

Ejgil HedegaardCommented:
You must remove the 2 " in the formula.
="VLOOKUP(A2,RPTID,2,FALSE)<>B2" means equal to the text.
=VLOOKUP(A2,RPTID,2,FALSE)<>B2 is a formula.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Buck_BeasomDatabase DesignerAuthor Commented:
Awesome! That's got it! THANKS!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Office Productivity

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.