+ Reply to Thread
Results 1 to 7 of 7

Thread: Changing Cell Format from General -> Date

  1. #1
    Registered User
    Join Date
    09-13-2010
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    7

    Exclamation Changing Cell Format from General -> Date

    The goal of this is to be able to sort by date..

    Currently I have a column of dates/times that, when I look under "Format Cells", are formatted as "General". Here is an example: 14/07/2010 21:20:08

    (The way the data was churned out, the date is presented as dd/mm/yyyy)

    Ideally, I'd like to format the cells as mm/dd/yyyy (i.e. 07/14/2010), but cannot do so since the information was not originally in Date format.

    Any ideas? Thanks in advance..

  2. #2
    "Eagle Eyed" Forum Moderator oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Work) and 2007 (Home)
    Posts
    7,130

    Re: Changing Cell Format from General -> Date

    Hi,

    Select the column of dates, go to Data > Text to columns, in step 3 select M/D/Y format to turn text values into dates
    oldchippy
    -------------


    If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    Re: Changing Cell Format from General -> Date

    OC, given the Time I suspect TtC is not viable.

    I suspect you will find "valid" dates will have had month & day transposed, those stored as text will be "invalid" dates given US format (ie month > 12).

    Assuming dates in A1, A2 etc

    B1: =IF(ISNUMBER(A1),DATE(YEAR(A1),DAY(A1),MONTH(A1))+MOD(A1,1),0+REPLACE(REPLACE(A1,1,3,""),4,0,LEFT(A1,3)))
    copied down
    Once done you can copy the values in B and paste over originals in A (values only)

  4. #4
    Registered User
    Join Date
    09-13-2010
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Changing Cell Format from General -> Date

    Hm DonkeyOke I tried the formula but it doesn't seem to have worked..

    Data in A1: 13/07/2010 00:32:43
    Pasted formula in B2
    Resulting data in B2: 40372.02272

  5. #5
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    Re: Changing Cell Format from General -> Date

    If you format B2 as Date Time etc you should find it is correct.

    In Excel Dates are Integers and Time is Decimal (1 being equiv. to 24 hours of course).

    The Date Format is simply a "mask" which Excel uses to alter the appearance of the underlying numeric value.

  6. #6
    Registered User
    Join Date
    09-13-2010
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Changing Cell Format from General -> Date

    Ohh gotcha. Works perfect. Thank you!!!

  7. #7
    Registered User
    Join Date
    07-15-2010
    Location
    Detroit, Michigan, USA
    MS-Off Ver
    Excel 2003
    Posts
    8

    Chart values are cumulative not absolute.

    I have a simple chart issue. My simple chart is 3 rows and 4 columns= 12 values.
    The valules are being added to the previous value and are charting as a sum of the value after being adder to the previous value.
    IE: Row A = 2 ,3 ,4 ,6
    Row B = 1, 2, 1, 1
    Row C = 2, 3, 4, 1
    The first column has the first point at 2, the second point at (2+1) 3, the third point is (3+2) 5

    the second Column has the first point at 3, the second point at (3+2) 5, and the third point at (5+3) 8

    and so on......

    I believe this is some setting in how the numbers are charted but can not find anything to help. What am I missing? Help!
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0