Forum Discussion

jsamodeo's avatar
jsamodeo
Copper Contributor
Sep 08, 2021

Changing the format of 10,000 dates

Hello, I need help changing the values of these dates from mm/dd/yyyy to dd/mm/yyyy. I have already tried changing the format via the ctrl 1 format cells method. This seems to get new dates in the right format, but I already have ~10k dates that need to be changed. Is there an easy way to do this?

Thanks for the help stranger 😃

 

10 Replies

  • NikolinoDE's avatar
    NikolinoDE
    Gold Contributor

    jsamodeo 

    Here is a suggestion with VBA (untested).

    Should actually work.

    Build a button into the sheet and let it run whenever you want ... is just a suggestion :)).

     

    Sub Datechange()
    Range("C1:C10000").NumberFormat = "dd/mm/yyyy"
    End Sub

     

     

    Hope I was able to help you with this info.

     

    NikolinoDE

     

    Was the answer useful? Mark them as helpful!

    This will help all forum participants.

    • Juliano-Petrukio's avatar
      Juliano-Petrukio
      Bronze Contributor

      NikolinoDE 

      As was told before, it doesn't change because the regional settings of the computer.
      You can change the view on the spreadsheet but if you click on the formula bar the date will be like was setup on regional settings.

       

       

       

  • Select the whole column that you want to apply the format and then CTRL+1 and then apply dd/mm/yyyy
    • udayan62's avatar
      udayan62
      Copper Contributor
      What about dates prior to the year 1900?
    • jsamodeo's avatar
      jsamodeo
      Copper Contributor

      Juliano-Petrukio 

      So that changes how the box appears when hovered over, but it doesn't change the values at the top.

      ā€ƒ

      • Could you please make column C a lot wider so we can actually see the date in the cells in your screenshot

        Thanks, that will help us answer

Resources