SQL using Multiple Excel Workbooks as source

mdmilner

Well-known Member
Joined
Apr 30, 2003
Messages
1,363
I'm fishing for an improv solution idea.

What I think I'd like to do is create connections that allow me to use SQL to extract data from multiple workbooks using a single statement/joins/etc. The intent is this is an interim solution - more of a proof of concept/demo - before I have the opportunity to migrate my sources into SQL Server. Ultimately the users will have a few different options to see data including excel, power bi and ssrs.

I was able to pull data in from multiple workbooks using power pivot and using multiple steps, and eventually transform it to what I needed. However, I didn't like the drill-down behavior. If I had three source connections and I double-clicked for a drill down, it would only give me a new tab showing the relevant source from the column I picked. If there's an opportunity to change that drill down behavior, this might fit my needs.

I tried using a SQL approach (against excel directly) and that works great as long as I'm only targeting worksheets within a single workbook. I demo'd the approach of using a single workbook as a staging point, but from what I've read online, it's supposed to be possible to use SQL (excel to excel) to join source data from multiple workbooks, the hint I saw made me think it's all in how you setup the connections.

I'd appreciate any suggestions. I wasn't really exploring a vba based option but if that's the right way, I'd just appreciate that hint so that I know to stop poking around with other options.

Mike
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,223,992
Messages
6,175,827
Members
452,673
Latest member
LaMiaAvy

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