I have been trying to wrap my head around this one for a while.
From To
21016 10/16/2002
21017 10/17/2002
in other words
ASDHK to SD/HK/200A
This is a huge problem and I thank any contributors ahead of time.
I have been trying to wrap my head around this one for a while.
From To
21016 10/16/2002
21017 10/17/2002
in other words
ASDHK to SD/HK/200A
This is a huge problem and I thank any contributors ahead of time.
Using formulas, if your Data is in A1, you can type the following into A2:
![]()
Please Login or Register to view this content.
Hi and welcome to the board
what happens if your string is for, say 1999 or 2010 ?
Fizziii, you rock, that was a perfect answer to that problem,
I have two more
like arthurbr said, in my date convention a 1999 code is
991031
which would be converted to 10/31/1999
another one of mine is
1201
which would need to be converted to 12/01/2001
and 301
which would be converted to 03/01/2001
thanks again, Fizziii
-slug
Ok, so for the 1999 one:
code:
=MID(A1,3,2) & "/" & MID(A1,5,2) & "/19" & LEFT(A1,2)
if they are always 6 characters long use text to columns and select ymd option
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
There does not appear to be any consistency here - why for 2001 is the year digit omitted altogether ?Originally Posted by slugowen - Examples
It would seem from your examples detailed above that:
If we assume that there's always a year digit (eg 1301 rather than 301) then there are obviously ambiguity issues, eg:Day is always 2 digits (leading zero)
Month is either 1 or 2 digits (no leading zero)
Year is either 2 digits (991031), 1 digit (21016) or 0 digits (301)
Could you confirm the above ?11101 - could be either 11/01/2001 or 01/01/2011
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks