conditional formatting questions

zakasnak

Active Member
Joined
Sep 21, 2005
Messages
308
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
  2. MacOS
I have a spreadsheet (duh!) that uses dates for nominations of natgas. On Monday, I nom for Wednesday (highlighted), on Tuesday, I nom for Thursday (highlighted), etc. The problem comes when today's date is a Thursday, I want the conditional formatting to highlight Saturday, Sunday, AND Monday and then on Friday, highlight Tuesday.

Tue 1/16/2018
Wed 1/17/2018
Thu 1/18/2018
Fri 1/19/2018
Sat 1/20/2018
Sun 1/21/2018
Mon 1/22/2018

Conditional Format Formulas:

Cell Value = TODAY()

Cell Value = TODAY()+2

​Help?
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
for the second condition try

cell value = IF(WEEKDAY(TODAY())=6,TODAY()+4,IF(WEEKDAY(TODAY())=5,OR(TODAY()+2,TODAY()+3,TODAY()+4),TODAY()+2))
 
Upvote 0
It highlighted all of the days except for TODAY()....
 
Upvote 0
Hi,

Try my formula in my sample cell C1 for your CF formula:


Book1
ABC
1Tue 1/16/2018TRUE
2Wed 1/17/2018FALSE
3Thu 1/18/2018FALSE
4Fri 1/19/2018FALSE
5Sat 1/20/2018FALSE
6Sun 1/21/2018FALSE
7Mon 1/22/2018FALSE
Sheet14
Cell Formulas
RangeFormula
C1=WEEKDAY(A1,2)=IF(AND(WEEKDAY(TODAY(),2)=4,OR(WEEKDAY(A1,2)>5,WEEKDAY(A1,2)=1)),WEEKDAY(A1,2),IF(WEEKDAY(TODAY(),2)<=3,WEEKDAY(TODAY(),2)+2,IF(WEEKDAY(TODAY(),2)=5,2,2)))


Should work for all your requirements.
 
Upvote 0

Forum statistics

Threads
1,223,891
Messages
6,175,229
Members
452,621
Latest member
Laura_PinksBTHFT

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