Differences between different formats

Peter Quill

Member
Local time
Today, 14:31
Joined
Apr 13, 2023
Messages
30
How to find the differences in dates for the attached data?
 
Last edited:
You will have trouble because it doesn't seem as if the formats are consistent within columns.

Eg A8 and A9 in the CRIG column are dd/mm/yyyy whereas A1 is mm/dd/yyyy.

Who know which way round the ambiguous dates are (eg A10 and A11 in CRIG column)!
 
Yes, David Marten. So, how can I convert them into the same format and subtract them afterward? I really appreciate any help you can provide.
 
@arnelgp The dates are all over the place?
How is anyone meant to know if C14 or C15 is 1st July or 7th January?

I was going to suggest looking for one of your functions, but even you need to know the actual date for each parameter? :)
 
Dear ARNELGP,
This worked perfectly. Thanks for the support. This is great!
 
So, how can I convert them into the same format and subtract them afterward
It depends how many you have to deal with.

I haven't looked at Arnel's suggestion, but I would first choose which format you wish to use for all dates (mm/dd/yyyy or dd/mm/yyyy). Perhaps, he does this in his example.

Then, in columns D and E I would create a formula that formats the unambiguous dates in your format of choice, and writes 'CHECK' for the ambiguous dates so that you can verify them manually.
 
the Column SSINIT is Text, using CDate() will convert it to date (in your Locale), so you don't
worry whether the first number in the text is a Day or a Month.
Your Locale will determine that using CDate().
 
That assumes that the ambiguous dates have been entered in the date format of your locale.

A bit of a dangerous assumption IMHO!
 

Users who are viewing this thread

Back
Top Bottom