Hi folks,
I'm very inexperienced in writing macros and using Excel in general and am quite frustrated with trying to accomplish what seems like it should be relatively simple.
Here is the situation. I have two spreadsheets in one workbook (Excel 2010) which I want to compare and modify with a macro. Both spreadsheets are product lists for an ecommerce site - Sheet1 is a database dump of all fields and Sheet2 is a human-made excel file that has additional data for a subset of the things in Sheet1.
Basically, Sheet1 is a full list of about 3000 products and all of their information and details. Sheet2 is a list of about 600 of the products listed in Sheet1, and only has specific details like product description and category (and not the other few dozen database fields/columns that are in Sheet1. I need to update a specific column in the master product list (Sheet1) with the data in a specific column from the subset (Sheet2) for all matches (Sheet1 column A is a unique identifier that is found also in Sheet2 Column B). In real terms, sheet2 has updated product descriptions for 600 of the products in sheet1 and I want to overwrite/update them but not disturb anything else. That way I will update the product descriptions for the 600 products in Sheet1 that are found in Sheet2, and I can reimport the full 3000 product database back into the ecommerce platform complete with the 600 updated descriptions.
The logic is as follows, for the entirety of SHeet1:
When Sheet1 Column A is equal to Sheet2 Column B (these are the unique product identifiers / SKUs) then:
Take value of Sheet2 Column F (product description) and copy it to Sheet1 Column P (product description), overwriting anything that was already in Sheet1 Column P (but ONLY for rows where Sheet1 Column A = Sheet2 Column B, otherwise Sheet1 Column P should remain unchanged).
I hope this is relatively clear. I have been struggling with this all day and I would really appreciate one of you VBA gurus' help! Thanks so much!
Bookmarks