Conditional Formatting

gdrowell

New Member
Joined
Dec 13, 2017
Messages
40
I have a worksheet that looks for a date and name match and creates a list from the table.

{=IFERROR(INDEX('Driver Vacations'!$F:$F,SMALL(IF('Driver Vacations'!$K$3:$R$307=January!E$4,ROW('Driver Vacations'!$K$3:$R$307)),ROWS(January!E$5:E16))),"")} where $K$3:$R$307 is the table range.

I want to conditional format any match that occurs in $Q$3:$R$307 without disrupting the original formula above

Any help with be greatly appreciated. Thank you in advance
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
You want to format any cell in $Q$3:$R$307 that is equal to January!E$4?

Perhaps a CF rule of =Q3=$E$4

Your question makes no sense in regard to what you want to compare to what for the CF rule to be applied.
 
Upvote 0
Hi gdrowell,

I'll try and help you. Although I can't fully visualise what your table looks like, I will presume your formula above is contained within the worksheet and not within the Conditional Formatting function.

When using the Conditional Formatting function, it should not interfere with your formulas in the worksheet. Simply select the range $Q$3:$R$307, go to Home > Conditional Formatting > New Rule > Classic > Use a formula to determine which cells to format

Then try the following formula: =IF(Q3<>"",TRUE,FALSE) and select the formatting you require for those cells. Click Ok.

I'm presuming non-blanks are where you have a match. Let me know if that helped and whether I understood your query correctly?

Best wishes,
Nick.
 
Upvote 0
Hopefully, I can try to be more specific in my question.

Please look at the attachment.

If i were to type a date in the table 1 on the left, the formula (at the top) looks for the date to match the date in the header (of table 2 to the right) and inserts the name of the person associated with that date.

How can i format the name (to be italics) from the table 2 to the right, if any a date is typed in the Week 3 column of Table 1?

(I.E. Bill week 3 is 09/01/2018, so in Table 2, his name should appear in Italics, where every one else stays unchanged)
 

Attachments

  • Capture2.JPG
    Capture2.JPG
    83.3 KB · Views: 5
Upvote 0
Book1
ABCDEFGHIJKLMNOP
1All weeks are week ending date
2NameNo. Of WeeksWeek OneWeek TwoWeek Three1/6/20183/10/20184/21/20186/23/20187/7/20189/1/20189/22/201810/6/2018
3Bill 31/6/20184/21/20189/1/2018Bill StevenBill SallyDanaBill ChrisDana
4Sally26/23/20189/1/2018Pam DanaChris SallyDoug 
5Pam11/6/2018Chris Doug  Steven  
6Chris31/6/20186/23/20189/22/2018        
7Dana34/21/20187/7/201810/6/2018        
8Doug24/21/20189/22/2018        
9Steven23/10/20189/1/2018        
Sheet1
Cell Formulas
RangeFormula
I3:P9I3{=IFERROR(INDEX($A:$A,SMALL(IF($C$3:$E$9=I$2,ROW($C$3:$E$9)),ROWS(I$3:I3))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
 
Upvote 0
I'm not seeing where you're specifically requiring week 3, should Sally be in italics for week2, Pam for week 1, etc?

Try applying one of these as a conditional format rule to the range $I$3:$P$9 The bold 3 refers to the week number.

=INDEX($C$3:$E$9,MATCH(I3,$A$3:$A$9,0),3)=I$2

You can specify italic text on the Font tab of the Conditional Formatting > Set Formats box.

As an alternative, looking at all week numbers, see if this is what you need, I may be overthinking it though.
I've used the blue fill to demonstrate because xl2bb wasn't detecting the italic font.
Book1
IJKLMNOP
201/06/201803/10/20184/21/20186/23/201807/07/201809/01/20189/22/201810/06/2018
3BillStevenBillSallyDanaBillChrisDana
4Pam DanaChris SallyDoug 
5Chris Doug  Steven  
6        
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I3:P9Expression=INDEX($C$3:$E$9,MATCH(I3,$A$3:$A$9,0),INDEX($B$3:$B$9,MATCH(I3,$A$3:$A$9,0)))=I$2textNO
 
Upvote 0
Thank you Jason for your response.

How ever, Bill (9/1/18), Chris (9/22/18), and Pam (10/6/18) should be the only CF names because their dates fall under Week 3.
 
Upvote 0
Book1
ABCDEFGHIJKLMNOP
1All weeks are week ending date
2NameNo. Of WeeksWeek OneWeek TwoWeek Three1/6/20183/10/20184/21/20186/23/20187/7/20189/1/20189/22/201810/6/2018
3Bill 31/6/20184/21/20189/1/2018Bill StevenBill SallyDanaBill ChrisDana
4Sally26/23/20189/1/2018Pam DanaChris SallyDoug 
5Pam11/6/2018Chris Doug  Steven  
6Chris31/6/20186/23/20189/22/2018        
7Dana34/21/20187/7/201810/6/2018        
8Doug24/21/20189/22/2018        
9Steven23/10/20189/1/2018        
Sheet1
Cell Formulas
RangeFormula
I3:P9I3{=IFERROR(INDEX($A:$A,SMALL(IF($C$3:$E$9=I$2,ROW($C$3:$E$9)),ROWS(I$3:I3))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
 
Upvote 0
Now you can see the headers properly

Book1
ABCDEFGHIJKLMNOP
1All weeks are week ending date
2NameNo. Of WeeksWeek OneWeek TwoWeek Three1/6/20183/10/20184/21/20186/23/20187/7/20189/1/20189/22/201810/6/2018
3Bill 31/6/20184/21/20189/1/2018Bill StevenBill SallyDanaBill ChrisDana
4Sally26/23/20189/1/2018Pam DanaChris SallyDoug 
5Pam11/6/2018Chris Doug  Steven  
6Chris31/6/20186/23/20189/22/2018        
7Dana34/21/20187/7/201810/6/2018        
8Doug24/21/20189/22/2018        
9Steven23/10/20189/1/2018        
Sheet1
Cell Formulas
RangeFormula
I3:P9I3{=IFERROR(INDEX($A:$A,SMALL(IF($C$3:$E$9=I$2,ROW($C$3:$E$9)),ROWS(I$3:I3))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,605
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top