Microsoft Excel - Convert Text to Dates (complex)

Sdílet
Vložit
  • čas přidán 8. 09. 2024

Komentáře • 68

  • @Pankaj-Verma-
    @Pankaj-Verma- Před 5 lety +4

    It was fantastic. You sounded like James Bond of Excel to me. It's nice to meet you. Thank you for your kind help!

  • @rudycramer225
    @rudycramer225 Před rokem

    Worked EXACTLY as described. Just what I needed except I had spaces instead of dots. Thanks a lot.

  • @vikramrajoria
    @vikramrajoria Před 2 lety

    Sir, you saved a lot on me. Regards and respects from india

  • @oddanneout
    @oddanneout Před 4 lety +1

    This gave me asmr shivers. so good. thank you.

  • @rajusinghtezu
    @rajusinghtezu Před 5 lety

    Wow!! So simple after watching this video. Same type of question was asked in an interview and unfortunately I couldn't answer that. Thanks I understood the concept now.!!

  • @dannieldeleon7362
    @dannieldeleon7362 Před rokem

    deym. the most helpful video ive been looking for in extracting this activity im doing in excel lol

  • @soarchla411
    @soarchla411 Před 3 lety

    Still saving lives in 2021..true to God..lol

  • @raghubelagam6881
    @raghubelagam6881 Před 3 lety +1

    Absolutely fantastic stuff... very informative.

  • @Thebitcoinconsultant
    @Thebitcoinconsultant Před rokem

    Bloody legend

  • @akhiltm1
    @akhiltm1 Před rokem

    saved my day! thanks :)

  • @Deeps88
    @Deeps88 Před 6 lety +3

    Fantastico....✌✌

  • @robertonavarro9913
    @robertonavarro9913 Před 5 lety

    Text to column tool would have done it quicker, selecting the dots to separate the columns, but this was really clever!

    • @sandorrethy
      @sandorrethy  Před 5 lety

      Very true and an excellent option for converting dates! Thanks for the feedback Roberto.

  • @UlfatSahil
    @UlfatSahil Před 4 lety

    just great...enjoyed,,,

  • @sumayprabhu9044
    @sumayprabhu9044 Před 2 lety

    Thank you so much

  • @Lyme62
    @Lyme62 Před 6 lety

    Thank you! Your video was very helpful

  • @jessamaejoyvarona3231
    @jessamaejoyvarona3231 Před 2 lety

    Yieeey, thank you for this. It helped me a lot. 😘

  • @boydphakati667
    @boydphakati667 Před 4 lety

    Great Video

  • @kartheekannallakalathi1845

    Wow, it helped me a lot

  • @zothilemaake63
    @zothilemaake63 Před 4 lety

    wow , thank you so much.

  • @vishvarajroadlines2020

    Thanks for the great video, it helped me a lot!

  • @wagsbass
    @wagsbass Před 4 lety

    life daver, thank you

  • @dundermoose
    @dundermoose Před 6 lety +1

    Excellent stuff! Subbed!

  • @malcstreet34
    @malcstreet34 Před 7 lety +1

    Very helpful video and thank you but i am trying to convert a date like this ( 28th January 2017 ) to a date format ( DD/MM/YYYY) is there anyway to do this

    • @sandorrethy
      @sandorrethy  Před 7 lety +1

      yes there is always a way! This formula assumes that the date is that format (28th January 2017 or 2nd May 2017) Here is the formula: =DATE(RIGHT(A1,4),MONTH(DATEVALUE(MID(A1,FIND(" ",A1)+1,LEN(A1)-FIND(" ",A1)-5)&" 1")),LEFT(A1,FIND(" ",A1)-3)) It is a bit of a monster but I have tested it and it will work. Hope this helps.

    • @sandorrethy
      @sandorrethy  Před 7 lety

      Did my suggestion work for you?

    • @malcstreet34
      @malcstreet34 Před 7 lety

      thank you, I will try it and see. But i did find another way using " Find and Replace". Find the "st,nd,rd,th part of the date ad it automatically changed to the correct date format.

    • @mlucky256
      @mlucky256 Před 6 lety

      Hi, I need to convert 12/Aug/18 to excel date format, I've tried to play around with the functions above but unable to get the right formula.

    • @SIMRANKAUR-eg7nc
      @SIMRANKAUR-eg7nc Před 3 lety

      Best way would be to separate them using delimiter in text to column. Like u ca ude space on 1st occasion 21st will be separated and then u can use substitute. In fact u can use text to column but not with delimiter but with width option to break into 21 and st separately. Once u have days months year u can always firm a date with them with date formula.

  • @shafiqadil1989
    @shafiqadil1989 Před 5 lety

    i want to convert "Fri, May 17, 17:00 PST"
    into "17-05-2019 17:00" automatically. how can i do that?

  • @vinodsaw
    @vinodsaw Před 4 lety

    But data which I have it's don't have dot between date and month and year

  • @mauriciosalazar7418
    @mauriciosalazar7418 Před 2 lety

    hi i have this information as text 20200930 and my excersise says " you will need to separate and rejoin the separate parts of the date using an appropriate date function" . I tried with a conctenate(left,mid,right) but is not working . I dont know if I have to put value before al the formula o what am i missing,. Thanks

    • @sandorrethy
      @sandorrethy  Před 2 lety +1

      Assuming that the text is in A1 and the date format being used is YYYYMMDD then a formula you could use in another cell (not A1) would be =DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))

    • @mauriciosalazar7418
      @mauriciosalazar7418 Před 2 lety

      @@sandorrethy thanks man !! It worked!!

  • @TaralShah511
    @TaralShah511 Před 6 lety

    Thanks a lot for the video. It is really helpful. I was wondering if you can help me convert text to time using a similar format. For example (9:32am)

    • @sandorrethy
      @sandorrethy  Před 6 lety

      would the data have brackets around the time? 24h format or 12h

    • @TaralShah511
      @TaralShah511 Před 6 lety

      Sandor Rethy, no there are without brackets. Like : 9:32am

    • @sandorrethy
      @sandorrethy  Před 6 lety

      =TIMEVALUE(LEFT(A1,LEN(A1)-2)&" "&RIGHT(A1,2))
      this assumes that time value "9:32am" is in A1 Let me know if this helps

    • @TaralShah511
      @TaralShah511 Před 6 lety

      You are an excel wizard!! Thanks a lot.. it did work

    • @sandorrethy
      @sandorrethy  Před 6 lety

      Really glad I could help. Happy holidays!

  • @goharkhatri6780
    @goharkhatri6780 Před 4 lety

    Sir I have 2 dates with some text(For example "system maint - Nov'19-Oct'20) I want it to convert with date in 2 different cell I mean start date 1st for the month and end date last of the month. please advise

    • @sandorrethy
      @sandorrethy  Před 4 lety

      I would need some more information about the dates and the text before I can offer assistance. Could you tell me do they all start with "systemmaint - "? Do you want the dates to be the 1st day of the month? Do all the cells end with the format "mmm'yy-mmm'yy"?

  • @marklouismichaelsen
    @marklouismichaelsen Před 5 lety

    Working with another string: 2019-08-12T21:56:37 The 'T' is problematic for me. Any ideas on how to convert that to a DATETIME?

    • @sandorrethy
      @sandorrethy  Před 5 lety

      Hello again Mark,
      You will need to use two formulas to split this up or you could do it all in one but for example sake I will give you two formulas, one for the date then one for the time. This assumes a "T" is always used as the separator. To extract the date =DATEVALUE(LEFT(A1,FIND("T",A1)-1)) and to extract the time =TIMEVALUE(RIGHT(A1,LEN(A1)-FIND("T",A1)))
      Once they are divided you can format the cells for dates or times in excel. I have videos for both of these specific functions if you need more details. Hit the like button if you have not already thanks.

    • @marklouismichaelsen
      @marklouismichaelsen Před 5 lety

      @@sandorrethy Thank you very much Sandor. I was able to get this work for what I needed: =VALUE(SUBSTITUTE(A1,"T"," "))

  • @marklouismichaelsen
    @marklouismichaelsen Před 5 lety

    I've got a tricky one here: July 22nd 2019 and August 21st 2019 It needs to apply to different month lengths and dump the "nd" and "st", etc.....Seems like some of the examples might apply but cannot get it to work.

    • @sandorrethy
      @sandorrethy  Před 5 lety

      Hello Mark, Assuming your date formats are all structured the same way (as in your comments) this formula should work for any month year and day. The formula assumes the starting date is in cell A1 but you could change it if needed.
      =DATE(RIGHT(A1,4),MONTH(DATEVALUE(LEFT(A1,FIND(" ",A1)-1)&" 1")),MID(A1,FIND(" ",A1)+1,FIND(" ",A1,FIND(" ",A1)+1)-FIND(" ",A1)-3))

    • @marklouismichaelsen
      @marklouismichaelsen Před 5 lety +1

      @@sandorrethy That worked! Thank you SO MUCH

    • @SIMRANKAUR-eg7nc
      @SIMRANKAUR-eg7nc Před 3 lety

      @@marklouismichaelsen or u can use text to column use space as the delimiter once. Then process accordingly. It will save u from writing unnecssary left right substitute formula.
      Search channel "off to office". I accidentally came across it. Handling dates has been beautifully explained there.

  • @mlucky256
    @mlucky256 Před 6 lety

    Hi, I need to convert 12/aug/18 to excel format, I tried playing around with the functions above but unable to construct the right formula, could you please help.

    • @sandorrethy
      @sandorrethy  Před 6 lety

      =DATE(RIGHT(A1,2)+100,MONTH(DATEVALUE(MID(A1,FIND("/",A1)+1,3)&" 1")),LEFT(A1,FIND("/",A1)-1))
      This assumes your date is in cell A1. On a side note that format should be acceptable to excel. You should be able to highlight the cells and on the Home Tab choose Date for the number format. Let me know if this works.

    • @SIMRANKAUR-eg7nc
      @SIMRANKAUR-eg7nc Před 3 lety

      Use text to column very easy from there. U can use date formula after separation if u want to play with separate no. Or u can simply select nothing ss delimiter and opt dmy format

    • @SIMRANKAUR-eg7nc
      @SIMRANKAUR-eg7nc Před 3 lety

      Search channel "off to office". I accidentally came across it. Handling dates has been beautifully explained there.

  • @kratosempire3984
    @kratosempire3984 Před 4 lety

    I have a problem because when i put the numbers it gives me everything correct except year, for example i have 1/1/1876 and when i complete it gives me 1/1/3776. Please help :(

    • @sandorrethy
      @sandorrethy  Před 4 lety

      I believe excel date functions are only capable of handling dates from 01/01/1900 to 31/12/9999. Thanks for watching and sorry I couldn't be more help.

  • @shahmarbayramov1414
    @shahmarbayramov1414 Před 3 lety

    I found other way crtl+h may repalce 5, apr replace 4 ect

  • @mfmalth
    @mfmalth Před 6 lety

    Hy Sandor, i want to convert "Mar-18" this type of date (its in text format) in to correct date format 01/03/2018...please help

    • @sandorrethy
      @sandorrethy  Před 6 lety

      assuming that date is in A1 you could add a formula in B1 like this: ="01-"&A1
      Adding the 01 should turn this into an acceptable date format and then you can format the date to whatever format you would like. I hope this helps.

    • @SIMRANKAUR-eg7nc
      @SIMRANKAUR-eg7nc Před 3 lety

      Search channel "off to office". I accidentally came across it. Handling dates has been beautifully explained there..

  • @debeshghosh5978
    @debeshghosh5978 Před 6 lety

    9 Mar 2018
    7 Jun 2018
    25 May 2018
    How to convert this to date format

    • @sandorrethy
      @sandorrethy  Před 6 lety

      =DATE(RIGHT(A1,4),MONTH(DATEVALUE(MID(A1,FIND(" ",A1)+1,3)&" 1")),LEFT(A1,FIND(" ",A1)-1))
      this assumes the first date is in A1.

  • @markuy1542
    @markuy1542 Před 4 lety

    i want to convert aug/12/2018 11:20:30 to 08/12/2018 11:20...please help

    • @SIMRANKAUR-eg7nc
      @SIMRANKAUR-eg7nc Před 3 lety

      Use delimiter as space in text to column to break it into 2 string. And then take the first part if the date and convert it into suitable date formats with no as the months and not like feb or Aug.

    • @SIMRANKAUR-eg7nc
      @SIMRANKAUR-eg7nc Před 3 lety

      Search channel "off to office". I accidentally came across it. Handling dates has been beautifully explained there.

  • @lasr3n877
    @lasr3n877 Před 7 lety

    Thanks for the great video, it helped me a lot!