+ Reply to Thread
Results 1 to 4 of 4

Need Help...Extracting variables from pdf invoice extracted to excel.

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    41

    Need Help...Extracting variables from pdf invoice extracted to excel.

    So I have pdf invoices (500+ pages) that have been extracted to excel. I need to pull the subtotals from the excel version to add up. The issue is that the totals are in different locations of the excel cells. Some are in the beginning of the cell and some are at the end.

    I've attached example data and the corresponding results I'd like to get. This is well above my head and I'd really appreciate your help if possible.

    Thanks a ton,

    Brian
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Need Help...Extracting variables from pdf invoice extracted to excel.

    It is difficult to generalise from only two examples, but it looks like you have 6 space characters after **Total** before the number in the format nnn.nn

    Another consideration is that the asterisk can be used as a wildcard character, so in the following formula I have changed two asterisks to a pipe character. I've also assumed that you would want the totals as numbers, and if that is the case you can put this formula in B6:

    =IF(ISNUMBER(SEARCH("|Total|",SUBSTITUTE(A6,"**","|"))),MID(SUBSTITUTE(A6,"**","|"),SEARCH("|Total|",SUBSTITUTE(A6,"**","|"))+7,12)*1,0)

    and then copy down.

    Hope this helps.

    Pete

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need Help...Extracting variables from pdf invoice extracted to excel.

    B6 and copied down
    =IFERROR(MID(A6,FIND("**Total** ",A6)+15,FIND("<",A6)-(FIND("**Total** ",A6)+15)),0)
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  4. #4
    Registered User
    Join Date
    11-15-2012
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Need Help...Extracting variables from pdf invoice extracted to excel.

    Thanks a lot for the reply...Pete_UK's response worked perfect, but I'm sure the others would have too. This save my team 50+ hours this week.

+ 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: 0
    Last Post: 10-25-2013, 12:14 PM
  2. [SOLVED] Extracting only unique invoice numbers
    By shadrack in forum Excel General
    Replies: 5
    Last Post: 09-02-2012, 07:50 AM
  3. [SOLVED] Extracting Specific Word From Extracted Innertext
    By Stonesteel15 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-06-2012, 10:18 AM
  4. Extracting data from a client worksheet to create an invoice
    By Jacques E. Bouchard in forum Excel General
    Replies: 1
    Last Post: 05-08-2005, 03:06 AM
  5. Replies: 1
    Last Post: 02-25-2005, 06:27 PM

Tags for this Thread

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