ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   CONDITIONAL FORMATING/COLOR CELL WHEN FILLED (https://www.excelbanter.com/excel-programming/371387-conditional-formating-color-cell-when-filled.html)

vdefilippo

CONDITIONAL FORMATING/COLOR CELL WHEN FILLED
 
I am trying to format a cell to turn a color when a date (any date) is
entered into it.

Thank you.

Bob Phillips

CONDITIONAL FORMATING/COLOR CELL WHEN FILLED
 
You need a UDF

Function HasDate(rng As Range)
If rng.Count = 1 Then
HasDate = IsDate(rng.Value)
End If
End Function

and use that in you CF formula


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Mark Warner" wrote in message
...
On the conditional format menu I use 'Cell Value is', 'Equal to', and '0'
when the cell is blank to add the color to it.


"vdefilippo" wrote:

I am trying to format a cell to turn a color when a date (any date) is
entered into it.

Thank you.





All times are GMT +1. The time now is 04:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com