+ Reply to Thread
Results 1 to 6 of 6

PDF--->Excel weird format result. Trying to fix with VBA

  1. #1
    Registered User
    Join Date
    08-15-2017
    Location
    Virginia, US
    MS-Off Ver
    2010
    Posts
    4

    PDF--->Excel weird format result. Trying to fix with VBA

    So I had succeeded in finally getting the pdf file converted into a semi-workable format. Some data is formatted fine, but other pages are formatted with a bunch of data input into a single cell (40-50 items). I can't get pro without my company first approving it, so I am trying to code a work-around to automate this otherwise mundane tax. New to scripting in Excel, however I did take coding classes in college. I have attached two screenshots, one with the problematic formatting, and the latter with desired formatting. The idea I have now is to have excel find instances of FP and then inserting a line-break before it. But that doesn't result in the data being in its own cell. Anyway to do this? I am reading up to try to figure it out, but if anyone can point me in the right direction, that would be great.

    http://imgur.com/a/ln2uA <---- Problem Data

    http://imgur.com/a/PKfMM <----- Correct Data

  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: PDF--->Excel weird format result. Trying to fix with VBA

    Are the 2 images of data you have in Excel?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    08-15-2017
    Location
    Virginia, US
    MS-Off Ver
    2010
    Posts
    4

    Re: PDF--->Excel weird format result. Trying to fix with VBA

    Yes, that is data currently in. The problem is, when I moved it from the original pdf file, some sections merge 70+ items into a single cell, and I need this part to be aligned with the proper part no., description, and reference number. I can't really achieve that with all the part #'s in a single cell, separated by spaces.
    Last edited by dlorg001; 08-15-2017 at 01:57 PM.

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

    Re: PDF--->Excel weird format result. Trying to fix with VBA

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  5. #5
    Registered User
    Join Date
    08-15-2017
    Location
    Virginia, US
    MS-Off Ver
    2010
    Posts
    4

    Re: PDF--->Excel weird format result. Trying to fix with VBA

    Attached. I'm a little bit at a loss, as There is no real sequence of the part number, nor the naming of each part. Sheet1 is current data, Sheet2 is desired output/formatting. Thank you for any help.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-15-2017
    Location
    Virginia, US
    MS-Off Ver
    2010
    Posts
    4

    Re: PDF--->Excel weird format result. Trying to fix with VBA

    Thanks for looking into it, but I found a work around using text-to-columns and transpose.

+ 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. Weird MROUND result?
    By nlexcel in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-03-2017, 06:26 AM
  2. [SOLVED] Weird VLOOKUP Result
    By DesktopT in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 10-30-2014, 07:51 PM
  3. (Weird) Formula with no result in the cell
    By Socal4me in forum Excel General
    Replies: 3
    Last Post: 07-08-2014, 05:44 PM
  4. Excel 2013 - weird paste format?
    By Nighteg in forum Excel General
    Replies: 2
    Last Post: 06-23-2014, 08:51 AM
  5. [SOLVED] weird countif result
    By Evolta in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-06-2013, 07:20 AM
  6. [SOLVED] Excel 2007 : Weird result from concatenation
    By magnanr in forum Excel General
    Replies: 5
    Last Post: 07-18-2012, 12:14 PM
  7. Weird result
    By Roger B. in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-09-2005, 12:05 AM

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