One Big Table??

Mike.Howard79

New Member
Joined
Feb 23, 2010
Messages
21
Hi all,

I have 12 tables which I need to merge into one big one if that makes sense?

Eg

Employee Name
Start Date
Progress Report Out
2 Week
4 Week
6 Week
8 Week

All tables are set out like this but are broken down into departments. I now need to create one big table with:

Employee Name
Start Date
Progress Report Out

So I can create a "Main" report rather than departmental breakdown.

Can anyone help?

Much Appreciated

Mike
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
If these

2 Week
4 Week
6 Week
8 Week

are supposed to be columns then the tables are structured incorrectly.

But if you just want this data for a report, then use a UNION Query. There is no need to build another table.

You can even add a field just in case you want to group by department too.

So like this:

Code:
SELECT [Employee Name], [Start Date], [Progress Report Out], [2 Week], [4 Week], [6 Week], [8 Week], "DepartmentName1" As Department
UNION
SELECT [Employee Name], [Start Date], [Progress Report Out], [2 Week], [4 Week], [6 Week], [8 Week], "DepartmentName2" As Department
UNION
SELECT [Employee Name], [Start Date], [Progress Report Out], [2 Week], [4 Week], [6 Week], [8 Week], "DepartmentName3" As Department
... and so on
 
Upvote 0

Forum statistics

Threads
1,214,645
Messages
6,120,711
Members
448,984
Latest member
foxpro

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