Simpatie.ro - matrimoniale
Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Nou pe simpatie:
mary24
Femeie
24 ani
Braila
cauta Barbat
25 - 56 ani
Mrrrr's Forum (VIEW ONLY)ReguliInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides /

EXCEL] Extract Date from a Cell Full of Text

Pagini: 1 Moderat de TRaP, TonyTzu
#1
TRaP
Moderator
Postari: 960
Source:
https://www.extendoffice.com/documents/ ... -text.html

The formula is the following, an array formula so make sure you enter it with CTRL+SHIFT+ENTER:

=MID(P106;MIN(IFERROR(FIND({0;1,2;3;4;5;6;7;8;9};P106;1);LEN(P106)+1));LOOKUP(1;0/MID(P106;ROW(INDIRECT("1:"&LEN(P106)));1);ROW(INDIRECT("1:"&LEN(P106)))) + 1 - MIN(IFERROR(FIND({0;1,2;3;4;5;6;7;8;9};P106;1);LEN(P106)+1)))


Replace cell P106 with your own.

Limitations:

1. If the cell contains other numbers, this formula will not work correctly;

2. The formula cannot correctly extract date while there is more than one date in the text string.


 
   
#2
TRaP
Moderator
Postari: 960
VBA solution:
https://www.consultdmw.com/excel-extrac ... -text.html


 
   
Pagini: 1  
Mergi la