A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hi Scott,
I hope you’ve been well.
Based on your description, you can use Conditional Formatting in Excel to highlight cell A2 when its value does not match the value required by A1.
For example, if A1 contains 99, and A2 must contain JC, you can try the steps below:
- Select cell A2.
- Go to Home > Conditional Formatting > New Rule.
-
- Select Use a formula to determine which cells to format.
- Enter the following formula: =AND($A$1=99,$A$2<>"JC")
-
- Select Format, choose your preferred fill color, and then select OK.
After the rule is applied, A2 will be highlighted whenever A1 contains 99 and A2 contains anything other than JC.
If you also want Excel to prevent users from entering an incorrect value and display an error message, you can additionally configure Data Validation for cell A2.
For references:
I hope this information is helpful. Should you have any further questions or need additional assistance, please feel free to share them in the comment below. I'm very happy to help.
If the answer is helpful, please click 'Yes' and kindly upvote it.
Note: Please follow the steps in the forum documentation to enable e-mail notifications if you want to receive the related email notification for this thread.