Forum Discussion
nekbv
Oct 21, 2020Copper Contributor
Change letter and numbers
Hello, I have about 22000 lines with SKU product numbers from the manufacturer. I want to sell their products with my own SKU numbers, but I want my SKU numbers to be based on their SKU number. Ho...
SergeiBaklan
Oct 21, 2020Diamond Contributor
As variant that could be done by Power Query - split Manufacturer SKU texts to lists, expand to rows, merge with mapping table, combine back to texts
Query is in attached.
- Riny_van_EekelenOct 21, 2020Platinum Contributor
SergeiBaklan I believe something goes wrong in the "Expanded CharMap1" step and subsequent grouping (Text.Combine). I seems to throw the order of characters around. For example, "TQC603" should be "TC6Q03".
- SergeiBaklanOct 21, 2020Diamond Contributor
You are right, thank you. Forgot to fix table in memory before expanding. Here is by adding the index, Table.Buffer() will work as well.
- nekbvOct 22, 2020Copper Contributor
SergeiBaklan Expression.Error: 5 arguments were passed to function which expects between 2 and 4.
Details:
Pattern=
Arguments=List