transposing

Amit112

Board Regular
Joined
Nov 12, 2004
Messages
52
Hi everyone,
I was wondering if there was a way to query to combine many tables with one. For example

I have a workbook with 10 sheets all having columns labelled:
Date Date Due Date Closed Source and so on....

I want them all to filter out into:
Past Due Due in 1 week Due in 2 weeks

So all the sheets are labelled in the same workbook. I just want to run one query instead of 10 and have them filter out everytime it is refreshed


Any help would be greatly appreaciated.
Thanks
:biggrin:
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
You could use a Union query for this. Look it up in Help or on the internet if you need to, but basically you'll need to go to your query's SQL view and type it in (mostly cut and paste) yourself. So if your original query is (I know yours is more complicated, but this should give you the idea):

SELECT FIELD1 FROM SHEET1 WHERE [DATE DUE] < Date();

Then your union query would look like this:

SELECT FIELD1 FROM SHEET1 WHERE [DATE DUE] < Date()
UNION
SELECT FIELD1 FROM SHEET2 WHERE [DATE DUE] < Date()
UNION
SELECT FIELD1 FROM SHEET3 WHERE [DATE DUE] < Date()
etc.

Hope this helps,
Russell
 
Upvote 0

Forum statistics

Threads
1,221,829
Messages
6,162,229
Members
451,756
Latest member
tommyw

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