Jenkins
asked on
Control Excel cell color using a function
Hello.
Wondering if cell color can be controlled using a function instead of a macro. Specifically what I need is to turn the cell fill color yellow when a data entry error is made by a user. Here is my existing function which is in Cell C3:
=IF(SUM(B3-A3)>0,"Error"," ")
In addition to displaying "Error", which it already does, I want to modify the function to turn cell C3 yellow when an Error is made (i.e. when the value in B3 is greater than the value of A3)
Thank you
Wondering if cell color can be controlled using a function instead of a macro. Specifically what I need is to turn the cell fill color yellow when a data entry error is made by a user. Here is my existing function which is in Cell C3:
=IF(SUM(B3-A3)>0,"Error","
In addition to displaying "Error", which it already does, I want to modify the function to turn cell C3 yellow when an Error is made (i.e. when the value in B3 is greater than the value of A3)
Thank you
Add Conditional Formatting in C3 that looks like this.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
You're welcome and I'm glad I was able to help.
If you expand the “Full Biography” section of my profile you'll find links to some articles I've written that may interest you.
Marty - Microsoft MVP 2009 to 2017
Experts Exchange MVE 2015
Experts Exchange Top Expert Visual Basic Classic 2012 to 2017
If you expand the “Full Biography” section of my profile you'll find links to some articles I've written that may interest you.
Marty - Microsoft MVP 2009 to 2017
Experts Exchange MVE 2015
Experts Exchange Top Expert Visual Basic Classic 2012 to 2017