Extracting Date from Drop Down Column to a Date Column
Comments
-
First thing to do is parse the data out.
.
To get the year:
=VALUE(RIGHT([Dropdown Column]@row, 4)
.
Month would be:
=MID([Dropdown Column]@row, FIND(" ", [Dropdown Column]@row) + 1, FIND(" ", [Dropdown Column]@row, FIND(" ", [Dropdown Column]@row) + 1) - FIND(" ", [Dropdown Column]@row))
.
Day would be:
=VALUE(LEFT(RIGHT([Dropdown Column]@row, 8), 2)))
.
Then we would convert the Month text to a number. There are a few ways to do this. The most straightforward being a nested IF statement along the lines of:
=IF(Month@row = "January", 1, IF(Month@row = "February", 2, IF(Month@row = "March", 3, .......................................................))))))))))))
and continuing the pattern for all twelve months.
.
Then you would enter something like this into the new date type column.
=DATE(Year@row, [Month Number]@row, Day@row)
-
Thanks. I just made a look up table and ran it that way.