stokeboy86
New Member
- Joined
- Dec 15, 2014
- Messages
- 6
Hi
I have been looking into automating a process to compare new price lists supplied by suppliers (this could be anything from a few hundred rows to several thousand) against an existing product list within an application.
I can create a workbook that has 2 x worksheets, "new product list" & "existing product list" and am looking for a macro that does 3 x things:
The "new product list" is always supplied in a specific format, there are 26 x columns (A-Z) and the unique identifier (product reference) is in the 3rd column (C)
The "existing product list" will always be in the same format, this will have 13 x columns (A-M) with the unique identifier (product reference) in the 2nd column (B)
What would be really cool, is for an additional layer of logic for the "new products" (unique product references supplied in the "new product list"). The new product could be a new size of a product that exists in the application, in these cases the application would have a single stock code (something separate to the product reference for use in the application) that all the different sizes use.
Product information is stored in columns 7,11,10,15 (G, K, J, O) - this is "Brand", "Colour", "Weight" & "Thickness". If the contents of these fields could be concatenated and used to compare against the products in the "existing product list". The corresponding values in the "existing product list" are stored in columns 7, 8, 3, 4 (G, H, C, D).
If there is a match, the value of column 12 (L) in the "existing product" list - stock code - should also be copied to the new worksheet as an additional column 27 (AA). This would indicate the new product should be added as a "variation" of an existing product used by the application (Hope that makes sense!)
I think I know what I want to do, but not sure how to execute as I am not familiar with VBA or macros! I am hoping somebody may be able to help?!
Many thanks in advance!
I have been looking into automating a process to compare new price lists supplied by suppliers (this could be anything from a few hundred rows to several thousand) against an existing product list within an application.
I can create a workbook that has 2 x worksheets, "new product list" & "existing product list" and am looking for a macro that does 3 x things:
- Check for matching product references in the 2 x worksheets, where there is a match, copy the row from the "new product list" that into a separate worksheet (this will be used to update existing prices)
- Where there is unique data in the "new product list", copy into a separate worksheet (this indicates a newly introduced product that requires importing into the product list used by the application)
- Where there is unique data in the "existing product list", copy into a separate worksheet (this indicates a discontinued stock that requires removing or flagging in the application)
The "new product list" is always supplied in a specific format, there are 26 x columns (A-Z) and the unique identifier (product reference) is in the 3rd column (C)
The "existing product list" will always be in the same format, this will have 13 x columns (A-M) with the unique identifier (product reference) in the 2nd column (B)
What would be really cool, is for an additional layer of logic for the "new products" (unique product references supplied in the "new product list"). The new product could be a new size of a product that exists in the application, in these cases the application would have a single stock code (something separate to the product reference for use in the application) that all the different sizes use.
Product information is stored in columns 7,11,10,15 (G, K, J, O) - this is "Brand", "Colour", "Weight" & "Thickness". If the contents of these fields could be concatenated and used to compare against the products in the "existing product list". The corresponding values in the "existing product list" are stored in columns 7, 8, 3, 4 (G, H, C, D).
If there is a match, the value of column 12 (L) in the "existing product" list - stock code - should also be copied to the new worksheet as an additional column 27 (AA). This would indicate the new product should be added as a "variation" of an existing product used by the application (Hope that makes sense!)
I think I know what I want to do, but not sure how to execute as I am not familiar with VBA or macros! I am hoping somebody may be able to help?!
Many thanks in advance!