Forum Discussion

Kwaker's avatar
Kwaker
Copper Contributor
Mar 30, 2020
Solved

Cant understand why i cant apply formula

Good day, i'm hereby asking for help :

I'm trying to apply formula (

  • =TEXT(E2,"mm/dd/yyyy hh:mm")

but its giving me this error: 

and im not able to fix it, could you please find the solution please? thank you

 

  • Kwaker 

    Yes, only applying the format won't convert text to date. How to convert it depend what is your OS default format. As variant you may use Text to Columns - first split on date and time, when to date apply wizard with MDY format on third step, combine date and time back.

     

    If that's your native format you may convert by adding zero, with Paste Special ->Add or by formula

10 Replies

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    Kwaker 

    Formula itself is correct if you are on English SKU. In other locale try to use semicolon instead of comma.

     

    Even with correct formula it changes nothing, most probably in column E you have texts, not dates.

    • Kwaker's avatar
      Kwaker
      Copper Contributor

      SergeiBaklan semicolon worked, thank you so much:)

      now the new issue -> instead of year it shows YYYY, do you know maybe how to fix that?

       

    • Kwaker's avatar
      Kwaker
      Copper Contributor

      thanks for reply, originally it was text - i changed to custom type : but seems it didnt work 😞

      so i should convert to Numbers firts and than to custom type? thank you again

       

       

      SergeiBaklan 

      • SergeiBaklan's avatar
        SergeiBaklan
        Diamond Contributor

        Kwaker 

        Yes, only applying the format won't convert text to date. How to convert it depend what is your OS default format. As variant you may use Text to Columns - first split on date and time, when to date apply wizard with MDY format on third step, combine date and time back.

         

        If that's your native format you may convert by adding zero, with Paste Special ->Add or by formula

Resources