Creating a yearly file from 12 monthly files

hamburger

New Member
Joined
Sep 10, 2004
Messages
33
Hi,

I have 12 monthly files with 6 fields in each.

There are client numbers and product numbers as identifiers... there are also fields for volume of usage, costs etc.

I want to create a file that shows the sum for volume of usage, costs, etc. for every Client-Product combination.

I know how to do the summing for each combination part... but I don't know how to create a table that has information for all 12 months... how do I make this table/query?


Thanks for your help! Very much appreciated!!!!!!!!!!!!!
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
When you say files exactly what do you mean?

If you have imported the data into 12 tables you could use a UNION query to combine them all.

SELECT *
FROM Month1Table

UNION

SELECT *
FROM Month2Table
...

UNION

SELECT *
FROM Month12Table

For this to work all the tables need to have the same field names/types.

If you get this to work you could either use it in a make table query or use it for the basis of other queries.
 
Upvote 0

Forum statistics

Threads
1,221,832
Messages
6,162,254
Members
451,757
Latest member
iours

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