+ Reply to Thread
Results 1 to 5 of 5

'Reading' data from csv files in .xlsm Workbooks

  1. #1
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    'Reading' data from csv files in .xlsm Workbooks

    Hi Folks
    I download csv files into .xlsm Workbooks but one of the new Cols will not 'read' when I input a formula using that Col's Cells.
    Presumably this is because of some formatting in this new Col?
    Is there a method to 'clean' the data, perhaps by using another Col and then running my formulas from that new Col?

    Cheers
    hammer
    If you have found solving my problem/s to be an interesting and educational exercise then how about Repping me up?
    No idea why I need Rep, other than feeling left out....

  2. #2
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: 'Reading' data from csv files in .xlsm Workbooks

    btw, the data is always text eg 'FLAT HCAPS QUALIFIERS'

  3. #3
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: 'Reading' data from csv files in .xlsm Workbooks

    Okay, I just used the standard TRIM formula which appears to work.

    Any other comments/suggestions appreciated.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: 'Reading' data from csv files in .xlsm Workbooks

    It can be difficult to provide specific suggestions without a sample file.

    I will usually resort to using TRIM(), CLEAN(), etc to "clean up the data" (post import) if I have no other option. The usual options I use instead:

    1) If I have access to the person, program, app, code that is creating the CSV file, I will first go there and see if I can change how the CSV file is generated so that these "extra characters" are not included in the file in the first place. Importation of a delimited text file into Excel should normally be very straightforward if those "extra characters" are never included in the file.
    2) Other times, I will pass the csv file through a text editor. It is usually a fairly simple "find and replace" procedure for a text editor to remove undesired characters from the text file.
    3) Other times, I will open the csv file through the "text import wizard", which will allow me to specify multiple characters as the delimiter.

    I guess the point that I make is that, when possible, I like to deal with this kind of issue before I bring the file into Excel, rather than after.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: 'Reading' data from csv files in .xlsm Workbooks

    Good advice MrShorty- many thanks

+ 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. how can i copy the data in a set of .xlsm files?
    By peternevba in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-16-2014, 08:32 AM
  2. Split .xlsm workbook into multiple xlsm workbooks w/ 1 tab each
    By JenBR in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-23-2014, 07:05 PM
  3. Replies: 2
    Last Post: 10-04-2013, 10:12 AM
  4. Reading data from several XML files into EXCEL
    By jgaard in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-11-2012, 02:47 AM
  5. Help: Open all xlsx files in dir, copy data from cells and paste in 1 master xlsm
    By dgibson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2011, 04:17 AM
  6. Formula for reading data out of several files
    By Rob7bb in forum Excel General
    Replies: 1
    Last Post: 05-07-2010, 06:12 AM
  7. Reading data from other files
    By Incoherent in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-02-2006, 04:00 AM
  8. Reading data from several files
    By DJ Dusty in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-12-2005, 04:13 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