# Excel - COLUMN Function Problem - Expert Solution

Question description:
This user has given permission to use the problem statement for this blog.

I am trying to make a format rule that when a cell in column E is equal to the adjacent cell in column D, it will highlight green, unless both columns are blank.
Solved by Z. E. in 14 mins
This is the chat thread from the real Excelchat help session. It contains no private user information.
Excelchat Expert 11/07/2018 - 02:39
Welcome, thank you for choosing Got It Pro-Excel! I'll be glad to assist you with your concern. :)
User 11/07/2018 - 02:40
Hi!
Excelchat Expert 11/07/2018 - 02:40
I've read your concern, and it seems you're in need of a custom conditional formatting that highlights a value as green if it and its adjacent value is equal. Is this correct? :)
User 11/07/2018 - 02:41
Yes. I can do that. However, if both cells are blank, they still highlight green
Excelchat Expert 11/07/2018 - 02:41
Oh I see. Will you be able to post your custom formula used in the conditional formatting? :)
User 11/07/2018 - 02:42
i can try an duplicate it
Excelchat Expert 11/07/2018 - 02:42
User 11/07/2018 - 02:45
Does this not let me reference other cells?
Excelchat Expert 11/07/2018 - 02:46
It actually does. Google sheets work a bit differently with Excel. If you're more comfortable with Excel, you can upload a sample data we could work on. :)
Excelchat Expert 11/07/2018 - 02:46
Oh nice. You were able to do it. :)
User 11/07/2018 - 02:48
Ok i believe i got it
Excelchat Expert 11/07/2018 - 02:49
Nice! Okay, let me modify the conditional formatting so we could exclude blank cells from it. :)
Excelchat Expert 11/07/2018 - 02:50
Already done. Basically, I referenced the conditional formatting using a custom formula.
User 11/07/2018 - 02:50
Nice!
Excelchat Expert 11/07/2018 - 02:50
So instead of choosing "Is equal to", choose "Custom formula is" (the last option)
Excelchat Expert 11/07/2018 - 02:50
=and(E2=D2,E2<>"",D2<>"")
User 11/07/2018 - 02:50
okay let me try that on my excel sheet real quick
Excelchat Expert 11/07/2018 - 02:51
Sure thing, please do. You may change the reference cells depending on how your working file is structured.
User 11/07/2018 - 02:53
I got it working. Thank You!
Excelchat Expert 11/07/2018 - 02:53
Nice! You can now end the session via the button on your upper right (sorry, can't do it from our end). I would also appreciate it if you can leave a great feedback after this.Thanks so much for using Got it pro and have a nice day! :)

This is the output file from the real Excelchat help session:
This is an example of the expert help you can get. It contains no private user information.

Get instant expert help with Excel and Google Sheets

#### Post your problem and you’ll get expert help in seconds.

Your message must be at least 40 characters
Your privacy is guaranteed. Your session will not be used for blog unless you give us persmission.