Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50067

Cleaning Data Across Sheets

$
0
0
I am not too familiar with Macros, but I need to clean some data. I am not too sure what macros can do so I will explain two situations.

For starters I have two excel sheets that have in column a list of companies represented by seven numbers. Each excel sheet represents a different time period. Each company is represented by the same seven numbers across time. Not every company exists in ever period. The first excel sheet has 20 sheets (or time periods). The second excel sheet has 23 sheets (or time periods). I would like to delete any company that does not appear in each excel sheet. The numbers of columns change through each period.
Book1.xlsx

I have attached an example of what one looks like, sometimes data is missing, sometimes data might be the same for companies.

If I can figure out how to delete any company that does not appear every sheet (time period) in both excel documents I will not need help with the second question.

Second question, I have simplified the data where I include only a few variables (less than what I need) in each sheet. In every sheet the last column is AQ the first empty column is AR. The number of companies is different, so I would like to delete those that do not exist in each sheet. I have all 43 tabs in the second sheet.
I have attached another example Book2.xlsx.

Started another thread similar to this, but I did not state the information clearly. My current question is quite different.
http://www.excelforum.com/excel-prog...orksheets.html

Any help is greatly appreciated.

Viewing all articles
Browse latest Browse all 50067

Trending Articles