+ Reply to Thread
Results 1 to 4 of 4

Date-format

  1. #1
    Registered User
    Join Date
    11-03-2010
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    14

    Date-format

    Hello,

    Im on Excel 2007 and I have a problem with the dates.

    In my raw data I have one column with dates in the form of 20101030 (text format). Normaly I would just put - between year, month and day (2010-10-30).
    But, in this document I have 7500 rows so that might take a while.

    My problem is that Excel doesn't realize that it's a date so I can't just mark the column and change format.

    And I need it to be in date format so I can use =DAYS360

    Is there an easy (of difficult but time-effective) way to change from the text 20101030 so that Excel understands that it's a date , not just text.
    Last edited by Vic_from_sweden; 11-03-2010 at 08:37 AM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Date-format

    Something like: =DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Date-format

    If 2007 allows select data to transform - go to Data - text to columns - check delimited - next next - in column date format select Date and select YMD in the dropdown - Click Finish

  4. #4
    Registered User
    Join Date
    11-03-2010
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Date-format

    Thanks! Both worked!

    Thats saved me a lot of time!

+ 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.6.0 RC 1