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.
Categories
- All Categories
- 14 Welcome to the Community
- 10.8K Get Help
- 65 Global Discussions
- 69 Industry Talk
- 385 Announcements
- 3.6K Ideas & Feature Requests
- 56 Brandfolder
- 125 Just for fun
- 50 Community Job Board
- 464 Show & Tell
- 40 Member Spotlight
- 44 Power Your Process
- 28 Sponsor X
- 234 Events
- 7.3K Forum Archives