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

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
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,223,911
Messages
6,175,337
Members
452,636
Latest member
laura12345

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