Colour a cell based on the date in a different cell

amysh

New Member
Joined
Jun 28, 2022
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am looking for a way to grey out a cell in a particular column based on the date in another column on the same row. Basically I am creating a training log database and if someone has completed one particular training they do not need to complete another type. I need the expiry date of the training in the cell so each persons result will be different as opposed to just yes or no. Is this possible?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Yes, you should be able to do this pretty easily with Conditional Formatting, using the "Formula" option to reference the other cell.
If you need help setting that up, please provide us with the specifics needed to write the formula.
 
Upvote 0
I have worked out a way to grey one out now if the other has a date however it doesn't grey out where one side is blank. Any advise how I can include blanks please?
 
Upvote 0
I have worked out a way to grey one out now if the other has a date however it doesn't grey out where one side is blank. Any advise how I can include blanks please?
If you want to check if a cell, like say A1, is blank, you can use:
VBA Code:
=A1=""

If you have multiple conditions to check, you can use an AND or OR statement, i.e.
Excel Formula:
=OR(condition 1, A1="")
Excel Formula:
=AND(condition 1, A1="")
 
Upvote 0

Forum statistics

Threads
1,215,106
Messages
6,123,120
Members
449,096
Latest member
provoking

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