+ Reply to Thread
Results 1 to 4 of 4

Date Import Issues

  1. #1
    Registered User
    Join Date
    08-15-2007
    Posts
    2

    Date Import Issues

    Suppose you have a simple text file, with dates and amounts, in the following format.

    MAR-04, 123
    MAR-05, 100
    MAR-06, 456

    When I import this into Excel (2002 version), it forces the data imported to be :

    04-MAR-2007
    05-MAR-2007
    06-MAR-2007

    I am unable to get the date to be interpreted in any kind of format I can use, such as assuming the 1st of the month. Importing the dates as text gets them in correctly; but then I don't have a way to convert them to dates. The Excel date format, when applied, changes them the same way as the import.

    Any suggestions on how I can get the correct date out of this data ?

  2. #2
    Forum Contributor
    Join Date
    02-28-2006
    Posts
    690
    assume cell A1 contains, after you have imported them as text,

    MAR-04, 123

    In B1 enter =left(a1,6) so you get MAR-04

    in C1 enter =value(B1) and format C1 as a date

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Welcome to the board
    when you import mar-04, 123, what do you want as result?
    March 2004 ? the 4th of March ( any year)?

  4. #4
    Registered User
    Join Date
    08-15-2007
    Posts
    2
    Robert - When I try that, I end up with March 4, 2007.

    For MAR-04 what I want to see is the 1st of March, 2004. The day could really be any value, 1st, 30th, doesn't matter too much. The problem is Excel interprets MAR-04 as the 4th of March, 2007. For added difficulty, I'm ultimately trying to get this to come up automatically without user intervention .

    Thanks for the welcome.
    Last edited by CWood; 08-16-2007 at 02:26 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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