Automation of process to transpose & concatenate data from one spreadsheet to another

%3CLINGO-SUB%20id%3D%22lingo-sub-1388220%22%20slang%3D%22en-US%22%3EAutomation%20of%20process%20to%20transpose%20%26amp%3B%20concatenate%20data%20from%20one%20spreadsheet%20to%20another%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1388220%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20automate%20a%20transposing%20and%20concatenating%20process.%20I%20can%20do%20this%20manually%20but%20it%20is%20taking%20me%20hours.%26nbsp%3B%20If%20any%20one%20can%20help%20with%20a%20formula%2Fmacro%20(or%20whatever%20is%20appropriate)%20I%20would%20be%20most%20grateful.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20to%20get%20the%20info%20in%20the%20column%20A%20of%20spreadsheet%201%20into%20the%20format%20of%20column%20B%20in%20spreadsheet%202.%20I%20have%20attached%20samples%20of%20each%20for%20your%20reference.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20common%20data%20on%20both%20spreadsheets%20is%20the%20SKU%20in%20column%20A%20spreadsheet%202%20which%20can%20also%20be%20found%20in%20the%20column%20A%20in%20spreadsheet%201.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20that%20makes%20sense%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1388220%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1388655%22%20slang%3D%22en-US%22%3ERe%3A%20Automation%20of%20process%20to%20transpose%20%26amp%3B%20concatenate%20data%20from%20one%20spreadsheet%20to%20another%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1388655%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F667165%22%20target%3D%22_blank%22%3E%40barneys%3C%2FA%3E%26nbsp%3BSee%20if%20the%20attached%20solution%20works%20for%20you.%20It%20uses%20some%20of%20the%20new%20dynamic%20array%20functions%20(UNIQUE%2C%20TRANSPOSE%20and%20FILTER).%20I%20imported%20the%20CSV%20file%20first%2C%20then%20added%20two%20helper%20columns%20to%20create%20the%20SKU%20number%20and%20to%20determine%20where%20the%20next%20SKU%20starts.%20The%20third%20sheet%20brings%20it%20all%20together%2C%20and%20works%20as%20a%20one%20time%20solution.%20If%20you%20intend%20to%20do%20this%20on%20a%20regular%20basis%2C%20you%20may%20want%20to%20explore%20Power%20Query.%3C%2FP%3E%3CP%3EI%20hope%20you%20can%20use%20it.%20If%20not%2C%20kindly%20ignore%20this%20post.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1391758%22%20slang%3D%22en-US%22%3ERe%3A%20Automation%20of%20process%20to%20transpose%20%26amp%3B%20concatenate%20data%20from%20one%20spreadsheet%20to%20another%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1391758%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%26nbsp%3Bthank%20you%20for%20your%20solution.%20I%20am%20going%20to%20see%20if%20I%20can%20replicate%20now%20on%20some%20more%20data.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

I am trying to automate a transposing and concatenating process. I can do this manually but it is taking me hours.  If any one can help with a formula/macro (or whatever is appropriate) I would be most grateful.

 

I need to get the info in the column A of spreadsheet 1 into the format of column B in spreadsheet 2. I have attached samples of each for your reference.

 

The common data on both spreadsheets is the SKU in column A spreadsheet 2 which can also be found in the column A in spreadsheet 1.

 

Hope that makes sense

2 Replies

@barneys See if the attached solution works for you. It uses some of the new dynamic array functions (UNIQUE, TRANSPOSE and FILTER). I imported the CSV file first, then added two helper columns to create the SKU number and to determine where the next SKU starts. The third sheet brings it all together, and works as a one time solution. If you intend to do this on a regular basis, you may want to explore Power Query.

I hope you can use it. If not, kindly ignore this post.

Highlighted

@Riny_van_Eekelen thank you for your solution. I am going to see if I can replicate now on some more data.