Link to another workbook using conditional formatting in Excel
Lets call the workbook where you want to enter the conditional format as MyWbk and the other one SrcWbk. This instructions are for excel 2007. Your mileage may vary.
Open both Workbooks
In MyWbk go to the Formulas Menu, and select Define Name
Enter in Name > testname
In the "Refers to" field, select click on the range selector (at right) and when the selector opens, select SrcWkb and then the cell you want as source for the format condition.
Accept the name creation
Go to the cell where you want to enter the conditional format
Select the Home Menu / Conditional Formatting / Manage Rules
Enter New Rule
Select "Use a formula to determine which cells to format"
Enter the formula you want, using the defined name. For example =IF(testname=1,TRUE)
Select the desired formatting
Test the formula changing the value in SrcWbk
SAVE SrcWbk
You are done!
Related videos on Youtube
HACHI
Updated on April 26, 2022Comments
-
HACHI about 2 years
How can i use conditional formatting to extract data from other workbook?
I tried:
=IF(LEFT(B26,3)="SSS",VLOOKUP(B26,'XXX.xls!$A$4:$E$119,4,FALSE))
But I get this error message:
You may not link to other workbook via conditional formatting
What can I do with this situation? People out there mentioned "define name" but I'm not sure how can it be done.
-
CJ Dennis over 6 yearsI just discovered that you have to have the source workbook open in memory before opening the workbook with the conditional formatting. I.e., it won't read the values off the disk.