Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks to allof you fo rthe responses. I will try them out.
On Feb 6, 9:04*pm, "Bernie Deitrick" <deitbe @ consumer dot org wrote: This will work even if your dates are text strings, which formatting as a date will not correct. Copy the code into a regular codemodule, and use it like =CheckDate(A2,"mm/dd/yyyy") Copy down to match your cells. HTH, Bernie MS Excel MVP Function CheckDate(myC As Range, myF As String) As Variant CheckDate = (myC.Text = Format(myC.Value, myF)) End Function "exceed_novice" wrote in message ... Hi, We receive a sheet with about 1000 rows and need to do some validation on that sheet before it gets processed. One of the validations is for the column with the date. I need to validate that the date is in the "mm/dd/yyyy" format. I have looked and tried different but have not been able to do this. Could somebody tell me how to validate the date. Thank You |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
convert serial date format to normal date format | Excel Discussion (Misc queries) | |||
validating format | Excel Discussion (Misc queries) | |||
validating telephone format | Excel Worksheet Functions | |||
Convert date + time text format to date format | Excel Worksheet Functions | |||
Validating a date field | Excel Discussion (Misc queries) |