Joining two unrelated tables into one

sbots

New Member
Joined
Jun 12, 2015
Messages
1
Hi all,

I have two tables, one with periods and one with resources and I'd like to combine them into one (so each resource gets a row for each period).

Example:

Table 1:
Resource
Type
James
Full Time
William
Part Time
Nick
Part Time

<tbody>
</tbody>

Table 2:
Period
Start Date
2015-01
1/1/2015
2015-02
2/1/2015
2015-03
3/1/2015

<tbody>
</tbody>

Desired table:
Resource
Period
James
2015-01
James
2015-02
James
2015-03
Wiliam
2015-01
William
2015-02
William
2015-03
Nick
2015-01
Nick
2015-02
Nick
2015-03

<tbody>
</tbody>

Any suggestions on how to do this (using VBA or formula's)?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
What about without VBA or formulas?

A Cartesian (aka cross) join of the tables. SQL is : SELECT Resource, Period FROM [Table 1], [Table 2]

In brief, can be set up via ALT-D-D-N & following wizard. At final step take option to edit in MS Query. I know I've posted the solution with more detailed steps in the past: will google & post back with a link or two.

regards
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,208
Members
448,554
Latest member
Gleisner2

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