I have two sheets.
In Sheet1, in cells B5:P30, I have course ID numbers.
In Sheet2, in column A, I have course ID numbers. In column B, I have 'Available' and 'Not Available'. These designate whether the course is offered.
I want to conditionally format the course IDs in Sheet1 based on whether the course is offered according to Sheet2.
Or, to put that more formally in Excel terms, I want to conditionally format B5:P30 in Sheet1 based on whether the value in column B of Sheet2 associated with the course number in column A of Sheet2 is 'Available' or 'Not Available'.
I've tried this with a VLOOKUP, but haven't been able to get it to work -- I consistently get an error in the formula, but the formula works fine in the sheet away from the conditional formatting dialog. I've also tried with a third sheet listing Available and Not Available in their own columns and using a COUNTIF, but that similarly gave me unresolvable errors.
One example I've tried is:
=LOOKUP(B5,Sheet2!$A:$A,Sheet2!$B:$B)="Available"
But that just says the formula has an error in it. The formula works fine outside the conditional formatting dialog, however.
Any suggestions?
Bookmarks