Automatically convert a number (080804) to a date (8/8/2004)

  • I need some assistance in making my life a LOT easier! I key in dates a great deal and would prefer not to mess with "/". Can someone point me to an easy way to modify my spreadsheet where I can set it up and type in dates in a format like "080804" and get Excel to recognize it as a "8/8/04"? It thinks I want to use a serial date and tells me my date is in the year 2121.


    Thanks for any assistance!

  • Re: Automatically convert a number (080804) to a date (8/8/2004)


    in this formula, column A should be changed to text format, then in column B put:
    =LEFT(A1,2)&"/"&MID(A1,3,2)&"/"&RIGHT(A1,2)


    enter 080804 into A1, then B2 will become 08/08/04


    hope this helps

  • Re: Automatically convert a number (080804) to a date (8/8/2004)


    Post this code in the sheet module of the sheet you have the dates to enter. You can enter your date as MMDDYY and it will place the date serial in the cell you type your date in. You can format the cell to any valid date format.



    Hope this is what you are looking for

    [FONT="Arial Black"][COLOR="blue"][SIZE="4"]Bill[/SIZE][/COLOR][/FONT]
    Tip: To avoid chasing code always use Option Explicit.

  • Re: Automatically convert a number (080804) to a date (8/8/2004)


    Excellent! Thanks so much for the help. This will be of much value to me and hopefully my teammates in the future.


    wise_s_w

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!