Home

help with separating rows into columns

%3CLINGO-SUB%20id%3D%22lingo-sub-355337%22%20slang%3D%22en-US%22%3Ehelp%20with%20separating%20rows%20into%20columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-355337%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20can%20I%20separate%26nbsp%3Bdata%20that%20is%20in%20rows%20into%20different%20columns%3F%26nbsp%3BNote%20that%20in%20the%20picture%20you%20can%20see%20that%20some%20clients%20have%20more%20contacts%20than%20others.%20Any%20tips%3F%3C%2FP%3E%3CP%3ECorey%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F84066i41C29B9ED3BD616D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Screen%20Shot%202019-02-22%20at%209.24.17%20AM.png%22%20title%3D%22Screen%20Shot%202019-02-22%20at%209.24.17%20AM.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-355337%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%20on%20Mac%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-355343%22%20slang%3D%22en-US%22%3ERe%3A%20help%20with%20separating%20rows%20into%20columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-355343%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20use%20the%20Transpose%20feature.%3C%2FP%3E%3CP%3EPlease%20check%20out%20this%20%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2FTranspose-rotate-data-from-rows-to-columns-or-vice-versa-3419F2E3-BEAB-4318-AAE5-D0F862209744%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Elink%3C%2FA%3Eand%20%3CA%20href%3D%22https%3A%2F%2Fwww.excel-easy.com%2Fexamples%2Ftranspose.html%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ethis%3C%2FA%3Eto%20learn%20more%20about%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20that%20helps%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-843249%22%20slang%3D%22en-US%22%3ERe%3A%20help%20with%20separating%20rows%20into%20columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-843249%22%20slang%3D%22en-US%22%3EHi%2C%20sorry%20to%20restart%20an%20old%20thread%2C%20but%20I%20have%20a%20similar%20question%20but%20too%20many%20rows%20to%20use%20the%20copy%2C%20transpose%20method.%3CBR%20%2F%3E%3CBR%20%2F%3EIs%20there%20a%20way%20to%20create%20a%20transpose%20function%20to%20use%20on%20a%20column%20(~20%2C000%2B%20rows)%20that%20I%20need%20to%20transpose%20to%20rows%3F%3CBR%20%2F%3E%3CBR%20%2F%3EI've%20tried%20the%20offset%20command%20but%2C%20some%20of%20the%20datasets%20are%204%20rows%2C%20others%20are%207%20rows.%3CBR%20%2F%3E%3CBR%20%2F%3EAny%20ideas%3F%20Thanks%20in%20advance%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-844031%22%20slang%3D%22en-US%22%3ERe%3A%20help%20with%20separating%20rows%20into%20columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-844031%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F405650%22%20target%3D%22_blank%22%3E%40excel_geek%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20might%20be%20automated%20using%20VBA%20or%20Power%20Query!%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3EBut%20I%20need%20the%20workbook%20or%20a%20sample%20of%20it%20to%20look%20into%20that!%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-843335%22%20slang%3D%22en-US%22%3ERe%3A%20help%20with%20separating%20rows%20into%20columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-843335%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F289646%22%20target%3D%22_blank%22%3E%40ccorey05%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EThere%20are%20%3CSTRONG%3E%3CFONT%20color%3D%22%23FF0000%22%3EEight%3C%2FFONT%3Emethods%20to%20switch%20columns%20into%20rows%3C%2FSTRONG%3E.%20before%20picking%20up%20the%20technique%20that%20works%20best%20for%20you%20out%20of%20the%20%3CSTRONG%3EEIGHT%20methods%3C%2FSTRONG%3Eyou%20have%20to%20ask%20yourself%20some%20questions%3A%3C%2FP%3E%3COL%3E%3CLI%3EDo%20you%20want%20it%20to%20be%20dynamic%20or%20static%20(does%20not%20refresh%20when%20source%20data%20changes)%3C%2FLI%3E%3CLI%3EDo%20you%20have%20Office%20365%20Insider%20(you%20can%20then%20use%20the%20TRANSPOSE%20function%20without%20CTRL%2B%20SHIFT%20%2B%20ENTER%3C%2FLI%3E%3CLI%3EDo%20you%20like%20using%20Power%20Query%3F%20it's%20easy%20to%20refresh%3C%2FLI%3E%3CLI%3EDo%20you%20prefer%20classic%20functions%3F%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20going%20to%20show%20you%20the%20%3CSTRONG%3EEIGHT%20techniques%3C%2FSTRONG%3Eand%20it's%20up%20to%20you%20to%20select%20the%20one%20that%20works%20best%20for%20you.%20%3CFONT%20color%3D%22%233366FF%22%3E%3CSTRONG%3EI%20therefore%20created%20a%20video%20tutorial%20showing%20and%20comparing%20the%20eight%20methods.%3C%2FSTRONG%3E%20%3C%2FFONT%3EYou%20can%20also%20%3CSTRONG%3Edownload%20the%20sample%20file%20I%20used%20for%20my%20recording%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DtCTepTNxRqc%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DtCTepTNxRqc%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3EThe%20techniques%20I%20used%20are%3A%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%3COL%3E%3CLI%3EPaste%20Special%20%26gt%3B%26gt%3BTranspose%3C%2FLI%3E%3CLI%3EShortcuts%3C%2FLI%3E%3CLI%3ETranspose%20Function%20with%20CTRL%2BSHIFT%2BEnter%3C%2FLI%3E%3CLI%3ETranspose%20Dynamic%20Array%20Function%20(only%20Office%20365%20Insider)%3C%2FLI%3E%3CLI%3EIndex%2C%20Columns%20%26amp%3B%20Rows%20Functions%3C%2FLI%3E%3CLI%3ECHAR%20%26amp%3B%20INDIRECT%20functions%3C%2FLI%3E%3CLI%3EFind%20%26amp%3B%20Replace%20method%3C%2FLI%3E%3CLI%3E%3CSTRONG%3EPower%20Query%3C%2FSTRONG%3E(can%20be%20automatically%20Refreshed)%3C%2FLI%3E%3C%2FOL%3E%3CP%3ELet%20me%20know%20which%20technique%20you%20like%20most.%3C%2FP%3E%3CP%3EBest%20of%20luck%20with%20your%20project%3C%2FP%3E%3CP%3ENabil%20Mourad%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-844105%22%20slang%3D%22en-US%22%3ERe%3A%20help%20with%20separating%20rows%20into%20columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-844105%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F289646%22%20target%3D%22_blank%22%3E%40ccorey05%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20again%2C%3C%2FP%3E%3CP%3EIf%20you%20ask%20me%20for%20my%20personal%20preference%2C%20I%20would%20go%20with%20%3CSTRONG%3Emethod%20Five%3C%2FSTRONG%3E(Index%2C%20Columns%2C%20Rows%20Function)%20or%20%3CSTRONG%3EMethod%20Eight%3C%2FSTRONG%3E(Power%20Query)%3C%2FP%3E%3CP%3EHowever%20if%20you%20have%20Office%20365%20Insider%20then%20beyond%20a%20doubt%20Dynamic%20Arrays%20%3CSTRONG%3Emethod%20Four%3C%2FSTRONG%3Etakes%2030%20seconds%20to%20create.%3C%2FP%3E%3CP%3EWatch%20the%20different%20methods%20in%20my%20video%20tutorial%20here%20is%20the%20link%20another%20time%20%3CSTRONG%3E(%3CFONT%20color%3D%22%23FF0000%22%3EIt's%20a%20one%20stop%20shop%3C%2FFONT%3E)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DtCTepTNxRqc%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DtCTepTNxRqc%3C%2FA%3E%3C%2FP%3E%3CP%3EGood%20Luck%3C%2FP%3E%3CP%3ENabil%20Mourad%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-844108%22%20slang%3D%22en-US%22%3ERe%3A%20help%20with%20separating%20rows%20into%20columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-844108%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F35679%22%20target%3D%22_blank%22%3E%40Haytham%20Amairah%3C%2FA%3E%26nbsp%3B%2C%20Hi%20Haytham%2C%20thanks%2C%20see%20attached%20file.%20Not%20sure%20where%20or%20how%20to%20save%20a%20working%20copy%20of%20a%20spreadsheet%20in%20this%20community....%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F130734iE78A4B2C4F233AC1%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22excel%20transpose%20example.jpg%22%20title%3D%22excel%20transpose%20example.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-844131%22%20slang%3D%22en-US%22%3ERe%3A%20help%20with%20separating%20rows%20into%20columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-844131%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F405650%22%20target%3D%22_blank%22%3E%40excel_geek%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3EDoes%20each%20column%20always%20start%20with%20(Last%2C%20First)%20and%20end%20with%20the%20same%20email%3F%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20you%20can%20attach%20the%20file%20using%20this%20little%20button%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F130736i21D9A1A14EE287DD%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%222019-09-09_18-17-28.png%22%20title%3D%222019-09-09_18-17-28.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-844156%22%20slang%3D%22en-US%22%3ERe%3A%20help%20with%20separating%20rows%20into%20columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-844156%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F365248%22%20target%3D%22_blank%22%3E%40nabilmourad%3C%2FA%3E%26nbsp%3B-%20Hi%20Nabil%2C%20thanks%20for%20the%20link%20to%20your%20excellent%20videos.%20I'd%20like%20to%20use%20the%20index%20method%2C%20but%20the%20range%20of%20rows%20in%20the%20array%20varies%20from%204%20to%207.%26nbsp%3B%20dynamic%20arrays%20sounds%20useful%2C%20but%20I%20have%20Office%20365%20Personal%2C%20how%20do%20I%20add%20this%20method%3F%20In%20the%20meantime%2C%20I'll%20try%20power%20query%2C%20will%20reply%20later.%20Thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-844194%22%20slang%3D%22en-US%22%3ERe%3A%20help%20with%20separating%20rows%20into%20columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-844194%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F35679%22%20target%3D%22_blank%22%3E%40Haytham%20Amairah%3C%2FA%3E%26nbsp%3B-%20Hi%20Haytham%2C%20unfortunately%2C%20they%20don't%20all%26nbsp%3B%3CSPAN%3Estart%20with%20(Last%2C%20First)%20and%20end%20with%20the%20same%20email.%20Some%20of%20the%207%20rows%20datasets%20don't%20have%20first%2Flast%20name%2C%20but%20they%20have%207%20rows.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThe%20only%20consistency%20is%20that%20when%20the%204%20column%20dataset%20is%20used%20it's%20row%2Fcolumn%20has%20personal%20data%20comingled.%20And%2C%20the%20other%20datasets%20are%207%20row.%20Of%20these%20some%20have%20a%20first%2C%20last%20name%20others%20have%20a%20blank%20line.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI'm%20not%20sure%20how%20to%20separate%20the%204%20row%20datasets.%20I%20can%20identify%20the%20first%20row%20of%20that%204%20row%20sequence%20using%20this%20wild%20card%3A%20*MyCampaign%20ID*Preferred%20Phone*%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ESee%20attached%20example%20(thanks%26nbsp%3Bfor%20the%20hint%20%3A%3D)%20)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-844202%22%20slang%3D%22en-US%22%3ERe%3A%20help%20with%20separating%20rows%20into%20columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-844202%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F405650%22%20target%3D%22_blank%22%3E%40excel_geek%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehello%2C%3C%2FP%3E%3CP%3Eto%20answer%20your%20questions%3A%3C%2FP%3E%3CP%3EIf%20you%20have%20a%20variable%20number%20of%20Columns%20and%20Rows%20then%20using%20the%20Index%20function%20will%20require%20a%20little%20bit%20more%20doing%3A%3C%2FP%3E%3COL%3E%3CLI%3EYou%20need%20to%20create%20a%20Defined%20Name%20using%20an%20Offset%20Function%3C%2FLI%3E%3CLI%3EUse%20the%20Defined%20name%20you%20created%20for%20the%20Array%20argument%20of%20the%20INDEX%20function.%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20for%20Office%20Insider%2C%20so%20long%20as%20you%20already%20have%20Office%20365%2C%20then%20you%20can%20register%20for%20it%20at%20%3CSTRONG%3Einsider.office.com%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EGood%20Luck%3C%2FP%3E%3CP%3ENabil%20Mourad%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-844236%22%20slang%3D%22en-US%22%3ERe%3A%20help%20with%20separating%20rows%20into%20columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-844236%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F405650%22%20target%3D%22_blank%22%3E%40excel_geek%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20again%3C%2FP%3E%3CP%3EThe%20sample%20you%20attached%20requires%20a%20different%20solution%20other%20than%20what%20I%20explained%20in%20previous%20posts.%3C%2FP%3E%3CP%3EThis%20is%20called%20%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3EUnstacking%20records.%3C%2FSTRONG%3E%3C%2FFONT%3E%20I%20can%20solve%20it%20in%204%20different%20methods%3A%3C%2FP%3E%3COL%3E%3CLI%3EFormulas%20%26amp%3B%20Functions%3C%2FLI%3E%3CLI%3EVBA%20code%3C%2FLI%3E%3CLI%3EDynamic%20Arrays%3C%2FLI%3E%3CLI%3EPower%20Query%3C%2FLI%3E%3C%2FOL%3E%3CP%3EHere%20is%20a%20link%20to%20%3CSTRONG%3Emy%20video%20tutorial%3C%2FSTRONG%3Efor%20a%20similar%20situation%20where%20I%20explain%20the%20%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3E4%20methods%3C%2FSTRONG%3E%3C%2FFONT%3Ewith%20a%20sample%20file%20to%20download%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DLzEGcRWEmRw%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DLzEGcRWEmRw%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGood%20Luck%3C%2FP%3E%3CP%3ENabil%20Mourad%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-844254%22%20slang%3D%22en-US%22%3ERe%3A%20help%20with%20separating%20rows%20into%20columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-844254%22%20slang%3D%22en-US%22%3EThanks%20so%20much%20for%20the%20responses%2C%20I'll%20look%20into%20it%2C%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-847413%22%20slang%3D%22en-US%22%3ERe%3A%20help%20with%20separating%20rows%20into%20columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-847413%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F365248%22%20target%3D%22_blank%22%3E%40nabilmourad%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExcellent%20video%2C%20nicely%20done%20and%20thank%20you%20for%20pointing%20me%20there.%20However%2C%20my%20data%20is%20unevenly%20stacked.%20Do%20you%20have%20a%20series%20of%20video%20for%20that%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20index%20function%20requires%20a%20fixed%20length%20array%2C%20in%20your%20case%2010%20rows.%20%3D%20My%20case%20this%20is%20a%20variable%20of%20either%204%20or%207%20rows%2C%20depending%20on%20the%20data.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20your%20VBA%20script%20example%2C%20the%20same%20limitation%20of%2010%20rows%20in%20the%20range.%26nbsp%3B%26nbsp%3BIn%20my%20case%2C%20can%20I%20use%20a%20text%20search%20to%20change%20the%20fixrange%20variable%20from%26nbsp%3B7%20to%204%20rows%20in%20the%20range%3F%20If%20the%20row%20contains%26nbsp%3B%20*MyCampaign%20%3D%20ID*Preferred%20Phone%20%2C%20the%20variable%20is%204%20otherwise%20variable%20is%207.%26nbsp%3B%20This%20seems%20to%20affect%20the%20step%20attribute%20of%20the%20loopcounter%20too.%20Can%20the%20loop%20be%20set%20to%20a%20variable%20depending%20on%20the%20number%20of%20dynamic%20rows%20in%20the%20data%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20Power%20query%20example%2C%20same%20issue%20using%20Modulo%20to%20create%20the%20index%2C%20can%20this%20be%20a%20dynamic%20variable%20based%20on%20data%20in%20the%20stack%3F%20A%204%20or%207%20row%20data-set%20to%20transpose%20in%20a%20~15%2C000%20row%20file.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDynamic%20Arrays%20has%20the%20same%20fixed%20row%20limitation%2C%20I%20need%20a%20dynamically%20assigned%20row%20count%20based%20on%20data.%20In%20my%20case%20there%20are%202%20conditions%2C%20a%207%20%3D%20row%20dataset%2C%20and%20a%204%20row%20dataset%20from%20a%20single%20worksheet.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-853666%22%20slang%3D%22en-US%22%3ERe%3A%20help%20with%20separating%20rows%20into%20columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-853666%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F405650%22%20target%3D%22_blank%22%3E%40excel_geek%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EConclusion%3C%2FP%3E%3CP%3EThere%20should%20be%20any%20pattern%20in%20your%20data%20to%20use%20any%20of%20the%20solutions.%3C%2FP%3E%3CP%3EIf%20the%20data%20is%20totally%20random%20then%20(to%20my%20opinion)%20it%20can't%20be%20unstacked.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-854415%22%20slang%3D%22en-US%22%3ERe%3A%20help%20with%20separating%20rows%20into%20columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-854415%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F365248%22%20target%3D%22_blank%22%3E%40nabilmourad%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20VB%20solution%20was%20provided%20by%20another%20excel%20community%20member.%20Thanks%2C%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
ccorey05
Occasional Visitor

