SOLVED
Home

Text not sorting correctly

%3CLINGO-SUB%20id%3D%22lingo-sub-289356%22%20slang%3D%22en-US%22%3EText%20not%20sorting%20correctly%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289356%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20one%20spreadsheet%20with%202%20columns%20and%20555%20rows%20-%20I%20have%20made%20sure%20I%20have%20no%20leading%20spaces%2C%20no%20hidden%20rows%20or%20columns%2C%20no%20filters%20--%20I've%20attempted%20formatting%20as%20Text%20and%20as%20General%20--%20but%20it%20will%20sort%20correctly%20a%20portion%20(to%20row%20314)%20then%20a%20second%20section%20correctly%20sorted.%26nbsp%3B%20I've%20tried%20everything%20I've%20seen%20suggested%20--%20I've%20even%20cut%20the%20bottom%20section%20and%20inserted%20into%20the%20top%20section%20-%20resorted%20--%20and%20it%20still%20split%20the%20data%20into%20two%20separate%20groups.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-289356%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%20Sort%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-314410%22%20slang%3D%22en-US%22%3ERe%3A%20Text%20not%20sorting%20correctly%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-314410%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Bart%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHow%20Notepad%20helps%20with%20ignoring%20hyphens%20on%20sorting%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-314311%22%20slang%3D%22en-US%22%3ERe%3A%20Text%20not%20sorting%20correctly%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-314311%22%20slang%3D%22en-US%22%3EFirst%20paste%20your%20text%20to%20notepad.%3CBR%20%2F%3EThen%20(re)select%20the%20text%20in%20notepad%2C%20copy%20and%20paste%20it%20to%20Excel%20and%20try%20again.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313602%22%20slang%3D%22en-US%22%3ERe%3A%20Text%20not%20sorting%20correctly%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313602%22%20slang%3D%22en-US%22%3E%3CP%3EI%20guess%20that's%20by%20design%20from%20very%20beginning%20-%20Excel%20ignores%20apostrophes%20(')%20and%20hyphens%20(-)%20when%20sorts.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20workaround%20could%20be%20to%20replace%20all%20hyphens%20CHAR(45)%20with%20symbol%20CHAR(196)%2C%20don't%20know%20how%20it%20is%20called.%20For%20that%20select%20you%20range%2C%20Ctrl%2BH%2C%20minus%20in%20first%20bar%20and%20keeping%20pressed%20Alt%20type%20196%20on%20numpad%2C%20release%20Alt.%20It%20looks%20like%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20167px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F65846i3E35B26CC3995BB8%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ENext%20time%20please%20start%20new%20conversation%20with%20separate%20question%20-%20go%20to%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FExcel%2Fbd-p%2FExcelGeneral%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FExcel%2Fbd-p%2FExcelGeneral%3C%2FA%3E%20and%20click%20Start%20a%20New%20Conversation%20button%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313551%22%20slang%3D%22en-US%22%3ERe%3A%20Text%20not%20sorting%20correctly%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313551%22%20slang%3D%22en-US%22%3E%3CP%3EMaybe%20it's%20another%20Text%20sorting%20problem%2C%20but%20hey%20there%20is%20already%20a%20toppic%20here.%3C%2FP%3E%3CP%3EWhen%20I%20activate%20Datafilter%20I%20can%20choose%20for%20sorting%20on%20a%20column.%20(in%20this%20case%20all%20is%20text!)%3C%2FP%3E%3CP%3EStrangely%20enough%20text%20with%20-%20(minus-sign)%20within%2C%20sort%20first%20removes%20them%20to%20put%20them%20back%20after%20sorting%3F%3C%2FP%3E%3CBLOCKQUOTE%3E%3CP%3EG-BOS%3C%2FP%3E%3CP%3EGeluid%3C%2FP%3E%3CP%3EG-PLAN%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CP%3EI%20expected%3A%3C%2FP%3E%3CBLOCKQUOTE%3E%3CP%3EG-BOS%3C%2FP%3E%3CP%3EG-PLAN%3C%2FP%3E%3CP%3EGeluid%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CP%3EWhy%3F%20(I%20am%20using%20Office%20365%20%2F%202019)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289873%22%20slang%3D%22en-US%22%3ERe%3A%20Text%20not%20sorting%20correctly%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289873%22%20slang%3D%22en-US%22%3E%3CP%3ELee%2C%20you%20are%20welcome%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289841%22%20slang%3D%22en-US%22%3ERe%3A%20Text%20not%20sorting%20correctly%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289841%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20are%20my%20HERO!%26nbsp%3B%20Thanks%20so%20much%20-%20worked%20beautifully!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks!%3C%2FP%3E%3CP%3ELee%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289479%22%20slang%3D%22en-US%22%3ERe%3A%20Text%20not%20sorting%20correctly%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289479%22%20slang%3D%22en-US%22%3E%3CP%3EI%20played%20with%20the%20text%20in%20your%20post.%20Without%20Excel%20file%20not%20definitely%20sure%2C%20but%20most%20probably%20you%20have%20Unicode%20symbol%20Zero%20Width%20Space%26nbsp%3B%3CFONT%3E%3CA%20href%3D%22https%3A%2F%2Fwww.fileformat.info%2Finfo%2Funicode%2Fchar%2F200b%2Findex.htm%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.fileformat.info%2Finfo%2Funicode%2Fchar%2F200b%2Findex.htm%3C%2FA%3E%3C%2FFONT%3E%20at%20the%20front%20of%20some%20of%20your%20strings.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHow%20to%20fix%20without%20formulas%3C%2FP%3E%0A%3CP%3EYour%20source%20text%20sorted%20ascending%20looks%20like%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20235px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F60360iB0E33222B5C0085E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIn%20any%20empty%20cell%2C%20let%20say%20in%20D2%2C%20make%20reference%20on%20any%20cell%20with%20text%20in%20question%2C%20here%20is%20%3DA2.%20Next%20cell%20shows%20that%20string%20has%202%20symbol%20length%2C%20even%20if%20we%20see%20only%20one.%20In%20F2%20enter%20the%20formula%20%3DLEFT(D2%2C1)%20which%20extracts%20that%20Unicode%20symbol.%20Enter%20and%20Ctrl%2BC%20(copy)%20the%20cell.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20347px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F60364i940B6A478F322E0E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAfter%20that%20press%20Ctrl%2BF%20to%20open%20Find%20window%2C%20click%20on%20Find%20what%20bar%20and%20paste%20the%20symbol%20by%20Ctrl%2BV.%20After%20that%20click%20Replace%20tab%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20256px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F60366iDEA1B30A463A6E3E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Eand%20in%20it%20Replace%20All%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20254px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F60367iDD1BB3FAAFBAD4C2%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E(Please%20note%2C%20if%20you%20start%20with%20Ctrl%2BH%2C%20Find%20%26amp%3B%20Replace%20window%2C%20above%20doesn't%20work).%3C%2FP%3E%0A%3CP%3EThat%20removes%20Zero%20Width%20symbol%20in%20your%20sheet%20and%20in%20particular%20in%20D2%20you%20see%20%22normal%20text%22%20with%20length%20as%20expected%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20323px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F60369i4B1226BB460E41BF%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ERe-sort%20your%20table%20-%20it%20shall%20be%20in%20right%20order%20now.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20239px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F60370i035A9D1318BC757E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAgain%2C%20that's%20probable%20scenario%2C%20but%20I'm%20not%20sure%20without%20the%20Excel%20file.%3C%2FP%3E%0A%3CP%3EGood%20luck%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289414%22%20slang%3D%22en-US%22%3ERe%3A%20Text%20not%20sorting%20correctly%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289414%22%20slang%3D%22en-US%22%3E%3CP%3ESorry%20Sergei%20--%20I%20know%20you're%20trying%20to%20help%20me%20--%20but%20I%20don't%20have%20the%20time%20to%20copy%20the%20entire%20file%2C%20delete%20sensitive%20information%20on%20every%20row........my%20system%20will%20not%20allow%20me%20to%20upload%20or%20attach%20a%20file%20to%20something%20going%20out.%26nbsp%3B%20I'd%20be%20better%20off%20spending%20my%20time%20recreating%20the%20spreadsheet.%26nbsp%3B%20I%20appreciate%20your%20assistance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289403%22%20slang%3D%22en-US%22%3ERe%3A%20Text%20not%20sorting%20correctly%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289403%22%20slang%3D%22en-US%22%3E%3CP%3EI%20see.%26nbsp%3BHowever%2C%20you%20may%20copy%20your%20file%2C%20remove%20all%20sensitive%20information%20and%20keep%20only%20these%20few%20rows%20which%20were%20in%20your%20previous%20post.%20But%20as%20Excel%20file.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289400%22%20slang%3D%22en-US%22%3ERe%3A%20Text%20not%20sorting%20correctly%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289400%22%20slang%3D%22en-US%22%3E%3CP%3ESorry%20-%20due%20to%20security%20settings%20unable%20to%20do%20that.%26nbsp%3B%20Guess%20I'd%20better%20just%20start%20retyping%20the%20whole%20thing.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289399%22%20slang%3D%22en-US%22%3ERe%3A%20Text%20not%20sorting%20correctly%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289399%22%20slang%3D%22en-US%22%3E%3CP%3EThat%20won't%20help%20-%20could%20you%20please%20attach%20Excel%20file%20with%20few%20rows%20which%20not%20sorting%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289394%22%20slang%3D%22en-US%22%3ERe%3A%20Text%20not%20sorting%20correctly%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289394%22%20slang%3D%22en-US%22%3E%3CP%3EI%20tried%20it%20on%20a%20row%20that%20I%20had%20moved%20from%20the%20lower%20half%20to%20the%20upper%20half%20and%20then%20sorted%20--%20it%20moved%20it%20back%20to%20the%20lower%20half.%26nbsp%3B%20Sigh.%26nbsp%3B%20Here%20is%20a%20small%20sample%20-from%20the%20bottom%20of%20the%20top%20section%20and%20the%20top%20of%20the%20bottom%20section.....%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20post%20gave%20me%20an%20error%20when%20first%20posted%3A%26nbsp%3B%20%22Your%20post%20has%20been%20changed%20because%20invalid%20HTML%20was%20found.....%22%20--%20could%20this%20mean%20it%20has%20hidden%20code%3F%3C%2FP%3E%3CTABLE%3E%3CTBODY%3E%3CTR%3E%3CTD%3EWeighted%20Shortest%20Job%20First%20(Agile)%3C%2FTD%3E%3CTD%3EWeighted%20Shortest%20Job%20First%20(WSJF)%20is%20an%20economic%20model%20for%20prioritizing%20%E2%80%9Cjobs%E2%80%9D%20based%20on%20product%20development%20flow.%20WSJF%20is%20calculated%20as%20the%20cost%20of%20delay%20divided%20by%20job%20duration.%20In%20SAFe%2C%20%E2%80%9Cjobs%E2%80%9D%20are%20the%20epics%2C%20features%2C%20and%20capabilities%20that%20are%20developed%20by%20ARTs.%20There%20are%20three%20primary%20elements%20to%20the%20cost%20of%20delay%3A%201)%20user-business%20value%2C%202)%20time%20criticality%2C%20and%203)%20risk-reduction%20opportunity%20enablement%20value.%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EX%3C%2FTD%3E%3CTD%3EPresale%20-%20X%3DNew%20Business%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EY%3C%2FTD%3E%3CTD%3EOff-Y%20Renewal%3D%20Division%20Add%2FProduct%20Add%20on%20Existing%20Business%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EYTD%3C%2FTD%3E%3CTD%3EYear%20to%20Date%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EZCD%3C%2FTD%3E%3CTD%3EZero%20Critical%20Defects%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EZR%3C%2FTD%3E%3CTD%3ERenwal%20-%20ZR%3D%20Existing%20Business%20Renewal%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EAdj%3C%2FTD%3E%3CTD%3EAdjustment%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EAFIT%3C%2FTD%3E%3CTD%3EAfter%20Federal%20Income%20Tax%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EAgile%3C%2FTD%3E%3CTD%3EA%20development%20methodology%20that%20centers%20around%20the%20need%20to%20think%20fast%2C%20be%20flexible%2C%20innovate%2C%20and%20bring%20products%20and%20services%20to%20market%20quickly.%26nbsp%3B%26nbsp%3B%E2%80%93%20At%20its%20heart%2C%20Agile%20is%20about%20responsiveness%20to%20change%2C%20continuous%20learning%2C%20collaboration%2C%20and%20doing%20the%20most%20valuable%20thing%20first.%20Agile%20is%20a%20highly%20disciplined%2C%20iterative%20methodology%2C%20which%20divides%20the%20product%20being%20developed%20into%20small%20units%20of%20work.%20For%20teams%20developing%20software%2C%20it%20can%20help%20teams%20respond%20to%20the%20unpredictability%20of%20building%20software%20through%20incremental%2C%20iterative%20work%20cadences%20known%20as%20iterations.%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EAIMS%3C%2FTD%3E%3CTD%3EAccelerated%20Integrated%20Market%20Solutions.%26nbsp%3B%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EAM%3C%2FTD%3E%3CTD%3EAgile%20Modeling%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289392%22%20slang%3D%22en-US%22%3ERe%3A%20Text%20not%20sorting%20correctly%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289392%22%20slang%3D%22en-US%22%3E%3CP%3ENope%2C%20just%20one%20cell%20to%20test%20if%20it%26nbsp%3Bis%20really%20some%20invisible%20character%20here.%20If%20so%2C%20you%20may%20CLEAN()%20all%20cells%20into%20new%20column%20and%20sort%20on%20it.%20Or%20Ctrl%2BH%20such%20character%20if%20you%20find%20what%20is%20it.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPerhaps%20you%20may%20attach%20some%20sample%20file%20to%20test.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289387%22%20slang%3D%22en-US%22%3ERe%3A%20Text%20not%20sorting%20correctly%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289387%22%20slang%3D%22en-US%22%3E%3CP%3ENot%20sure%20I%20understand%20your%20instructions%20--%20unfamiliar%20with%20what%20LEN()%20is.%26nbsp%3B%20Are%20you%20saying%20I%20must%20do%20this%20in%20every%20cell%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289385%22%20slang%3D%22en-US%22%3ERe%3A%20Text%20not%20sorting%20correctly%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289385%22%20slang%3D%22en-US%22%3E%3CP%3ETake%20LEN()%20of%20any%20suspicious%20cell%2C%20if%20it's%20more%20than%20number%20of%20visible%20characters%20you%20have%20something%20extra.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289384%22%20slang%3D%22en-US%22%3ERe%3A%20Text%20not%20sorting%20correctly%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289384%22%20slang%3D%22en-US%22%3E%3CP%3EI%20inspected%20the%20doc%2C%20found%20no%20hidden%20rows%2C%20columns%20or%20codes.....%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289377%22%20slang%3D%22en-US%22%3ERe%3A%20Text%20not%20sorting%20correctly%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289377%22%20slang%3D%22en-US%22%3E%3CP%3EI%20may%20have%20copied%20part%20of%20it%20from%20another%20source.%26nbsp%3B%20How%20do%20I%20get%20rid%20of%20hidden%20codes%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289360%22%20slang%3D%22en-US%22%3ERe%3A%20Text%20not%20sorting%20correctly%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289360%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20data%20copy%2Fpasted%20from%20Web%20that%20could%20be%20some%20invisible%20symbols%20-%20is%20that%20the%20case%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
whooooop84
Occasional Contributor

