Trying to move horizontal data into vertical data with other fields

richard12

New Member
Joined
Feb 9, 2017
Messages
23
I have lists of vacation times in a spreadsheet with multiple vacation columns that need to be placed, with other data, into a vertical data formatted spreadsheet. This now requires multiple cut/paste into another sheet, then upload to Microsoft Access to create relationships in a query that is copy/pasted into a spreadsheet to get the multiple rows of the same employee with different vacation dates. I would like to eliminate using Access, if possible, and use Excel to get to the sheet that can be used in a program. There is an employee sheet that has rows of employees with their personal data that is used to make a final Excel worksheet. The goal is to make a sheet with the same employee multiple times so vacation weeks can be accounted for and used in a query. See Sheet 2 example below. I am using Excel 2013

Sheet1 from managers
Grp Emp# LastNM FirstNM Vac Week Vac Week Vac Week Vac Week Vac Week Vac
image1.jpg
image 1.jpg
02503941SMITHJOHN3/11/20186/17/20189/30/201811/4/2018
02500007JONESANDY1/28/20182/4/20184/22/20187/1/201811/18/201811/25/2018
02544899ANDERSONMAX4/29/20185/6/20185/13/201812/30/2018
03544671MAULMIKE3/25/20184/1/20187/8/2018
03543445JONESSAM5/6/20188/5/20188/12/201810/7/201811/11/2018

<colgroup><col><col><col><col><col><col span="5"></colgroup><tbody>
</tbody>

Sheet2 is using manager input and HR employee data from separate pages. I need to somehow have multiple rows of the same data to meet the number of columns of vacation week dates. The purpose is to have this data so the selection of an employee's vacation week might find similar employees, not on vacation, who could substitute for the employee on vacation. The order or format of Sheet 2 is not important if that matters.
EMPLOYEE#LastNMFirstNMZIPEstZIPVacWeek
503941SMITHJOHN54126543443/11/2018
503941SMITHJOHN54126543446/17/2018
503941SMITHJOHN54126543449/30/2018
503941SMITHJOHN541265434411/4/2018
500007JONESANDY52537544431/28/2018
500007JONESANDY52537544432/4/2018
500007JONESANDY52537544434/22/2018
500007JONESANDY52537544437/1/2018
500007JONESANDY525375444311/18/2018
500007JONESANDY525375444311/25/2018

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Glad to help & thanks for the feedback
 
Upvote 0

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.

Forum statistics

Threads
1,214,832
Messages
6,121,851
Members
449,051
Latest member
excelquestion515

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