Forum Discussion
Harun24HR
Nov 12, 2025Bronze Contributor
How to extract multiple dates from description?
I have description in column A like below screenshot. How can I extract dates from this strings like right portion?
Thanks for response. I have figured out it as
=LET(x,FILTERXML("<t><s>"&SUBSTITUTE(A2," ","</s><s>")&"</s></t>","//s"),TRANSPOSE(FILTER(x,ISNUMBER(x))))
4 Replies
- Harun24HRBronze Contributor
Thanks for response. I have figured out it as
=LET(x,FILTERXML("<t><s>"&SUBSTITUTE(A2," ","</s><s>")&"</s></t>","//s"),TRANSPOSE(FILTER(x,ISNUMBER(x))))- SergeiBaklanDiamond Contributor
It could be modified as
=TRANSPOSE( FILTERXML("<t><s>"&SUBSTITUTE(A2," ","</s><s>")&"</s></t>","//s[translate(.,'1234567890','')!=.]") )but still depends on locale.
- JKPieterseSilver Contributor
You can use a formula like this one:
=LET(words,TEXTSPLIT(A2," "),TEXTSPLIT(TEXTJOIN(",",TRUE,IFERROR(DATEVALUE(words),"")),","))- SergeiBaklanDiamond Contributor
That doesn't work with US format (11/01/2015) if we are in another locale.