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.
Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login

POZE MRRRR'S FORUM (VIEW ONLY)

Nu sunteti logat.
Nou pe simpatie:
Sofia15 la Simpatie.ro
Femeie
24 ani
Constanta
cauta Barbat
24 - 40 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / EXCEL] Extract Date from a Cell Full of Text Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
TRaP
Moderator

Inregistrat: acum 6 ani
Postari: 748
Source:

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.


pus acum 4 ani
   
TRaP
Moderator

Inregistrat: acum 6 ani
Postari: 748
VBA solution:

pus acum 4 ani
   
Pagini: 1  

Mergi la