Forum Discussion

TheAnt's avatar
TheAnt
Copper Contributor
Mar 12, 2025
Solved

How to get a dropdown list of numbers, not dates?

I need to insert a dropdown list into an Excel cell with a set of values exactly like this:
2025-04-01 10:00:00
2025-04-01 10:30:00
2025-04-01 11:00:00
2025-04-01 11:30:00

How do I stop Excel from converting these values to dates?
I have already set the cell as text, but I keep getting only a list of dates like this: 
01/04/2025 10:00
01/04/2025 10:30
...

  • When you paste the value in cells its automatic formatting changes it to numbers and we need to explicitly store it as text. 

    There are two way to deal with this issue:

    Type an apostrophe (') at the beginning of each entry if you have limited values.

    '2025-04-01 10:00
    '2025-04-01 10:30

    this store the value as text

    Formula version which is more effective for larger dataset, add helper column and use the function TEXT() to convert these values into text and reference dropdown list to the helper column.

    =TEXT(A2,"yyyy-mm-dd hh:mm:ss")

     

    Solution with TEXT()

    If this resolves your query don't forget Mark as Solution.

4 Replies

  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Platinum Contributor

    Just format the area where you want these date/time stamps as text BEFORE you paste them. Then Excel will see them as texts and the dropdown will work as you wish. No need for adding an apostrophe or the TEXT function.

     

    Works the same on Mac and PC.

     

  • When you paste the value in cells its automatic formatting changes it to numbers and we need to explicitly store it as text. 

    There are two way to deal with this issue:

    Type an apostrophe (') at the beginning of each entry if you have limited values.

    '2025-04-01 10:00
    '2025-04-01 10:30

    this store the value as text

    Formula version which is more effective for larger dataset, add helper column and use the function TEXT() to convert these values into text and reference dropdown list to the helper column.

    =TEXT(A2,"yyyy-mm-dd hh:mm:ss")

     

    Solution with TEXT()

    If this resolves your query don't forget Mark as Solution.

    • tamitap's avatar
      tamitap
      Copper Contributor

      Type an apostrophe (') at the beginning of each entry if you have limited values.

    • tamitap's avatar
      tamitap
      Copper Contributor

      Type an apostrophe (') at the beginning of each entry if you have limited values.

       

       

      https://www.reddit.com/r/accidentallygay/comments/1jb2kng/new_monopoly_go_free_dice_rolls_links_daily/ https://www.reddit.com/r/accidentallygay/comments/1jb2l5d/updatedway_how_to_best_500_free_dice_links_in/ https://www.reddit.com/r/accidentallygay/comments/1jb2lin/eightways_5000_free_dice_monopoly_go_rolls_links/ https://www.reddit.com/r/accidentallygay/comments/1jb2lxr/new_monopoly_go_free_dice_rolls_links_march_2025/ https://www.reddit.com/r/accidentallygay/comments/1jb2mqk/heres_how_to_get_thousands_of_monopoly_go_free/ https://www.reddit.com/r/accidentallygay/comments/1jb2n6b/heres_how_to_get_monopoly_go_free_dice_links_2025/

Resources