How can I separate data that is in rows into different columns? Note that in the picture you can see that some clients have more contacts than others. Any tips?

CoreyScreen Shot 2019-02-22 at 9.24.17 AM.png

15 Replies

Hi,

 

You can use the Transpose feature.

Please check out this link and this to learn more about it.

 

Hope that helps

Hi, sorry to restart an old thread, but I have a similar question but too many rows to use the copy, transpose method.

Is there a way to create a transpose function to use on a column (~20,000+ rows) that I need to transpose to rows?

I've tried the offset command but, some of the datasets are 4 rows, others are 7 rows.

Any ideas? Thanks in advance

@ccorey05 

Hello,

There are Eight methods to switch columns into rows. before picking up the technique that works best for you out of the EIGHT methods you have to ask yourself some questions:

  1. Do you want it to be dynamic or static (does not refresh when source data changes)
  2. Do you have Office 365 Insider (you can then use the TRANSPOSE function without CTRL+ SHIFT + ENTER
  3. Do you like using Power Query? it's easy to refresh
  4. Do you prefer classic functions?

 

I am going to show you the EIGHT techniques and it's up to you to select the one that works best for you. I therefore created a video tutorial showing and comparing the eight methods. You can also download the sample file I used for my recording

https://www.youtube.com/watch?v=tCTepTNxRqc

 

The techniques I used are:

  1. Paste Special >>Transpose
  2. Shortcuts
  3. Transpose Function with CTRL+SHIFT+Enter
  4. Transpose Dynamic Array Function (only Office 365 Insider)
  5. Index, Columns & Rows Functions
  6. CHAR & INDIRECT functions
  7. Find & Replace method
  8. Power Query (can be automatically Refreshed)

Let me know which technique you like most.

Best of luck with your project

Nabil Mourad

If you decide to rotate a list and have the current set of Row Labels, running across the Columns, don't ever think about re-typing your list. Although Transposing is the declared topic, however this Tutorial has a much greater benefit, as you'll learn how to combine different functions and ...

@excel_geek

 

Hi,

 

This might be automated using VBA or Power Query!

But I need the workbook or a sample of it to look into that!

@ccorey05 

Hi again,

If you ask me for my personal preference, I would go with method Five (Index, Columns, Rows Function) or Method Eight (Power Query)

However if you have Office 365 Insider then beyond a doubt Dynamic Arrays method Four takes 30 seconds to create.

Watch the different methods in my video tutorial here is the link another time (It's a one stop shop)

https://www.youtube.com/watch?v=tCTepTNxRqc

Good Luck

Nabil Mourad

If you decide to rotate a list and have the current set of Row Labels, running across the Columns, don't ever think about re-typing your list. Although Transposing is the declared topic, however this Tutorial has a much greater benefit, as you'll learn how to combine different functions and ...

@Haytham Amairah , Hi Haytham, thanks, see attached file. Not sure where or how to save a working copy of a spreadsheet in this community....excel transpose example.jpg

@excel_geek

 

 

Does each column always start with (Last, First) and end with the same email?

 

However, you can attach the file using this little button:

2019-09-09_18-17-28.png

@nabilmourad - Hi Nabil, thanks for the link to your excellent videos. I'd like to use the index method, but the range of rows in the array varies from 4 to 7.  dynamic arrays sounds useful, but I have Office 365 Personal, how do I add this method? In the meantime, I'll try power query, will reply later. Thanks

@Haytham Amairah - Hi Haytham, unfortunately, they don't all start with (Last, First) and end with the same email. Some of the 7 rows datasets don't have first/last name, but they have 7 rows.

 

The only consistency is that when the 4 column dataset is used it's row/column has personal data comingled. And, the other datasets are 7 row. Of these some have a first, last name others have a blank line.

 

I'm not sure how to separate the 4 row datasets. I can identify the first row of that 4 row sequence using this wild card: *MyCampaign ID*Preferred Phone*

 

See attached example (thanks for the hint :=) )

 

 

@excel_geek 

hello,

to answer your questions:

If you have a variable number of Columns and Rows then using the Index function will require a little bit more doing:

  1. You need to create a Defined Name using an Offset Function
  2. Use the Defined name you created for the Array argument of the INDEX function.

 

As for Office Insider, so long as you already have Office 365, then you can register for it at insider.office.com

Good Luck

Nabil Mourad

@excel_geek 

Hi again

The sample you attached requires a different solution other than what I explained in previous posts.

This is called Unstacking records. I can solve it in 4 different methods:

  1. Formulas & Functions
  2. VBA code
  3. Dynamic Arrays
  4. Power Query

Here is a link to my video tutorial for a similar situation where I explain the 4 methods with a sample file to download

https://www.youtube.com/watch?v=LzEGcRWEmRw

 

Good Luck

Nabil Mourad

In this Amazing tutorial I show you how to unstack records: What is Unstacking? We commonly have data in Excel where records are piled on top of each other in one column. unstacking means organizing your data in a list where each complete record is on a different row. By unstacking data, we are ...
Thanks so much for the responses, I'll look into it,

@nabilmourad 

Excellent video, nicely done and thank you for pointing me there. However, my data is unevenly stacked. Do you have a series of video for that?

 

The index function requires a fixed length array, in your case 10 rows. = My case this is a variable of either 4 or 7 rows, depending on the data.

 

In your VBA script example, the same limitation of 10 rows in the range.  In my case, can I use a text search to change the fixrange variable from 7 to 4 rows in the range? If the row contains  *MyCampaign = ID*Preferred Phone , the variable is 4 otherwise variable is 7.  This seems to affect the step attribute of the loopcounter too. Can the loop be set to a variable depending on the number of dynamic rows in the data?

 

In Power query example, same issue using Modulo to create the index, can this be a dynamic variable based on data in the stack? A 4 or 7 row data-set to transpose in a ~15,000 row file.

 

Dynamic Arrays has the same fixed row limitation, I need a dynamically assigned row count based on data. In my case there are 2 conditions, a 7 = row dataset, and a 4 row dataset from a single worksheet.

 

Thanks,

 

@excel_geek 

Conclusion

There should be any pattern in your data to use any of the solutions.

If the data is totally random then (to my opinion) it can't be unstacked.

@nabilmourad 

 

A VB solution was provided by another excel community member. Thanks,