+ Reply to Thread
Results 1 to 1 of 1

Inconsistent CSV date and cash formats generating errors

  1. #1
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Inconsistent CSV date and cash formats generating errors

    Apologies that this is "long winded" compared to the typical query on here.

    Attached CSV file "Mixedbatch Tesr" contains extracts from three different CSV files sent by End User.
    Rows 2 - 5 have date and time as "YYYY-MM-DD HH:MM:SS" and money as "£xxx.xx"
    Rows 6 - 9 change the date and time to "YYYY-MM-DD HH:MM", and have symbol "?" in place of "£"
    Rows 10 - 13 show the date as "DD/MM/YYYY HH:MM", and the "?" symbol in place of the "£"
    Almost the only permutation missing so far is a US-style "MM/DD/YYYY"!

    The Excel file attached opens File Manager, enables the User to select the CSV file, and converts the Text to Columns, all of which works perfectly.

    Problem is the next stage. I needs it to sort into Col A date order, then name the sheet as the "Min and Max" dates in Col A (so with this sample it would be "Appts 10 April 2016 - 14 May 2016")

    But the "mixed" date formats cause programme to generate "#Value", it can't sort properly, and can't find the Min and Max.

    Having now rewritten the Code each month to overcome the changed format, I am hoping someone can show me the coding that will "standardise" whatever Date and Time format turns up on the CSV download?

    Please Login or Register  to view this content.
    Needless to say, the End User is adamant they "changed nothing" over the three downloads, and completely uninterested in doing anything their end.

    All suggestions, pointers and improvements welcomed gratefully as usual.

    Ochimus
    Attached Files Attached Files

+ 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. Dates are incorrect due to inconsistent formats
    By tpar7322 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-10-2017, 12:53 PM
  2. consistently inconsistent errors when deleting sheets
    By carsto in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2015, 02:26 PM
  3. Replies: 1
    Last Post: 11-06-2014, 05:23 PM
  4. Trouble with inconsistent date formats in Excel
    By chifoobear in forum Excel General
    Replies: 6
    Last Post: 07-21-2013, 11:50 AM
  5. VBA SET Command to Open Workbook is Generating Errors
    By stevelogistics in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2013, 09:24 AM
  6. [SOLVED] Need vlookup to accept errors in names and name formats.
    By Mikey7346 in forum Excel General
    Replies: 4
    Last Post: 08-09-2012, 01:48 PM
  7. Splitting Names with inconsistent formats
    By andersonca in forum Excel General
    Replies: 2
    Last Post: 06-24-2009, 01:44 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