I have 100s of Excel files that contain a worksheet with 1000s of rows. Each row has 50+ columns. The columns in each Excel file are exactly the same. As an example, the columns are:
Date, Place, Item, ValueHeading1, Value1, ValueJeading2, Value2, ValueHeading3, Value3….etc.
My first problem is that I do not want a column for each ‘ValueHeading’ but I do want to label the top row of the following column with that ‘ValueHeading’ and then delete the previous column.
I can do this very easily manually, but I want to know whether there is a more efficient way to do it automatically.
Secondly, the rows are in chronological order (by seconds descending) but there are x amount of items per Excel file. The x varies from file to file but there is a static variable in each file that states the Number of Items (x).
Basically, I want to create x amount of new worksheets in each file that filter the rows in ‘Sheet1’ by ‘Item Name’. Once again, I can do this manually, but as I have 1000s of Excel files I am trying to find a way that can do this automatically.
I have attached a screenshot of a sample spreadsheet to give an indication of what I have.
I would be very grateful if anyone could suggest a way of resolving my problem. I am not too familiar with Macros, but if that is what is needed, I am prepared to learn. But I initially want to check whether a macro is the way forward as a friend has suggested I use MS Query instead, but I have no idea.
Many thanks,
John
Bookmarks