I have 3 tables in the same sheet as follows:
I need to highlight corresponding rows and columns in other 2 tables. What I can do now is to highlight rows and columns, but can not figure out how to highlight corresponding columns in other tables. For example, if I select Melon or one of its values in Table 1, then get same selection in other 2 tables, and vice versa.
I have used this formula in conditional formatting --> Use a formula to determine which cells to format:
=OR(CELL("col")=COLUMN();CELL("row")=ROW())
I can also use this VBA code to update automatically (otherwise press F9) to update highlight.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.Calculate
End Sub
Any ideas? Thanks in advance!
Table1
the only table where the selection matters? If you select Lime inTable2
do you also wantLime
to be highlighted inTable2
andTable3
? If so, that requires more work – urdearboy