Extrapolate dates and sort

wildturkey

Board Regular
Joined
Feb 21, 2006
Messages
196
Office Version
  1. 365
Platform
  1. Windows
Afternoon All

Help if you can please

I'm looking to extrapolate the dates (In bold) from a cell containing the following, there could be around 100 dates...I'd either then like the oldest date returned or, even better the whole set of dates provided horizontally to the cell, one date per cell and sorted in date order, am I asking too much? UK based using UK date format but software file imported using yymmdd..

241201|100001(2454),241201|100002(1270),241201|100003(150),250101|100004(144),250101|100005(588),250101|100006(1377),250201|100007(1620),250201|100008.......................................

Many thanks
 
Hi, here's one option you could try.

Book2
ABCDEFGHI
1241201|100001(2454),241201|100002(1270),241201|100003(150),250101|100004(144),250101|100005(588),250101|100006(1377),250201|100007(1620),250201|10000801/12/202401/12/202401/12/202401/01/202501/01/202501/01/202501/02/202501/02/2025
Sheet1
Cell Formulas
RangeFormula
B1:I1B1=LET(TS,TEXTSPLIT(A1,{"|",","}),SORT(0+TEXT("20"&CHOOSECOLS(TS,SEQUENCE(COUNTA(TS)/2,,,2)),"0000-00-00")))
Dynamic array formulas.
 
Upvote 0
Solution
Hi, it should be returning all the dates, not just the oldest.
 
Upvote 0
Just the one...

250101|100001(3),250101|3(1),250201|1(584)01/01/2025
250101|100001(113)01/01/2025
250101|1(154),250201|2(330)01/01/2025
250101|1(140),240101|100001(2)01/01/2025
241201|100004(123),250101|100003(50),250101|100005(48),250201|100007(467)01/12/2024
241201|100001(64)01/12/2024
241201|100001(28)01/12/2024
 
Upvote 0
Hmm, not on my side..
Book2
FGHIJ
24250101|100001(3),250101|3(1),250201|1(584)01/01/202501/01/202501/02/2025
25250101|100001(113)01/01/2025
26250101|1(154),250201|2(330)01/01/202501/02/2025
27250101|1(140),240101|100001(2)01/01/202501/01/2024
28241201|100004(123),250101|100003(50),250101|100005(48),250201|100007(467)01/12/202401/01/202501/01/202501/02/2025
29241201|100001(64)01/12/2024
30241201|100001(28)01/12/2024
Sheet1
Cell Formulas
RangeFormula
G24:I24,G28:J28,G26:H27,G25,G29:G30G24=LET(TS,TEXTSPLIT(F24,{"|",","}),SORT(0+TEXT("20"&CHOOSECOLS(TS,SEQUENCE(COUNTA(TS)/2,,,2)),"0000-00-00")))
Dynamic array formulas.
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top