+ Reply to Thread
Results 1 to 4 of 4

Datevalue not working when " / / " appears

  1. #1
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Donemana, NI
    MS-Off Ver
    Excel 2007
    Posts
    386

    Datevalue not working when " / / " appears

    Hi
    I am importing data from an external source which is importing it as text, I have been using the datevalue formula below and it works great in column A however in columns G,J,K I am getting a type mismatch error due to the suspected " / / " appearing when a date is not available, Any ideas how I can get around this?

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Datevalue not working when " / / " appears

    Possibly,

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Donemana, NI
    MS-Off Ver
    Excel 2007
    Posts
    386

    Re: Datevalue not working when " / / " appears

    code works great the only problem that I have now is that it is mixing up the date and making the day the month and vice versa, is there a way to format this?

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Datevalue not working when " / / " appears

    Please Login or Register  to view this content.

+ 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] VBA Excel formula: Month(DateValue(x & "1"))
    By TC1980 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-20-2014, 12:06 PM
  2. [SOLVED] Delete Rows FROM "X" UNTIL "Y" appears
    By mariotnc in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-08-2012, 07:47 PM
  3. [SOLVED] A drop down box that is different between the "text" chosen and the "value" appears
    By dikopaw in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-13-2012, 03:16 AM
  4. Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)" not working
    By redders in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2011, 03:52 PM
  5. Replies: 9
    Last Post: 06-02-2006, 02:55 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