Highlight Cell based on Value of another Cell

Andy16H

Board Regular
Joined
Apr 17, 2010
Messages
192
I am using the following formula in Column G, Sheet, Micros Sales Reports =IFERROR(MATCH(E2,'Bank Statement'!E:E,0),"")
The formula returns a row number for the match and works great.

If the above formula returns a 5, I need to highlight cell E5 on the Bank Statement Sheet
If the above formula returns a 73, I need to highlight Cell E73 on the Bank Statement sheet and so on all the way through the sheet.

I also need to place a X in the cell to the right of the cell that is highlighted.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Using conditional formatting, this would be easy. You simply need to turn that formula into trues and falses... Highlight E1 to E100 (if you want to go to E2000, highlight E1-E2000 etc) and create a new conditional formatting rule (home ribbon, conditional formatting, new rule) using the formula

=IFERROR(MATCH(E2,'Bank Statement'!E:E,0),"")=ROW(E1)

Be sure the active cell in your highlighted range is E1 of course... then format it to whatever you want.
 
Upvote 0

Forum statistics

Threads
1,215,650
Messages
6,126,021
Members
449,281
Latest member
redwine77

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top