+ Reply to Thread
Results 1 to 5 of 5

Delimiting removes data. Formatting issue?

  1. #1
    Forum Contributor
    Join Date
    01-06-2012
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    165

    Delimiting removes data. Formatting issue?

    Hi,

    I'm having a bit of a problem I can't solve. I have a macro that imports data to an excel file, I need to the delimit the data once it's in the workbook.

    I can see the data there, but when I try to delimit it it comes out blank. Because the data is primarily exported from a third party software as an .xls I'm wondering whether it may be formatted in a funny way the Excel 2013 can't read it.

    I've attached an example. Anyone come across this before? Any help would be very much appreciated.
    Attached Files Attached Files
    Last edited by BPSJACK; 09-10-2014 at 11:33 AM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Delimiting removes data. Formatting issue?

    Is the file you've uploaded before/after?

    Whichever it is how are you delimiting?

    PS The dates seem to be preceded by a ' and a blank line, or linefeed character.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    01-06-2012
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    165

    Re: Delimiting removes data. Formatting issue?

    The file I've uploaded is before attempting to delimit. I'm trying to delimit column D with " : " character.

    I've tried all sorts of trim, clean and substitutes but i cant seem to remove the line.

  4. #4
    Forum Contributor
    Join Date
    01-06-2012
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    165

    Re: Delimiting removes data. Formatting issue?

    Appears I've solved my own problem.

    Inserted the following function:

    Please Login or Register  to view this content.
    And the just applied it to the cells. Copied, pasted the values and deleted the originals. And then it could be delimited.

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Delimiting removes data. Formatting issue?

    Try using Fixed width with a break before/after the colon and after the split unwrap the columns.

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Delimiting removes data. Formatting issue?

    Enter this formula in E1 and copy across to fill 4 columns and then copy down the length of your data to remove non-printing characters whose ASCII codes are from 0 to 31.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Select the columns with numbers and click in the yellow diamond and click on Convert to number. This will convert all text numbers to real numbers.

    Select all of your new data and copy then Paste (in place...don't change the selection) Values. This will get rid of the formulae and leave you with values only.

    Column H of you new values still has trailing spaces. Enter =TRIM(H1) in I1 and copy down. This will eliminate the trailing spaces and any double spaces in the data in column H. Copy and Paste Values to get rid of the formulae. Delete the original data and column H of the new data.

    This should clean up your data ready to be formatted in the manner that you want and allow you to enter the delimiters (whatever they are) that you are having trouble with.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. Pivot table removes formatting on update
    By ThomasCarter in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 11-21-2012, 11:35 AM
  2. Auto-Filter Removes Cell Formatting
    By dsdesigner in forum Excel General
    Replies: 0
    Last Post: 06-11-2012, 03:16 PM
  3. Replies: 2
    Last Post: 02-27-2008, 04:39 AM
  4. Replies: 3
    Last Post: 08-08-2005, 04:23 AM
  5. Replies: 0
    Last Post: 05-17-2005, 02:56 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