I have one spreadsheet with 2 columns and 555 rows - I have made sure I have no leading spaces, no hidden rows or columns, no filters -- I've attempted formatting as Text and as General -- but it will sort correctly a portion (to row 314) then a second section correctly sorted.  I've tried everything I've seen suggested -- I've even cut the bottom section and inserted into the top section - resorted -- and it still split the data into two separate groups. 

18 Replies

If data copy/pasted from Web that could be some invisible symbols - is that the case?

I may have copied part of it from another source.  How do I get rid of hidden codes?

I inspected the doc, found no hidden rows, columns or codes.....

Take LEN() of any suspicious cell, if it's more than number of visible characters you have something extra.

Not sure I understand your instructions -- unfamiliar with what LEN() is.  Are you saying I must do this in every cell?

Nope, just one cell to test if it is really some invisible character here. If so, you may CLEAN() all cells into new column and sort on it. Or Ctrl+H such character if you find what is it.

 

Perhaps you may attach some sample file to test.

I tried it on a row that I had moved from the lower half to the upper half and then sorted -- it moved it back to the lower half.  Sigh.  Here is a small sample -from the bottom of the top section and the top of the bottom section.....

 

This post gave me an error when first posted:  "Your post has been changed because invalid HTML was found....." -- could this mean it has hidden code?

