Import Data Question Scenario

t0ny84

Board Regular
Joined
Jul 6, 2020
Messages
205
Office Version
  1. 365
  2. 2016
  3. 2013
Platform
  1. Windows
  2. Mobile
  3. Web
Hi All,

The following is a query which a colleague has raised with me and I am not even certain that this might be possible, there currently are no spreadsheets in place just the pictures\ideas below.

I am wondering if this may be possible (most likely with VBA) and if so can anyone point me in the right direction. Two spreadsheets, Workbook 1 which employees have access to and use to enter their leave dates in (layout as below) and Workbook 2 which the manager has access to, this workbook only has a simple Table (layout below). My idea is to have a macro which searches through the Workbook 1 and adds the Date - Employee Name - Reason to the table in Workbook 2 whenever a button is pushed.

Workbook 1 - Includes Spreadsheet which lists employees names in column A then across the page it has each date.
1599547508475.png


Workbook 2 - A simple page with a table (Table1) which has columns for the date, employee name and reason.
1599547501262.png


Thanks t0ny84
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
If you have Power Query, Get & Transform, the action is a simple unpivot. Rough guidance :
  1. Get data from file Excel workbook.
  2. Select the workbook and sheet from the navigator
  3. Remove top rows 2
  4. Promote headers
  5. Select first column and unpivot other columns.
  6. Save and load as table.
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,249
Members
449,075
Latest member
staticfluids

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