Hello,
I really need some help merging my data table.
I’ve already got 1 data table (dt_1) that looks like the following(6 rows *13 columns)
Name Jan Feb Mar Apr … Dec
B
C
A
E
D
I’ve also got 12 separate excel files in a folder, each file containing the following data in one month
(Example)
File Name: Jan
Name Car Bike Scooter
A 1 2 3
B 0 8 3
C 2 10 2
D 0 2 21
E 1 1 1
My final goal is to use my dt_1 to produce 3 excel files in 3 categories (Cars, Bike, Scooter), which would look like the following format.
File Name : Cars
Name Jan Feb Mar Apr … Dec
B 0 … … … … …
C 2 … … … … …
A 1 … … … … …
E 1 … … … … …
D 0 … … … … …
File Name : Bike
Name Jan Feb Mar Apr … Dec
B 8 … … … … …
C 10 … … … … …
A 2 … … … … …
E 1 … … … … …
D 2 … … … … …
File Name : Scooter
Name Jan Feb Mar Apr … Dec
B 3 … … … … …
C 2 … … … … …
A 3 … … … … …
E 1 … … … … …
D 21 … … … … …