+ Reply to Thread
Results 1 to 12 of 12

Power Query:PDF Table source varies:How to use Page001 instead

  1. #1
    Registered User
    Join Date
    01-28-2024
    Location
    Texas
    MS-Off Ver
    365
    Posts
    5

    Power Query:PDF Table source varies:How to use Page001 instead

    Hello,

    I am importing data for a spreadsheet from a pdf. Sometimes the data i need is in Table002, and sometimes it is in Table003. Therefore, I want to use Page001 for the source instead of the tables. However, it varies what row the data I am needing is on. How do I tell it to look for a "word" and then delete all the rows above that word so that I can then start my calculations and other transformation?

    Any ideas??

    Thanks
    RH

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,887

    Re: Power Query:PDF Table source varies:How to use Page001 instead

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    01-28-2024
    Location
    Texas
    MS-Off Ver
    365
    Posts
    5

    Re: Power Query:PDF Table source varies:How to use Page001 instead

    I have attached a picture. I need all rows above the word "Language Arts" deleted. On some files it is on row 19, some its 21, etc. I need it to look for the words "Language Arts" and then delete all rows above it.

    Screenshot 2024-01-29 101710.png

    Thank you,
    RH

  4. #4
    Registered User
    Join Date
    01-29-2024
    Location
    TN
    MS-Off Ver
    Ofc 365
    Posts
    4

    Re: Power Query:PDF Table source varies:How to use Page001 instead

    A file we could use would be super helpful. But the short answer is to use PowerQuery for it.

  5. #5
    Registered User
    Join Date
    07-21-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Power Query:PDF Table source varies:How to use Page001 instead

    I can't send a file, because the data is for a school student and contains personal data. I have attached a picture. Sometimes "Language Arts" is in row 19 and sometimes in row 20. I need power query to look for the word and then delete the rows above it.
    Screenshot 2024-01-29 101710.png

    RH

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Power Query:PDF Table source varies:How to use Page001 instead

    Without a file it would be extremely difficult if not impossible to help.
    The student's name could be anonymized to Student1.
    Other personal data could be deleted or similarly anonymized as in change address to 123 Street 1 City 1, TX 12345 etc.
    It may be that someone would only need a small sample, perhaps one set of data with Language arts in row 19 and another with Language arts in row 20.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    01-28-2024
    Location
    Texas
    MS-Off Ver
    365
    Posts
    5

    Re: Power Query:PDF Table source varies:How to use Page001 instead

    Ok, I am adding a file I have changed the personal data on. I am really needing help with this!

    Emily Transcript.pdf

    Thank you in advance!

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,887

    Re: Power Query:PDF Table source varies:How to use Page001 instead

    Here is the Mcode to Dynamically delete the top rows before "LANGUAGE ARTS" Remember PQ is case specific

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    01-28-2024
    Location
    Texas
    MS-Off Ver
    365
    Posts
    5

    Re: Power Query:PDF Table source varies:How to use Page001 instead

    ALAN,

    YOU ARE AWESOME!!!! THANK YOU SO MUCH!!!

    Rena Hearn

  10. #10
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,887

    Re: Power Query:PDF Table source varies:How to use Page001 instead

    Rena,
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  11. #11
    Registered User
    Join Date
    01-28-2024
    Location
    Texas
    MS-Off Ver
    365
    Posts
    5

    Re: Power Query:PDF Table source varies:How to use Page001 instead

    Now I have realized that sometimes it adds an extra column in and it messes up my formulas. Any suggestions as to how to handle this? I need someway to make it consistent so that it doesn't error when a column is not found.

  12. #12
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,887

    Re: Power Query:PDF Table source varies:How to use Page001 instead

    Need a clear example of your issue. Your explanation is too vague to respond.

+ 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: 1
    Last Post: 07-14-2023, 10:15 AM
  2. Replies: 0
    Last Post: 06-28-2021, 04:01 PM
  3. [SOLVED] Power Query - how to keep order of the source table
    By afgi in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 02-26-2020, 02:59 AM
  4. Power Query SQL (Source) run with manual table parameter?
    By Steveapa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2019, 09:03 PM
  5. Replies: 1
    Last Post: 11-12-2018, 02:46 PM
  6. Power Query: Using a Parameter to specify a source table name.
    By learning new things in forum Excel General
    Replies: 0
    Last Post: 11-06-2018, 04:21 PM
  7. Replies: 5
    Last Post: 06-29-2018, 05:35 AM

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