Bringing things out of access into excel

jdev33

New Member
Joined
Sep 7, 2011
Messages
12
So I posted this in the excel forum and they suggested I use access, which I know even less about than excel. Basically I have imported my spreadsheet (roughly 35 columns with around 2000 rows) into access. One column lists a numerical department code for each employee listing. I'm trying to create something, whether it be via access or excel, that scans the "department" column and pulls to another document all of the rows that correspond to a particular department. (ie. I want to have a separate spreadsheet/report for each of the 30+ departments). I need to find a way to set up each department's report/spreadsheet so that the master spreadsheet "department" column is scanned for department "12345" and each row matching that department number is pulled to the respective report/spreadsheet. Is this possible and/or easier with access, and how would I go about accomplishing this? Thanks.

Link to Excel thread: http://www.mrexcel.com/forum/showthread.php?t=577132
 
Last edited by a moderator:

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
From Access you can set up a query and form and then use a DoCmd.TransferSpreadsheet command.

Create your query and then save it something like qryDepartment (Keep it open), then create a form with a combo box on it that points to the Table and only shows the department numbers once, save the form something like frmSearch and also the name the combo something like cboDepartment.

Add a command button or macro to do the transfer of the query and once you select from the combo box you click the button and it will transfer into an excel workbook that you specify.
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,558
Members
452,928
Latest member
101blockchains

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