Keep last 2 rows of each worksheet from multiple files after filtering empty rows

wbstadeli

Board Regular
Joined
Mar 11, 2016
Messages
153
Office Version
  1. 365
Platform
  1. Windows
Hi!

When using the new query>from file > from folder > "select folder" >edit, this loads all the files from that folder into the editor. What do i need to do to load all the data from a sheet called "Work Order" remove all empty rows in column 5, and the keep only the last 2 rows of data from EACH sheet, not only last 2 rows of from all the data in the editor (which contains multiple sheets pulled from all the files in the folder). Thanks for any help with this!
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
You are going to need to share your source file, otherwise its impossible for anyone to help with this
 
Upvote 0
it is a bit confusing, here are some ideas you can use:

the last step. open one sheet, new column - index. filter descending. keep rows - top two rows

save it as function.
pass the rest of the sheets in.

when you expand the data keep the column with sheet names.
filter by "work order"
expand data
click column 5 - reduce rows - remove errors OR unfilter null
 
Upvote 0

Forum statistics

Threads
1,226,246
Messages
6,189,860
Members
453,575
Latest member
Taljanin

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