Forum Discussion
Formula to Find column1 value in column2 and highlight it
- May 26, 2021
Mahesh_B The range in column A included a blank cell at the end and it is a dynamic array formula so you only needed to paste it in the first cell. If you don't have Excel 365 it won't work.
I fixed both issues and added the conditional formatting option in the attached.
Let's say the numbers are in A1:A5 and the text values in C1:C12.
Select C1:C12. C1 should be the active cell in the selection.
On the Home tab of the ribbon, select Conditional Formatting > New Rule...
Select 'Use a formula to determine which cells to format'.
Enter the formula
=ISNUMBER(MATCH(1,MATCH("*-"&$A$1:$A$5&"*",C1,0),0))
Click Format...
Specify the desired formatting.
Click OK, then click OK again.
HiHansVogelaar ,
I tried but its not working.
Can you please help with this?
I have attached file here where I am trying to apply this formula.
Thanks,
Mahesh
- HansVogelaarMay 26, 2021MVP
You posted a workbook with mtarler's formula.
Your data look different from your sample, so you need a slightly different formula.
See the attached version.