Results 1 to 4 of 4

Datevalue not working when " / / " appears

Threaded View

  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?

    Sub DateValu()
        For Each cell In Range("Q2:Q3000")
            If Not IsNumeric(cell) Then cell.Value = DateValue(cell)
        Next cell
    End Sub
    Attached Files Attached Files

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. [SOLVED] "1235" appears as "One thousand two hundred thirty five"
    By H. Kan in forum Excel General
    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