How can I make excel highlight a day of every current week

jorgef72

New Member
Joined
Mar 18, 2016
Messages
1
My example, I have a row with dates of every Sunday of each month in a year (only the Sunday), what I am struggling with is when I open the file I would like to using conditional formatting to highlight the Sunday of the current week so that I know which Sunday is coming up.
 

Some videos you may like

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

RCBricker

Well-known Member
Joined
Feb 4, 2003
Messages
1,560
My example, I have a row with dates of every Sunday of each month in a year (only the Sunday), what I am struggling with is when I open the file I would like to using conditional formatting to highlight the Sunday of the current week so that I know which Sunday is coming up.

try this

Code:
=AND(YEAR($A1)=YEAR(TODAY()),WEEKNUM($A1,2)=WEEKNUM(TODAY(),2))
 

MaxSmart

New Member
Joined
Sep 12, 2015
Messages
46
Hi,

Set up a helper column as I have done in column B in the example.

Then you can perform conditional formatting based on the value in the helper column


<b>Excel 2012</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #BBB"><colgroup><col width="25px" style="background-color: #DAE7F5" /><col /><col /></colgroup><thead><tr style=" background-color: #DAE7F5;text-align: center;color: #161120"><th></th><th>A</th><th>B</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style="font-weight: bold;text-align: center;;">Date</td><td style=";">Next up</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: center;;">07-Feb-16</td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="text-align: center;;">14-Feb-16</td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="text-align: center;;">21-Feb-16</td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: center;;">28-Feb-16</td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: center;;">06-Mar-16</td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: center;;">13-Mar-16</td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style="text-align: center;;">20-Mar-16</td><td style=";">THIS</td></tr><tr ><td style="color: #161120;text-align: center;">9</td><td style="text-align: center;;">27-Mar-16</td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">10</td><td style="text-align: center;;">03-Apr-16</td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">11</td><td style="text-align: center;;">10-Apr-16</td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">12</td><td style="text-align: center;;">17-Apr-16</td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">13</td><td style="text-align: center;;">24-Apr-16</td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">14</td><td style="text-align: center;;">01-May-16</td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">15</td><td style="text-align: center;;">08-May-16</td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">16</td><td style="text-align: center;;">15-May-16</td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">17</td><td style="text-align: center;;">22-May-16</td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">18</td><td style="text-align: center;;">29-May-16</td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">19</td><td style="text-align: center;;"></td><td style="text-align: right;;"></td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #BBB;border-top:none;text-align: center;background-color: #DAE7F5;color: #161120">Sheet1</p><br /><br />

<b>Excel 2012</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #BBB"><colgroup><col width="25px" style="background-color: #DAE7F5" /><col /></colgroup><thead><tr style=" background-color: #DAE7F5;text-align: center;color: #161120"><th></th><th>B</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">2</td><td style=";"></td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #BBB;border-top:none;text-align: center;background-color: #DAE7F5;color: #161120">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #BBB"><thead><tr style=" background-color: #DAE7F5;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">B2</th><td style="text-align:left">=IF(<font color="Blue">(<font color="Red">A2-TODAY(<font color="Green"></font>)</font>)<7,IF(<font color="Red">(<font color="Green">A2-TODAY(<font color="Purple"></font>)</font>)>=0,"THIS",""</font>),""</font>)</td></tr></tbody></table></td></tr></table><br />


Hope that helps

Regards........Max
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
47,926
Office Version
  1. 365
Platform
  1. Windows
My example, I have a row with dates of every Sunday of each month in a year (only the Sunday), what I am struggling with is when I open the file I would like to using conditional formatting to highlight the Sunday of the current week so that I know which Sunday is coming up.
Welcome to the MrExcel board!

You could also try this Conditional formatting.

Excel Workbook
A
1Date
2Sun 7-Feb-16
3Sun 14-Feb-16
4Sun 21-Feb-16
5Sun 28-Feb-16
6Sun 6-Mar-16
7Sun 13-Mar-16
8Sun 20-Mar-16
9Sun 27-Mar-16
10Sun 3-Apr-16
11Sun 10-Apr-16
12Sun 17-Apr-16
13Sun 24-Apr-16
CF Upcoming Sunday
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A21. / Formula is =A2=MEDIAN(A2,TODAY(),TODAY()+6)Abc
 

Watch MrExcel Video

Forum statistics

Threads
1,122,514
Messages
5,596,611
Members
414,080
Latest member
penguin23

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
Top