+ Reply to Thread
Results 1 to 4 of 4

Quickly typing dates into cells

  1. #1
    Registered User
    Join Date
    05-23-2005
    Posts
    2

    Quickly typing dates into cells

    I am using formula =DATEVALUE(LEFT(A1,2)&"/"&MID(A1,3,2)&"/"&RIGHT(A1,2)).

    When value in A1 = 121505 (six digit number) - formula returns 12/15/05.

    When value in A1= 051505 or 51505 - formula returns #VALUE error.

    What am I doing wrong, please?

  2. #2
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    I presume that 051505 is entered as a Number? So it becomes 51505 --> LEFT(A1,2)=51 ... see the problem?
    But if you enter '051505 it will work, or it you Format the cell as Text, then enters 051505 it will stay 051505 and the formula will work

    Ola

  3. #3
    Registered User
    Join Date
    05-23-2005
    Posts
    2
    Excellent. Thanks.

  4. #4
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    Happy it was what you needed
    Thanks for the feedback.
    Ola Sandström

+ 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