Week numbers against employee

kisnay82

New Member
Joined
May 17, 2017
Messages
14
Hi

I have 2 tables, one table is a list of week numbers and the second table is employee details.

i want to create a query where each employee has a week number, so employee int2 has 52 weeks and employee int7 has 52 weeks.

for example

Week NumberEmployee ID
1int2
2int2
3int2
4int2
5int2
6int2
7int2
1int8
2int8
3int8
4int8
5int8
6int8
7int8
1int5
2int5
3int5
4int5
5int5
6int5
7int5

<tbody>
</tbody>
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Simply do a query between the two, and do not create a Join between the two.
This will create a Cartesian product between the two tables, which is what you are describing.
 
Upvote 0
I'd also caution here that before proceeding you think about what happens 53 weeks from now. I see a lot of work done that is only for "one year" and then people spend a day or two resetting their spreadsheets for the new year because they can't just roll into the new year. I know this isn't a spreadsheet - but the same caveat applies.
 
Upvote 0

Forum statistics

Threads
1,214,581
Messages
6,120,372
Members
448,957
Latest member
BatCoder

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