Filehost.ro - gazduire fisiere
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:
Alexandra21
Femeie
24 ani
Calarasi
cauta Barbat
24 - 53 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] Transform Text Based Date to Actual Date

Pagini: 1 Moderat de TRaP, TonyTzu
#1
TRaP
Moderator
Postari: 960
In a table in Column "Invoice date" I have dates inserted as text in the format DD.MM.YY.

I need an actual date to be able to filter the data. I don't want to modify the original date, just have another column with the correct date next to the raw data table.

=DATE(2000+RIGHT([@[Invoice date]];2); MID([@[Invoice date]];4;2); LEFT([@[Invoice date]];2))

Source:
ChatGPT


 
   
#2
TRaP
Moderator
Postari: 960
Encountered date in this format:
04.02.2026.

So with an ending dot.

Made this formula:

=LET(
  rng; D28;
  dot; RIGHT(rng;1)=".";
  convert; IF(dot=TRUE;TEXTBEFORE(rng;".";3;0);rng);
  datetext; TEXT(convert;"dd.mm.yyyy");
  DATE(RIGHT(datetext;4); MID(datetext;4;2); LEFT(datetext;2))
)


Of course, can use on entire range, or spill range:

=LET(
rng; CHOOSECOLS(A19#;1);
dot; RIGHT(rng;1)=".";
convert; IF(dot=TRUE;TEXTBEFORE(rng;".";3;0);rng);
datetext; TEXT(convert;"dd.mm.yyyy");
DATE(RIGHT(datetext;4); MID(datetext;4;2); LEFT(datetext;2))
)


 
   
Pagini: 1  
Mergi la