Hi everybody!
I am confronting a little issue at my work, namely I need to centralize data from several input files into a master file, which requires a lot of manual work and is very time consuming.
What I trying to do and I am not really able to, due to my rather poor VBA knowledge, is to develop a macro that would allow me to get the data together into a master file from several files that lye in the same folder as the master file. Therefore, the link between the master file and input files could be done via pfads or by setting the macro to import into the master file all the data from the input files available in that specific folder. It would be really great, if someone could provide me with both solutions, as things might change in the future.
However, my biggest problem is that I can't really find a macro to get the data imported so that I could straight away use it for a pivot table. Here, one would need to rearrange a little bit the data, as it follows:
1. Column headlines should be taken over from A3:H3 (see attachment)
2. Data starting from F4 till column DW4 should be listen one after another on the vertical axis on a monthly basis. Each month comes with 3 columns and approximately 10 rows.
3. It would be great if the date for each month would be taken over in a column in the very front, say column B
4. Column A should represent the date when the report is being established.
Macro Data.JPG
Basically it should look like this:
A |B |C |D |E |F |G |H |I |J
mm.jjjj |Date | Department | Team | Function | Profile | Level | Heads | FTE | Effect FTE
| 01.01.2015 |HR/SC |Rainer | HR Admin Nord | Leader | Senior | 1 | 1 | Replacement
| 01.01.2015 |HR/SC |Rainer | HR Admin Nord | Leader | Senior | 1 | 1 | Employment
| 01.01.2015 |HR/SC |Rainer | HR Admin Nord | Support| Student | 0,5 | 0,5 | Employment
| 15.01.2015 |HR/SC |Rainer | HR Admin Nord | Leader | Senior | 0 | 0 |
| 15.01.2015 |HR/SC |Rainer | HR Admin Nord | Leader | Senior | 0 | 0 |
| 15.01.2015 |HR/SC |Rainer | HR Admin Nord | Support| Student | 0 | 0 |
| 01.02.2015 |HR/SC |Rainer | HR Admin Nord | Leader | Senior | 0 | 0 |
| 01.02.2015 |HR/SC |Rainer | HR Admin Nord | Leader | Senior | 0 | 0 |
| 01.02.2015 |HR/SC |Rainer | HR Admin Nord | Support| Student | 0 | 0 |
| 01.02.2015 |HR/SC |Rainer | HR Admin Nord | Proj. M.| Junior | 1 | 1 | Employment
| 15.02.2015 |HR/SC |Rainer | HR Admin Nord | Leader | Senior | -1 | -1 | Layout
| 15.02.2015 |HR/SC |Rainer | HR Admin Nord | Leader | Senior | 0 | 0 |
| 15.02.2015 |HR/SC |Rainer | HR Admin Nord | Support| Student | 0 | 0 |
| 15.02.2015 |HR/SC |Rainer | HR Admin Nord | Proj. M.| Junior | 0 | 0 |
Big thanks!
As soon as we get it working I’ll be transferring the
$20 per PAYPAL:)