CF : Check If Data as Real Date

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,077
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi all..

how to make conditional formatting with shading Red color for data is NOT a real date
my format date dd/mm/yyyy or dd-mmmm-yyyy
if blank data not highlighted red color too
for this :
Book1
GH
1dateExplanation
231/12/2020true format date
323/03/1989true format date
412/12/2001contains mark (') approstrop
524/13/2002wrong format date
6blank/empty cell
7textwrong format date
801/01/2005true format date
Sheet1


any help, thanks in advance
.sst
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
ISNUMBER(G2)


for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
G2:G100 - Change Reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=ISNUMBER(G2)

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK
 
Upvote 0
hi ,i have use =isnumber(), but higlighted color in real date.
i want to if data not real date or wrong date, give me highligted red color
 
Upvote 0
Sorry about that
try
=ISTEXT(G2)

Book1
ABCDEFGHI
1Dates
22/2/21
32/3/21
41/1/21
52/5/21
62/6/21
72/7/21
821/2/21
92/9/21
102/10/21
112/11/21
1222/11/21
132/13/21
142/14/21
152/15/21
162/16/21
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G2:G16Expression=ISTEXT(G2)textNO
 
Upvote 0
hi..
formula =istext()..working well but i want to add new criteria if cell blank/empty so highlighted too
 
Upvote 0
OR( ISTEXT(G2),G2="")

Book1
G
1Dates
22/2/21
32/3/21
41/1/21
52/5/21
6
72/7/21
821/2/21
92/9/21
102/10/21
112/11/21
1222/11/21
132/13/21
142/14/21
15
162/16/21
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G2:G16Expression=OR( ISTEXT(G2),G2="")textNO
 
Upvote 0
hi...i have trying for this but not work
Excel Formula:
=OR(ISTEXT(G4);G4="")
Book1
G
4TEXT
507/08/2021
6BLANK CELL
70
85
Sheet1

note:
if format date or empty cell --->>do not highlighted red
how to modified?
 
Upvote 0
Book1
G
4TEXT
507/08/2021
6
70
85
Sheet3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G4:G8Expression=NOT(LEFT(CELL("format",G4),1)="D")textNO



Wrong, see post number 12
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,073
Messages
6,128,645
Members
449,461
Latest member
kokoanutt

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