+ Reply to Thread
Results 1 to 13 of 13

Dates as Text instead of Number?

  1. #1
    Registered User
    Join Date
    07-25-2014
    Location
    Los Angeles, CA
    MS-Off Ver
    2013
    Posts
    12

    Question Dates as Text instead of Number?

    Can anyone explain to me what's going on here and how I can fix it?

    My goal is to see the date as MM/DD/YY, not NNNNN.

    \1

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Dates as Text instead of Number?

    Excel stores dates a numerical value with Jan 1, 1900 as 1. Click on the range of dates and set the format to date and select the date format you wish. Date formatting is on the Home tab of the ribbon.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Dates as Text instead of Number?

    Sometimes this will work...

    Select the cells in question
    Goto the Data tab>Text to columns
    Click Next twice
    In step 3 of the userform under Column data format, select Date
    In the drop down select MDY
    Click Finish
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    07-25-2014
    Location
    Los Angeles, CA
    MS-Off Ver
    2013
    Posts
    12

    Re: Dates as Text instead of Number?

    Quote Originally Posted by alansidman View Post
    Click on the range of dates and set the format to date and select the date format you wish. Date formatting is on the Home tab of the ribbon.
    Tried that. That's why it says Date at the top in the ribbon.

  5. #5
    Registered User
    Join Date
    07-25-2014
    Location
    Los Angeles, CA
    MS-Off Ver
    2013
    Posts
    12

    Re: Dates as Text instead of Number?

    Quote Originally Posted by Tony Valko View Post
    Select the cells in question
    Goto the Data tab>Text to columns
    Click Next twice
    In step 3 of the userform under Column data format, select Date
    In the drop down select MDY
    Click Finish
    That looked promising, but it didn't do it. Thanks, though.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Dates as Text instead of Number?

    Hi and welcome to the forum

    Please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome (manually entered is ok) and how you arrived at that. (Exclude sensitive info). Pictures are pretty much impossible to edit.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Dates as Text instead of Number?

    In your screencap the numbers (date serial numbers) are aligned left. This is an indication that the numbers are formatted as TEXT.

    Try this...

    Select an unused empty cell that has not been formatted in any way.

    Copy that cell: Right click>Copy
    Select the range of date cells
    Right click>Paste special>Add>OK

    If the date numbers are now aligned right then they have been converted from TEXT numbers to numeric numbers.

    Then you can format these cells in the date format of your choice.

  8. #8
    Registered User
    Join Date
    07-25-2014
    Location
    Los Angeles, CA
    MS-Off Ver
    2013
    Posts
    12

    Re: Dates as Text instead of Number?

    Quote Originally Posted by Tony Valko View Post
    Select an unused empty cell that has not been formatted in any way.

    Copy that cell: Right click>Copy
    Select the range of date cells
    Right click>Paste special>Add>OK
    Didn't work.

  9. #9
    Registered User
    Join Date
    07-25-2014
    Location
    Los Angeles, CA
    MS-Off Ver
    2013
    Posts
    12

    Re: Dates as Text instead of Number?

    Quote Originally Posted by alansidman View Post
    upload a sample of your workbook
    I can't because there is a lot of sensitive data about celebrities in here. I'll try to copy out the problem area and post a new file with just that.

  10. #10
    Registered User
    Join Date
    07-25-2014
    Location
    Los Angeles, CA
    MS-Off Ver
    2013
    Posts
    12

    Re: Dates as Text instead of Number?

    Quote Originally Posted by Ashkaan View Post
    I'll try to copy out the problem area and post a new file with just that.
    Ok, when I copied the cells out of that workbook into another, it suddenly looked perfect. What could be effecting my sheet like this?

  11. #11
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Dates as Text instead of Number?

    I can't because there is a lot of sensitive data about celebrities in here.
    Just dummy up the confidential data. We don't need the entire file, but only a representative sample.

  12. #12
    Registered User
    Join Date
    07-25-2014
    Location
    Los Angeles, CA
    MS-Off Ver
    2013
    Posts
    12

    Re: Dates as Text instead of Number?

    I appreciate the effort, everyone. I just ended up copying the entire sheet and pasting into a new sheet. The dates corrected and my conditional formatting came along for the ride too. I'm happy. Thanks anyway.

  13. #13
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Dates as Text instead of Number?

    Good deal. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 07-09-2014, 05:57 AM
  2. [SOLVED] count number of times a text appeared in a month in given range of dates and names
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-26-2014, 08:27 AM
  3. Counting number of unique dates per month in a list of duplicate dates
    By Rackle83 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-22-2013, 10:15 AM
  4. Replies: 4
    Last Post: 12-16-2011, 02:55 PM
  5. Replies: 5
    Last Post: 10-26-2005, 02:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1