Avatar of Mark Wood
Mark Wood
Flag for United States of America asked on

Conditional Formatting Help Needed

i am trying to set up a conditional formatting rule to show paydays in green. i have paydays setup as a named range for the entire year, Tables!F2:F27.

How would i write the rule to do that? i will attach a copy of the spreadsheet on the next comment.
Microsoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
Mark Wood

8/22/2022 - Mon
Mark Wood

ASKER
here is the spreadsheet
Time-and-Payments.xlsx
byundt

Select cells C4:I17 and use a formula criteria like:
=MATCH(--SUBSTITUTE($B$2,","," " & C4 & ","),PayDates,0)

Open in new window

Time-and-Payments.xlsx
Mark Wood

ASKER
The only thing is it is turning Feb 3rd green and it is not a paydate
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Subodh Tiwari (Neeraj)

Does this work as desired?
Time-and-Payments.xlsx
byundt

You made a lot of extra work by choosing to display dates as text. The better way to do it is to display a real date in each cell, then format the date with ddd if you want the day of the week or d if you want just the day number.

I changed all of your date formulas to be real dates instead of text, then modified the Conditional Formatting accordingly.
Time-and-Payments.xlsx
ASKER CERTIFIED SOLUTION
byundt

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Subodh Tiwari (Neeraj)

Mark,

Did the attached file in the accepted solution work for you? Did you try to change the month on setup sheet and did you find everything normal on Month  Sheet?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Mark Wood

ASKER
Thank a lot byundt. Now i just need to try and fix the conditional formatting for the holidays. for some reason it all works great except for March, June, and November. On those months it turns all of the white dates to pink.

Thanks again.
Mark Wood

ASKER
after doing some more looking on what you sent the paydates are working perfectly but none of the paid holidays are showing up on the calendar.
Mark Wood

ASKER
Subodh,

No it did not work. none of the paid holidays would show and neither did the paydays
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Mark Wood

ASKER
OK i was able to fix the holidays byundt simply by changing you formula for paydates to =MATCH(C4,HolidayDates,0)

Thanks