How to highlight a row based on the value in one column

Pezz3r

New Member
Joined
Apr 15, 2011
Messages
6
I want to highlight a row in a table based on the value in one of the columns.

Basically I've got a table of weeks, and I want the current week to be automatically highlighted. Using the TODAY() function and an IF statement I've created a column which is set to 1 if it is the current week, or 0 otherwise, like this:

<table border="0" cellpadding="0" cellspacing="0" width="338"><col style="mso-width-source:userset;mso-width-alt:2742;width:56pt" width="75"> <col style="mso-width-source:userset;mso-width-alt:2596;width:53pt" width="71"> <col style="width:48pt" span="3" width="64"> <tbody><tr style="height:15.75pt" height="21"> <td style="height:15.75pt;width:56pt" height="21" width="75">W/C</td> <td style="width:53pt" width="71">This Week</td> <td style="width:48pt" width="64">Data 1</td> <td style="width:48pt" width="64">Data 2</td> <td style="width:48pt" width="64">Data 3</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20" align="right">18/04/2011</td> <td align="right">0</td> <td align="right">4</td> <td align="right">5</td> <td align="right">6</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20" align="right">25/04/2011</td> <td align="right">1</td> <td align="right">1</td> <td align="right">5</td> <td align="right">6</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20" align="right">02/05/2011</td> <td align="right">0</td> <td align="right">78</td> <td align="right">4</td> <td align="right">20</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20" align="right">09/05/2011</td> <td align="right">0</td> <td align="right">100</td> <td align="right">132</td> <td align="right">78</td> </tr> </tbody></table>
I want to highlight the entire second row, based on the second column. Is this possible with conditional formatting, or some other means?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,224,586
Messages
6,179,707
Members
452,939
Latest member
WCrawford

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