Forum Discussion
Ahmed_Ezzedin
Jan 12, 2022Copper Contributor
Conditional formatting
Hi everyone, I need to create a conditional formatting to cells A21 to A39. I need them to change colors when certain values are entered. I named those values Mylist, but the problem is that thes...
HansVogelaar
Jan 12, 2022MVP
Select A21:A39.
A21 should be the active cell in the selection.
On the Home tab of the ribbon, click Conditional Formatting > New Rule...
Select 'Use a formula to determine which cells to format'.
Enter the formula
=ISNUMBER(MATCH(A21,Mylist,0))
Click Format...
Activate the Fill tab.
Select a highlight color.
Click OK, then click OK again..
Ahmed_Ezzedin
Jan 12, 2022Copper Contributor
Hi Hans,
Thanks for your help, but it still not working. I'm not sure if I need to change something in the formula due to having the conditional values (mylist) in sheet2 not sheet one (where A21 is located). Those values are J16 to J24 in sheet2.
Thanks for your help, but it still not working. I'm not sure if I need to change something in the formula due to having the conditional values (mylist) in sheet2 not sheet one (where A21 is located). Those values are J16 to J24 in sheet2.
- HansVogelaarJan 13, 2022MVP
Does this work?
=ISNUMBER(MATCH(A21,Sheet2!$J$16:$J$24,0))
If not, please attach a sample workbook demonstrating the problem.
- Ahmed_EzzedinFeb 10, 2022Copper ContributorThanks Hans for your help, and sorry for not replying sooner. I ended up doing each cell separately and it worked.