+ Reply to Thread
Results 1 to 4 of 4

Getting #value! when converting date

  1. #1
    Registered User
    Join Date
    01-06-2018
    Location
    alex
    MS-Off Ver
    Microsoft Excel 2019 MSO (Version 2301 Build 16.0.16026.20196) 32-bit
    Posts
    45

    Question Getting #value! when converting date

    Hello all,
    The subject says it all,
    I need to convert the dates in column A to georgian
    i'm using the formula =--a1

    even tried =DATEVALUE(a1)

    it works for some cells, but not with others.
    Can you tell me why and how to fix it?

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,938

    Re: Getting #value! when converting date

    You have strings that are dd/mm/yyyy instead of the expected mm/dd/yyyy.

    Use this in B1, and copy down:

    =DATE(RIGHT(A1,4),MID(A1,FIND("/",A1)+1,FIND("/",A1,FIND("/",A1)+1)-FIND("/",A1)-1),LEFT(A1,FIND("/",A1)-1))

    This can be simplified if you always have two digit days and two digit months:

    =DATE(RIGHT(A1,4),MID(A1,4,2),LEFT(A1,2))
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Getting #value! when converting date

    Likely because your system date is set to mm/dd/yyyy.

    Hence, 12/10/17 will evaluate to Dec 10 2017.

    But it looks like texts are in dd/mm/yyyy format.
    Try below formula.
    =DATE(RIGHT(A1,4),MID(A1,4,2),LEFT(A1,2))

    Note that above will not work if you have d/m/yyyy text in column A (ex: 13/1/2017).

    In that case you'll need additional calculation steps.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  4. #4
    Registered User
    Join Date
    01-06-2018
    Location
    alex
    MS-Off Ver
    Microsoft Excel 2019 MSO (Version 2301 Build 16.0.16026.20196) 32-bit
    Posts
    45

    Re: Getting #value! when converting date

    Thank you guys for your big help. that did fix my issue, to be honest, I didn't use the formula, I just changed the system data as @CK76 mentioned and all the #value! was gone. Thanks alot.

+ 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. [SOLVED] Formula for converting a date to quarter and leaving blank cell for no date values
    By jayc2111 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-10-2019, 12:57 AM
  2. Replies: 5
    Last Post: 08-13-2017, 04:29 AM
  3. Converting a julian date and time to standard date in excel 2010
    By Munkle555 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-22-2015, 10:49 AM
  4. [SOLVED] Converting Date Text to Number format to use in a VLOOKUP to polpulate data based by date
    By Rossovich in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-08-2015, 10:43 AM
  5. Converting Bianary Type Date from MSSQL to date in Excel
    By Demaestro in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-15-2013, 04:06 PM
  6. [SOLVED] Converting cover start and end date to an actual date
    By jonathan.haynes in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-09-2013, 11:27 AM
  7. Converting a date serial number back to a date within a string
    By bharris77 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-22-2012, 01:15 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