Hi everybody,
I have read plenty of entries and other threads but I cannot get the required result. Hence, I am hoping that you might be able to assist me.
Here is the problem statement:
- I have a text field which has no defined pattern and I need to extract dates and times, if possible
- The text field can contain two dates or two times, but not both
- Neither information is at a fixed location within the text field
- The formatting of the dates can vary. There might be other instances of the dash "-" in the cell and thus, it cannot be used as a differentiator- The times are in in a uniform 24h format. It appears that the colon ":" is used only in combination with date fields, but similar to the date field, the dash "-" has multiple occurences within the same cell.
- "dd.mm.yy" - "dd.mm.yy"
- "dd.mm.yy - dd.mm.yyyy"
- "dd.mm.yyyy - dd.mm.yy"
- "dd.mm.yyyy - dd.mm.yyyy"
- "mm:hh - mm:hh"
Preferrably the results should be in a format such as:
Date start | Date end | Time start | Time end
I tried to search for a character pattern and start extracting from there, but it seems this exceeds my Excel horizon by miles.
I am gratful for any assitance I can get.
Thanks very much in advance.
Max
Bookmarks