I have a workbook with 2 worksheets of data. Client data 1 and Client data 2. Both of these worksheets contain duplicate and exclussive information. I could reorder the colums and do a vlookup to complie the data, but i would still have seperate sheets. I would like all the data in one location. I would like to run a macro that combines both worksheets into 1. This would save me time as I will have to do this multiple times, with multiple reports. The trick is, i don't want to copy the duplicate data. Can I write language that will look at the headers, match them up and only copy once, while copying all the columns that are exclusive to each sheet. The other wrinkle is that the headers might not be the same. For example the client name header in "Client data 1" will read Client name, while it will read Client on "Client data 2". It also couldn't blindly copy the column, because the data might not line up row by row in each sheet. Am I looking to do the impossible? Any help would be appreciate.
<TBODY>
</TBODY><COLGROUP><COL><COL><COL><COL><COL span=5></COLGROUP>
Client Data 1</SPAN> | ||||||||
Client</SPAN> | Account Number</SPAN> | Job Location</SPAN> | Quote</SPAN> | Job ID</SPAN> | Division</SPAN> | |||
ABC Company</SPAN> | 1234567</SPAN> | The Gardens</SPAN> | $1 </SPAN> | 98765</SPAN> | 3</SPAN> | |||
ABC Company</SPAN> | 1234567</SPAN> | Highway</SPAN> | $5 </SPAN> | 56789</SPAN> | 7</SPAN> | |||
Client Data 2</SPAN> | ||||||||
Client Number</SPAN> | Client Name</SPAN> | Job Date</SPAN> | Est. time</SPAN> | Job Code</SPAN> | Job ID</SPAN> | |||
1234567</SPAN> | ABC Compnay</SPAN> | 4/1/2013</SPAN> | 4 months</SPAN> | 5</SPAN> | 56789</SPAN> | |||
1234567</SPAN> | ABC Compnay</SPAN> | 05/01/2013</SPAN> | 2 months</SPAN> | 1</SPAN> | 98765</SPAN> | |||
Merged Data (what I'm Looking to accomplish)</SPAN> | ||||||||
Client</SPAN> | Account Number</SPAN> | Job Location</SPAN> | Quote</SPAN> | Job ID</SPAN> | Division</SPAN> | Job Date</SPAN> | Est. Time</SPAN> | Job Code</SPAN> |
ABC Company</SPAN> | 1234567</SPAN> | The Gardens</SPAN> | $1 </SPAN> | 98765</SPAN> | 3</SPAN> | 05/01/2013</SPAN> | 2 months</SPAN> | 1</SPAN> |
ABC Company</SPAN> | 1234567</SPAN> | Highway</SPAN> | $5 </SPAN> | 56789</SPAN> | 7</SPAN> | 4/1/2013</SPAN> | 4 months</SPAN> | 5</SPAN> |
<TBODY>
</TBODY><COLGROUP><COL><COL><COL><COL><COL span=5></COLGROUP>