- Jan 26, 2019
I have a few excel which has 23 columns and another few with 7 columns with headers which I get daily with new data. I have another excel which is the master excel where I have all the data updated. My master excel has only 12 headers and columns. The headers are not the same on the master excel and the new excel I get daily. I have all the new files I get daily and my master excel in the same folder. I want a macro that will open all my new excel one by one automatically and I want a macro that can match the headers on the master excel and the new excels I get daily and copy all the data from the daily excel go to my master excel find the next available cell on the master excel and paste the data under the correct header. Data in My master excel is in a table but the daily excel is not in a table. Also on my master excel, the first column is a reference number which is a running number, so every time a data is pasted the number filled with a reference. I want a macro that I can do all this with a click of a button as this is something I do everyday. However, the number of files I get daily is not fixed. Sometimes I get five sometimes seven, sometimes two. The headers on the files I receive is fixed and the header on my master excel is also fixed but they don;t have the same headers.