Conditional Formatting every other occurence

tahonick

New Member
Joined
Feb 17, 2016
Messages
10
Hi all,

Background
I'm creating a sick/vacation tracker. I want the dates (and days of the week) going horizontally across the spreadsheet. It automatically sums sick and vacation this way easily.

The Problem

I have to enter these days into payroll every other Thursday, so I want to have every other Thursday highlighted red using conditional formatting, as I have it setup to change the date labels (Mon, Tues, etc.) to automatically update based on the year listed in another cell. How would I do have it automatically highlight every other Thursday?

It currently looks like this:
rdsAlEQ.png


I want it to look like this:
U4v6Gx0.png


Thanks in advance!

Best,
Tahonick
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Ok... Assuming your first day starts in column A and your day row (Mon, Tue, Wed, ETC) is on row 3,
Highlight the entire range (A3:whatever3) and use conditional formatting formula
=AND(MOD(COLUMNS($A:A),14)>7,A3="Thu")

Good luck,

CN.
 
Upvote 0
Change the formula
from =AND(MOD(COLUMNS($N:$NY),14)>7,N6="Thu")
to =AND(MOD(COLUMNS($N:N),14)>7,N6="Thu")

That $ before the second part of the columns is locking it to be constant and I'm not sure why you have N:NY

Good luck,

CN.
 
Upvote 0
Also of note, this will make the 2nd pair highlighted ... if you want the FIRST pair to be highlighted, you would have to change it to <8 instead of >7
 
Upvote 0
I want to reiterate how much I appreciate your help.

If I might ask one more question, is there a reason it doesn't seem to work correctly when I switch the reference cell to 2017? It starts working in October but skips september for some reason.

The last thing to complete the sheet would be to get the weekend's cells grayed out automatically.


GfSh93t.png


gLlKSG2.png
 
Upvote 0
Ok... sounds like 2 separate questions...

First one... I'm assuming you have some formula to change the text of cells in row 6 that refers to L3? and in L3 you have 2016...
From what I am hearing, if you change L3 from 2016 to 2017, the conditional formatting stops working... is that correct? If that is the case, I'm a bit confused, so please provide the formulas in row 6...

Second one... I think you want a conditional formatting something like =OR(M6="Sat",M6="Sun")

Good luck,

CN.
 
Upvote 0
Yeah, 2 questions. Thought I'd take advantage of you while I had you.

First one... Yes, L3 is named CalendarYear. Here's the formulas I used for those:
=TEXT(WEEKDAY(DATE(CalendarYear,9,1),1),"aaa")
=TEXT(WEEKDAY(DATE(CalendarYear,9,2),1),"aaa") etc.

Second one... I gave it a shot and it only shaded the first row. I don't expect you to fix both in one shot. I can explore google for a while and try to figure this one out unless it's an easy one for you.

Thanks again!
 
Upvote 0

Forum statistics

Threads
1,216,095
Messages
6,128,792
Members
449,468
Latest member
AGreen17

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