Highlighting a cell on a table

mrc44

Board Regular
Joined
Aug 12, 2017
Messages
64
I have a table in the excel file attached. What I need is when I enter a value in A1, B1,C1,D1 etc. if the value is present in the corresponding table row, it should be highlighted. I made an example in the attached file. https://1drv.ms/x/s!AoGkZUHlKui9gRg6qf_Yom2t6eig


dWlrT
W69fCS6.jpg
 
Last edited:

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Conditional formatting is your friend here. Highlight J1:R4 and add a new conditional formatting rule based on the following formula:

Code:
=COUNTIF($A$1:$I$1,J1)>0

Set the format to be green background fill.

WBD
 
Upvote 0
Thanks. Yes your formula works in this case only if I use a single row $A$1:$I$1 in this case. If I want to use more rows, I think it won't be practical. Is there a formula for this kind of task that I can copy and paste across ?
 
Upvote 0
Just extend the first parameter to the range where you might type values. E.g.

Code:
=COUNTIF($A$1:$I$4,J1)>0

WBD
 
Upvote 0

Forum statistics

Threads
1,223,713
Messages
6,174,041
Members
452,542
Latest member
Bricklin

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