+ Reply to Thread
Results 1 to 5 of 5

Split column, at odd location

  1. #1
    Registered User
    Join Date
    01-24-2022
    Location
    United States
    MS-Off Ver
    2019
    Posts
    12

    Split column, at odd location

    Hello,

    I ran a pdf conversion to a spreadsheet and the conversion is not splitting the column, so digits are running into each other, AG12 is one of the locations where this is happening. Power Query is where I would usually do this split but I'm hoping to build a macro to convert this pdf conversion into a sheet like you see on sheet 2 of the attached, so sometimes it will be 5 characters, sometimes 6 etc. Thanks for the ideas.

    Cheers!

  2. #2
    Forum Contributor
    Join Date
    05-03-2021
    Location
    Nashville
    MS-Off Ver
    MS Office 365
    Posts
    184

    Re: Split column, at odd location

    Are you merging the cells or is excel doing this after importing the PDF file?
    is Table1 tab completely undoctored and exactly how it looks on import?

    I have an "hours worked" document I import that is not very "excel friendly" and was able to parse out spaces and specific markers so that I could generate how many hours an employee worked in a given work center for a month.
    It was basically a "word doc" converted into an excel workbook and the macro works but it works because it behaves the same way every time it is imported.
    The number of characters aren't important as so much what characters are always available (there is always a space, and we need to find out what type of space is being imported, char(32) or char(160).. it sounds dumb but one can be trimmed the other cannot. and we will have to account for that.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,522

    Re: Split column, at odd location

    In cell AG12 it is a space, CHAR(32).
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    01-24-2022
    Location
    United States
    MS-Off Ver
    2019
    Posts
    12

    Re: Split column, at odd location

    Hi TMS,

    Crap, I think I tinkered with it and forgot to put it back, I wish there was a space, but I'm not that lucky.

    I reuploaded the file.

    Thanks for the help!

    Kind regards,
    Brandon

  5. #5
    Registered User
    Join Date
    01-24-2022
    Location
    United States
    MS-Off Ver
    2019
    Posts
    12

    Re: Split column, at odd location

    Hi New Kidd,

    Yeah, its merging those cells. I'm using adobe, but I've tried a few others and the merging gets nuts, for example the whole block of hours is just a single merge.

    Unfortunately, I'm getting some variability in the export, but I'll figure out a way to manage that; I have some ideas.

    And I reuploaded the file, there isn't a space in the original file, I had been tinkering with it and forgot to put it back.

    Thanks for any ideas you might have.

    Kind regards,
    Brandon

+ 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. Replies: 4
    Last Post: 11-19-2022, 04:42 PM
  2. [SOLVED] Split in different sheet with the correct photo as per location
    By jc83ph in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-17-2020, 01:41 PM
  3. [SOLVED] Macro to Split a file and save in specific location
    By arun.sj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2020, 05:35 AM
  4. [SOLVED] VBA code for location string split
    By Velehrad in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-04-2020, 11:02 AM
  5. Replies: 4
    Last Post: 04-05-2016, 12:19 AM
  6. Need Macro code to split data split in 7 sheets based on variable rows in column A
    By Alija_21 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-31-2015, 08:03 AM
  7. [SOLVED] Split Sheet based on Location and Re-Merge
    By Hyflex in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-02-2012, 01:09 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