Highlight Cells based on date

VKKT
2StarLounger
Posts: 184
Joined: 13 Jun 2018, 07:50

Highlight Cells based on date

Post by VKKT »

Hi All,
Greetings:

I have the attached leave schedule for staff. Is it possible to highlight the date cells as shown in the excel sheet based on the changes in the data in column B, C & E.

Regards,
VKKT
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78361
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Highlight Cells based on date

Post by HansV »

You can do this using Conditional Formatting. To view the rules, select Conditional Formatting > Manage Rules... on the Home tab of the ribbon.

Leavesch.xlsx
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

VKKT
2StarLounger
Posts: 184
Joined: 13 Jun 2018, 07:50

Re: Highlight Cells based on date

Post by VKKT »

Great, thanks Mr. Hans :clapping: :clapping:
regards,
VKKT

VKKT
2StarLounger
Posts: 184
Joined: 13 Jun 2018, 07:50

Re: Highlight Cells based on date

Post by VKKT »

Hi,
Greetings:

I have attached a leave schedule, is it possible to highlight all the leaves in one row as shown in the bottom of the attachment.

Regards,
VKKT
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78361
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Highlight Cells based on date

Post by HansV »

That would be complicated.
Best wishes,
Hans

gailb
3StarLounger
Posts: 254
Joined: 09 May 2020, 14:00

Re: Highlight Cells based on date

Post by gailb »

I would adopt a data validation method.
You do not have the required permissions to view the files attached to this post.

VKKT
2StarLounger
Posts: 184
Joined: 13 Jun 2018, 07:50

Re: Highlight Cells based on date

Post by VKKT »

Greeting:
Thanks Hans/gailb

I had managed it by adding additional cells for dates as shown in the attached.

Now I want to highlight the cells where another cell contains a specific value (attached the sample) I had tried but not successful.

Regards,
VKKT :cheers: :cheers:
You do not have the required permissions to view the files attached to this post.
Last edited by VKKT on 19 Jul 2022, 09:57, edited 1 time in total.

User avatar
HansV
Administrator
Posts: 78361
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Highlight Cells based on date

Post by HansV »

Your sample workbook doesn't explain what you want to do...
Best wishes,
Hans

VKKT
2StarLounger
Posts: 184
Joined: 13 Jun 2018, 07:50

Re: Highlight Cells based on date

Post by VKKT »

Sorry Hans, I had attached wrong file. Now updated with the correct one

thanks
VKKT

User avatar
HansV
Administrator
Posts: 78361
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Highlight Cells based on date

Post by HansV »

Select V5:AY13. The active cell in the selection should be V5.
Create a new conditional formatting rule of type formula with formula

=V$3="H"

Here, V is the column of the active cell; this is relative because it must change for the other columns.
3 is the row that may contain "H". This is absolute since it should not change for the other rows.
See the attached version.

Schedule of leave-sample1.xlsx
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

VKKT
2StarLounger
Posts: 184
Joined: 13 Jun 2018, 07:50

Re: Highlight Cells based on date

Post by VKKT »

Thanks a lot Hans for your support. :clapping: :clapping:

I had used wrongly =$V$3="H"

Regards,
VKKT :cheers: :cheers: