Extracting data from tables

mathteacher

New Member
Joined
Jan 11, 2005
Messages
9
I'm trying to import Excel tables into Access and extract specific data from each table and compile into one table.

For example, here are the tables:

Table 1: Student Roster with student names, phone numbers, school they attend, etc.

Table 2: List of Chicago schools that contain phone numbers along with names and email addresses of school employees

Table 3: A list of non-Chicago Schools with employee info

Table 4: Private Schools with employee info

Table 5: School semester Dates

I want to be able to extract a student's name and school name, then match the school name with a school on Table 2, 3, or 4 and extract pertinent data for that school, and then extract the semester dates, from Table 5. Then, I would like to create a report with all this info for each student.

The tables are constantly changing, so I would have to be importing them over and over as they are updated.

This could save me tons of time if I knew how to do this!

Can anyone help?

Thanks!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
You may find it simpler if you set it up like this:
Table 1 -- as before (tblStudents). StudentID is Autonumber
Table 2, 3 and 4 -- combined to one table, as they all have information about schools. (tblSchools). Differentiate with a Category field (Chicago, Non-Chicago, Private). SchoolID is Autonumber
Table 3 -- as your original Table 5 (tblSemesters). 2 fields, SemesterID (Autonumber) and Semester (text)
To pull the data together you will need a fourth table -- tblEnrolments. This has EnrolmentID (Autonumber), StudentID (Number), SchoolID (Number) and SemesterID (Number). This table can hold all possible combinations of student, school and semester. Your reporting queries will be based around this table.

This is the first step -- more detail as you get further into it.

here is a link with some good structures and strategies.

Denis
 
Upvote 0
Thank you, Denis!

I had thought about combining the tables, as you suggested, but I wasn't sure how easy that would be since the tables are constantly changing. In addition, the school tables contain different columns so they don't match up exactly.

Another question, do you know if Excel is capable of doing any of this without using Access?

One more bit of info, I know NOTHING about Access and very little about Excel. I will tinker with your suggestions and probably come back with more questions. :eek:)

Thanks, bunches!
 
Upvote 0

Forum statistics

Threads
1,221,848
Messages
6,162,419
Members
451,765
Latest member
craigvan888

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