Forum Discussion
Help updating and comparing priclist
Please post a sample file. We only need a few dozen rows, NOT your whole data set. Just enough data so you can explain what happens right now and what you would like to happen instead.
- May 08, 2019
Dmanic This is actually very far from "relatively easy". This will most likely require VBA code.
Conceptually, the code would
- open the original file (which, btw, is a CSV file, not a spreadsheet, are you aware of that?)
- open the update file
- loop through all rows in the update file and for each row
- find the Part number in the original file (in which column? There are two for part number in the original)
- if the part number is found, write the NET.PRICE into the (which ??) price column
- if the part number is not found, add the data from that row at the bottom of the original list.
- close the update file
- save and close the original file.
Writing that kind of code is totally possible, but it needs a bit of experience.