Add one table to bottom of another

GScott

New Member
Joined
Oct 12, 2013
Messages
28
Office Version
  1. 365
Platform
  1. Windows
I have a query that extracts transactions from a PDF that has multiple pages. My data is on page 2 and 3 but the transform definition for page 2 does not work for page 3 so I have written, in the file, a query for page 3. Don't know why page 2 query doesn't work for page 3, the PDFs look the same and I am grabbing the same data, but the column count varies.
I get the data from page 2 into spreadsheet.
In an ideal world I would like to output the page 3 query to the bottom of the page 2 query. I cannot work out how to do this.
I would settle for outputting into separate sheets but can't work out how to do this either.
Can someone offer some guidance please
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Seems you have 2 functions, one for page 2 and one for page 3. So store your queries in functions (plenty of tutorials online) and apply an if by referring to the page.
Something of this sort:
Power Query:
if [Page]<2 or [Page] > 3 then null else if [Page] = "Page2" then Fn_Page2 else Fn_Page3

Then filter out your null rows and expand the column.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,954
Members
449,095
Latest member
nmaske

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top