​Weighted Shortest Job First (Agile)​Weighted Shortest Job First (WSJF) is an economic model for prioritizing “jobs” based on product development flow. WSJF is calculated as the cost of delay divided by job duration. In SAFe, “jobs” are the epics, features, and capabilities that are developed by ARTs. There are three primary elements to the cost of delay: 1) user-business value, 2) time criticality, and 3) risk-reduction opportunity enablement value.
​X​Presale - X=New Business
​Y​Off-Y Renewal= Division Add/Product Add on Existing Business
​YTD​Year to Date
​ZCD​Zero Critical Defects
​ZR​Renwal - ZR= Existing Business Renewal
AdjAdjustment
AFITAfter Federal Income Tax
AgileA development methodology that centers around the need to think fast, be flexible, innovate, and bring products and services to market quickly.  – At its heart, Agile is about responsiveness to change, continuous learning, collaboration, and doing the most valuable thing first. Agile is a highly disciplined, iterative methodology, which divides the product being developed into small units of work. For teams developing software, it can help teams respond to the unpredictability of building software through incremental, iterative work cadences known as iterations. 
AIMSAccelerated Integrated Market Solutions.  
AMAgile Modeling

That won't help - could you please attach Excel file with few rows which not sorting

Sorry - due to security settings unable to do that.  Guess I'd better just start retyping the whole thing. 

