Excel SQL-type query possible?

Euler271

New Member
Joined
Dec 4, 2017
Messages
31
Here's what I want to do:

I have a table in Excel with all the records I need. I want the user to select (filter) a pivot table for a particular merchant ID. The pivot table then populates with the summarized information for that ID, including states and counties where the merchant does business.

What I would like to happen then is for the user to be able to press a button creating another pivot table in another worksheet that shows the same summarized information for all the competitors of the selected merchant in the same states and counties in which the selected merchant operates. (There are other fields as well such as numbers of members, visits to stores, etc. that I also need to see in the pivot tables.)

I think this can be done in Access by passing the selected merchant ID to a pivot table form's recordsource SQL statement but I haven't tried it yet. My question is if this can be done in Excel somehow. I'd prefer to do it in Excel since the pivot tables in Access don't seem to be that great; or, at least, not as great as they are in Excel. I'm using Excel 2010.

Thanks for your help.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,223,911
Messages
6,175,329
Members
452,635
Latest member
laura12345

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