Here's how I did it in Excel 2003 using conditional formatting.
To apply conditional formatting to Sheet1
using values from Sheet2
, you need to mirror the values into Sheet1
.
Sheet1
.Enter the following formula into A1:
=IF(ISBLANK(Sheet2!B1),"",Sheet2!B1)
A1
by right-clicking it and selecting "Copy
".A
by right-clicking its header and selecting "Paste
".Sheet1
, column A
should now exactly mirror the values in Sheet2
, column B
.
(Note: if you don't like it in column A
, it works just as well to have it in column Z
or anywhere else.)
Sheet1
.B
by left-clicking its header.Format > Conditional Formatting...
Change Condition 1
to "Formula is
" and enter this formula:
=MATCH(B1,$A:$A,0)
Click the Format...
button and select a green background.
You should now see the green background applied to the matching cells in Sheet1
.
Sheet1
.A
and select "Hide
".This should automatically update Sheet1
whenever anything in Sheet2
is changed.