I see. However, you may copy your file, remove all sensitive information and keep only these few rows which were in your previous post. But as Excel file.

Sorry Sergei -- I know you're trying to help me -- but I don't have the time to copy the entire file, delete sensitive information on every row........my system will not allow me to upload or attach a file to something going out.  I'd be better off spending my time recreating the spreadsheet.  I appreciate your assistance.

Solution

I played with the text in your post. Without Excel file not definitely sure, but most probably you have Unicode symbol Zero Width Space https://www.fileformat.info/info/unicode/char/200b/index.htm at the front of some of your strings.

 

How to fix without formulas

Your source text sorted ascending looks like

image.png

In any empty cell, let say in D2, make reference on any cell with text in question, here is =A2. Next cell shows that string has 2 symbol length, even if we see only one. In F2 enter the formula =LEFT(D2,1) which extracts that Unicode symbol. Enter and Ctrl+C (copy) the cell.

image.png

After that press Ctrl+F to open Find window, click on Find what bar and paste the symbol by Ctrl+V. After that click Replace tab

image.png

and in it Replace All

image.png

(Please note, if you start with Ctrl+H, Find & Replace window, above doesn't work).

That removes Zero Width symbol in your sheet and in particular in D2 you see "normal text" with length as expected

image.png

Re-sort your table - it shall be in right order now.

image.png

Again, that's probable scenario, but I'm not sure without the Excel file.

Good luck

You are my HERO!  Thanks so much - worked beautifully!

 

thanks!

Lee

Lee, you are welcome

Maybe it's another Text sorting problem, but hey there is already a toppic here.

When I activate Datafilter I can choose for sorting on a column. (in this case all is text!)

Strangely enough text with - (minus-sign) within, sort first removes them to put them back after sorting?

G-BOS

Geluid

G-PLAN

I expected:

G-BOS

G-PLAN

Geluid

Why? (I am using Office 365 / 2019)

I guess that's by design from very beginning - Excel ignores apostrophes (') and hyphens (-) when sorts.

 

The workaround could be to replace all hyphens CHAR(45) with symbol CHAR(196), don't know how it is called. For that select you range, Ctrl+H, minus in first bar and keeping pressed Alt type 196 on numpad, release Alt. It looks like

image.png

Next time please start new conversation with separate question - go to https://techcommunity.microsoft.com/t5/Excel/bd-p/ExcelGeneral and click Start a New Conversation button

First paste your text to notepad.
Then (re)select the text in notepad, copy and paste it to Excel and try again.

Hi Bart,

 

How Notepad helps with ignoring hyphens on sorting?

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
16 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
11 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies