Hi there,
I have a bit of a conundrum: multiple files (price lists) with an average of 15000 rows.
These price lists have in column A the item's ID, in column B the price and in column C the quantity for that particular price. Now, some items are duplicated from 2 to even 5 times, as prices for these items are qty based/scaled.
Problem is I have to have these files with scaled prices per column and not per rows.
WHat I have been trying to do (mostly with formulas, whithout success) is: Find the duplicates in column A, and If dupplicate found paste the range B:D on the same row of the first ID matching, as many times as matches found. I'll show you in the example below. This is the starting file
What I need to do (preferably VBA as there are files that have up to 25000 rows), is obtain this, please see what I did with items X8 and X 17:
code | price-1 | from qty | to qty |
X1 | 3,00 € | 1 | |
X2 | 2,00 € | 1 | |
X3 | 5,00 € | 1 | |
X4 | 3,00 € | 1 | |
X5 | 11,00 € | 1 | |
X6 | 6,00 € | 1 | |
X7 | 8,00 € | 1 | |
X8 | 4,00 € | 1 | |
X8 | 8,00 € | 10 | |
X8 | 6,00 € | 20 | |
X9 | 3,00 € | 1 | |
X10 | 2,00 € | 1 | |
X11 | 5,00 € | 1 | |
X12 | 3,00 € | 1 | |
X13 | 11,00 € | 1 | |
X14 | 6,00 € | 1 | |
X15 | 8,00 € | 1 | |
X16 | 4,00 € | 1 | |
X17 | 7,00 € | 10 | |
X17 | 6,00 € | 20 | |
X17 | 5,00 € | 30 |
code | price-1 | from qty | to qty | price-2 | from qty2 | to qty2 | price-3 | from qty3 |
X1 | 3,00 € | 1 | ||||||
X2 | 2,00 € | 1 | ||||||
X3 | 5,00 € | 1 | ||||||
X4 | 3,00 € | 1 | ||||||
X5 | 11,00 € | 1 | ||||||
X6 | 6,00 € | 1 | ||||||
X7 | 8,00 € | 1 | ||||||
X8 | 4,00 € | 1 | 8,00 € | 10 | 6,00 € | 20 | ||
X9 | 3,00 € | 1 | ||||||
X10 | 2,00 € | 1 | ||||||
X11 | 5,00 € | 1 | ||||||
X12 | 3,00 € | 1 | ||||||
X13 | 11,00 € | 1 | ||||||
X14 | 6,00 € | 1 | ||||||
X15 | 8,00 € | 1 | ||||||
X16 | 4,00 € | 1 | ||||||
X17 | 7,00 € | 10 | 6,00 € | 20 | 5,00 € | 30 |
I attach the file I have been working with. PLease ignore the modules I have in it, they are codes I found online and have been trying to workarround work arround those, as well as some formulas but I haven't been able to obtain what I needed.
Anyhow, thank you in advance for any suggestion or help.