Scuzzbopper
New Member
I have a cell with a series of dates that are not separated like this:
05/04/201605/05/201605/05/201605/10/201605/12/201605/03/201605/12/201605/13/201605/16/201605/18/201605/19/201605/25/201605/25/201605/26/201605/27/2016
I would like to find the oldest date in the cell. I feel like I'm close with this formula:
=MIN(MID(A4,FIND("/",A4,1)-2,10))
But the formula is not complete as it just returns the first date in the cell. I'm not sure how to write the rest of the formula so it sort of "loops" through the cell and finds the oldest date.
I'm looking to accomplish this with a single formula because the report that this data is in is huge and cells with multiple dates like this are scattered throughout the report. An alternative would be a macro that I could use to highlight a cell hit the macro hotkey and have the contents of the cell change to only the oldest date in the cell but I'm a total noob to VBA and I have no idea where to start.
Similar to this exercise on Chandoo.
Any suggestions?
05/04/201605/05/201605/05/201605/10/201605/12/201605/03/201605/12/201605/13/201605/16/201605/18/201605/19/201605/25/201605/25/201605/26/201605/27/2016
I would like to find the oldest date in the cell. I feel like I'm close with this formula:
=MIN(MID(A4,FIND("/",A4,1)-2,10))
But the formula is not complete as it just returns the first date in the cell. I'm not sure how to write the rest of the formula so it sort of "loops" through the cell and finds the oldest date.
I'm looking to accomplish this with a single formula because the report that this data is in is huge and cells with multiple dates like this are scattered throughout the report. An alternative would be a macro that I could use to highlight a cell hit the macro hotkey and have the contents of the cell change to only the oldest date in the cell but I'm a total noob to VBA and I have no idea where to start.
Similar to this exercise on Chandoo.
Any suggestions?