PDA

View Full Version : Conditional Format question



Scooter172
02-06-2012, 08:20 PM
I have a schedule in Xcel that I want a row say 1-17 colums c-h and its contence to change colors based on if the information in Column B1:B17 matches the information in Cells B23:B25.

This would blank out the schedule of hours and days in all columns in that row of Person a in row who is indicated on Vacation in Cells in B23:B25

B1 = B23 so therefore row 1 C1 - H1 turn a color

I want to use conditional formatting but can this be done without a Macro, would this be better served using a cond format based on formula?
I have already named tha ranges of B1:B17 as Scheduledetail and B23:B25 as OnVacation

Bob Phillips
02-07-2012, 02:33 AM
Select C1:H17 and than a conditional format formula of

=ISNUMBER(MATCH(B1,$B$23:$B$25,0))

and set the fill colour.

Scooter172
02-07-2012, 10:20 AM
This makes The first Cell in the row turn color but those that follow do not... Checked if Conditional formula is correct and it is?

Bob Phillips
02-07-2012, 10:30 AM
Should do, because you are not running ISNUMBER against the text, but against the result of matching that text value against a range.

Scooter172
02-07-2012, 10:59 AM
Only The first Cell in the row changes, not the entire row. Seems to be the only flaw.

Bob Phillips
02-07-2012, 12:35 PM
My formula was slightly flawed, it should have been

=ISNUMBER(MATCH($B1,$B$23:$B$25,0))

Scooter172
02-12-2012, 07:40 AM
That worked,,, Thanks!

Scooter172
02-13-2012, 05:21 PM
After installing this formula it works fine as long as (the cells being referenced for the match "cell" is driven by a VLookup formula. I have noticed that this causes the Conditional Formula to Fail completely.

Bob Phillips
02-14-2012, 01:21 AM
Not sure what you men. Post the workbook and point out an example.

Scooter172
02-16-2012, 10:13 AM
I do not see any link or button to attach a workbook

Bob Phillips
02-16-2012, 10:29 AM
Click the Advanced button on the post and then Manage Attachments.