Home

sorting date column oldest to newest

%3CLINGO-SUB%20id%3D%22lingo-sub-133584%22%20slang%3D%22en-US%22%3Esorting%20date%20column%20oldest%20to%20newest%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-133584%22%20slang%3D%22en-US%22%3E%3CP%3EI%20imported%20a%20csv%20file%20of%20my%20connections%20from%20linkedin%20and%20I%20want%20to%20sort%20them%20by%20the%20date%20we%20connected.%3C%2FP%3E%0A%3CP%3EEven%20though%20I%20mark%20the%20whole%20column%20(F)%20to%20be%20a%20date%20column%2C%20so%20they%20become%20date%20cells%20(aligned%20to%20the%20right%20and%20sort-able%20newest-to-old)%20%3CU%3Esome%20don't%20and%20remain%20aligned%20to%20the%20left%20and%20sort%20is%20only%20a-z%2C%3C%2FU%3E%3CBR%20%2F%3E%3CBR%20%2F%3EAny%20help%20would%20be%20much%20appreciated%2C%20I've%20been%20trying%20for%20days!!!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-133584%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-134628%22%20slang%3D%22en-US%22%3ERe%3A%20sorting%20date%20column%20oldest%20to%20newest%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-134628%22%20slang%3D%22en-US%22%3E%3CP%3EText%20to%20columns%20on%20the%20Data%20tab%20usually%20fixes%20that%2C%20just%20select%20date.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAlso%2C%20if%20you've%20taken%20data%20out%20of%20MS%20Project.%20The%20date%20name%20%22Tue%22%20%22Wed%22%20etc%20is%20imported.%20It%20will%20fix%20it%20to%20actual%20dates%20by%20doing%20a%20find%20%7C%20replace%20%22%3F%3F%3F%20%22%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-134610%22%20slang%3D%22en-US%22%3ERe%3A%20sorting%20date%20column%20oldest%20to%20newest%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-134610%22%20slang%3D%22en-US%22%3E%3CP%3EYEY!!!!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20got%20it...%20THANK%20YOU%20SO%20MUCH%20Haytham.%3C%2FP%3E%0A%3CP%3EFor%20all%20your%20help%20and%20patience.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20only%20thing%20I%20was%20doing%20wrong%20was%20selecting%20the%20D%2FM%2FY%20option%20instead%20of%20M%2FD%2FY%20to%20match%20the%20rest%20of%20the%20sheet.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt's%20now%20working%20and%20I'm%20able%20to%20sort%20newest%20to%20oldest%20etc.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHooray!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-134389%22%20slang%3D%22en-US%22%3ERe%3A%20sorting%20date%20column%20oldest%20to%20newest%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-134389%22%20slang%3D%22en-US%22%3E%3CP%3EHighlight%20them%20and%20apply%20these%20steps%2C%20step%20by%20step%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%201%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EGo%20to%3CSTRONG%3E%20Data%20%26gt%3B%26gt%3B%20Data%20Tools%20%26gt%3B%26gt%3B%20Text%20to%20Columns.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%202%3CBR%20%2F%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EIn%20Text%20to%20Columns%20window%20click%20%3CSTRONG%3ENext%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%203%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22%22%3EClear%20the%20check%20mark%20from%20the%20below%20option%20%3CSTRONG%3E(You%20may%20find%20it%20already%20cleared)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22%22%3EThen%20click%20%3CSTRONG%3ENext%3C%2FSTRONG%3E.%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20521px%3B%22%3E%3CSPAN%20class%3D%22lia-message-image-wrapper%22%3E%3CIMG%20class%3D%22lia-media-image%22%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F25127iC5C07B6538071490%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Text%20to%20Columns.png%22%20title%3D%22Text%20to%20Columns.png%22%20border%3D%220%22%20%2F%3E%20%3CI%20class%3D%22lia-fa%20lia-fa-search-plus%20lia-media-lightbox-trigger%22%3E%3C%2FI%3E%20%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%204%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ESelect%20%3CSTRONG%3EDate%3C%2FSTRONG%3E%20from%20the%20%3CSTRONG%3EColumn%20data%20format%3C%2FSTRONG%3E%20group%20box%2C%20and%20select%20the%20date%20format%20of%20text%20dates%20that%20you%20%3CSPAN%20class%3D%22%22%3E%20have%20previously%20highlighted.%3C%2FSPAN%3E%2C%20%3CSPAN%20class%3D%22short_text%22%3E%3CSPAN%20class%3D%22%22%3EIf%20its%20format%20is%20US%20format%20%3CSTRONG%3E(MDY)%2C%20%3C%2FSTRONG%3Eselect%20it%20and%20hit%3CSTRONG%3E%20Finish%3C%2FSTRONG%3E%20as%20shown%20in%20the%20below%20screenshot%3A%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22short_text%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-message-image-wrapper%22%3E%3CIMG%20class%3D%22lia-media-image%22%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F25072i7C31E64D941187E0%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Text%20Dates%202.png%22%20title%3D%22Text%20Dates%202.png%22%20border%3D%220%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-134361%22%20slang%3D%22en-US%22%3ERe%3A%20sorting%20date%20column%20oldest%20to%20newest%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-134361%22%20slang%3D%22en-US%22%3E%3CP%3EDone!%3CBR%20%2F%3EIt%20worked%20but%20the%20cells%20are%20still%20text%20and%20not%20date%20format%3CBR%20%2F%3Eso%20I%20can't%20sort%20them%20new%20--%26gt%3B%20old...%3C%2FP%3E%0A%3CP%3EAny%20ideas%3F%3C%2FP%3E%0A%3CP%3EThanks%2C%3C%2FP%3E%0A%3CP%3ECelia%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20524px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F25141i857981B1605F3320%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22sample%20CSV2.png%22%20title%3D%22sample%20CSV2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-134229%22%20slang%3D%22en-US%22%3ERe%3A%20sorting%20date%20column%20oldest%20to%20newest%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-134229%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22%22%3EThis%20little%20option%20is%20the%20cause%20of%20this%20problem%2C%20I%20forgot%20to%20tell%20you%20about%20it%3C%2FSPAN%3E%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20521px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F25127iC5C07B6538071490%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Text%20to%20Columns.png%22%20title%3D%22Text%20to%20Columns.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EYou%20should%20have%20cleared%20this%20check%20box!%3C%2FP%3E%0A%3CP%3EIf%20you%20can%20undo%20the%20process%2C%20undo%20it%2C%20and%20take%20into%20account%20to%20clear%20this%20option.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20can't%2C%20follow%20this%20workaround%3A%3C%2FP%3E%0A%3CP%3ENext%20to%20the%20first%20cell%20contains%20%3CSTRONG%3E2017%20%3C%2FSTRONG%3Euse%20this%20function%20as%20shown%20in%20the%20below%20screenshot%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CSTRONG%3E%3DDATE(YEAR%2CMONTH%2CDAY)%3C%2FSTRONG%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20498px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F25128i304B9F8AAB5D8492%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22DATE%20Function.png%22%20title%3D%22DATE%20Function.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThen%20copy%20it%20down%20using%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2FFill-a-formula-down-into-adjacent-cells-041edfe2-05bc-40e6-b933-ef48c3f308c6%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Efill%20handle%3C%2FA%3E%20to%20get%20the%20same%20result%20in%20the%20above%20screenshot.%3C%2FP%3E%0A%3CP%3EAfter%20that%2C%20highlight%20the%20range%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2FPaste-values-not-formulas-12687B4D-C79F-4137-B0CC-947C229C55B9%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ecopy%20it%20and%20paste%20it%20as%20values%20only%20to%20get%20rid%20of%20the%20formulas.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22%22%3EThen%20delete%20the%20previously%20separated%20values%20on%20multiple%20columns%2C%20and%20move%20the%20dates%20to%20the%20right%20place.%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22%22%3EHope%20that%20makes%20sense.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-134106%22%20slang%3D%22en-US%22%3ERe%3A%20sorting%20date%20column%20oldest%20to%20newest%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-134106%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Haytham!%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20is%20what%20I%20got%2C%20close%20but%20not%20100%25%20-%20I%20still%20need%20to%20clean%20it%20up...%3C%2FP%3E%0A%3CP%3Eany%20suggestions%20how%20to%20take%20it%20from%20here%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20really%20appreciate%20your%20help%20-%20thanks%20again!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20561px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F25106i9EDF41FF8472411F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22sample%20CSV%20dates.png%22%20title%3D%22sample%20CSV%20dates.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-133779%22%20slang%3D%22en-US%22%3ERe%3A%20sorting%20date%20column%20oldest%20to%20newest%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-133779%22%20slang%3D%22en-US%22%3E%3CP%3E1904%20date%20system%20option%20isn't%20related!%3C%2FP%3E%0A%3CP%3EGo%20back%20to%20advanced%20options%20and%20uncheck%20its%20checkbox!%3C%2FP%3E%0A%3CP%3ELocal%20date%20settings%20are%20found%20in%20%3CSTRONG%3EControl%20Panel%20%26gt%3B%26gt%3B%20Region%20and%20Language%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3CP%3EBut%20I%20don't%20recommend%20you%20to%20change%20them!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20solve%20the%20problem%20follow%20these%20steps%3A%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%201%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ESort%20the%20column%20that%20contains%20the%20dates%20from%20oldest%20to%20newest%20in%20order%20to%20move%20the%20text%20dates%20to%20the%20bottom.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%202%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EHighlight%20the%20text%20dates%20as%20shown%20in%20the%20below%20screenshot%2C%20and%20keep%20them%20highlighted.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20422px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F25071i8FDC13CDCB854402%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Text%20Dates.png%22%20title%3D%22Text%20Dates.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%203%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EGo%20to%3CSTRONG%3E%20Data%20%26gt%3B%26gt%3B%20Data%20Tools%20%26gt%3B%26gt%3B%20Text%20to%20Columns.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%204%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EIn%20Text%20to%20Columns%20window%20click%20%3CSTRONG%3ENext%3C%2FSTRONG%3E%20twice.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%205%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ESelect%20%3CSTRONG%3EDate%3C%2FSTRONG%3E%20from%20the%20%3CSTRONG%3EColumn%20data%20format%3C%2FSTRONG%3E%20group%20box%2C%20and%20select%20the%20date%20format%20of%20text%20dates%20that%20you%20%3CSPAN%20class%3D%22%22%3E%20have%20previously%20highlighted.%3C%2FSPAN%3E%2C%20%3CSPAN%20class%3D%22short_text%22%3E%3CSPAN%20class%3D%22%22%3EIf%20its%20format%20is%20US%20format%20%3CSTRONG%3E(MDY)%2C%20%3C%2FSTRONG%3Eselect%20it%20and%20hit%3CSTRONG%3E%20Finish%3C%2FSTRONG%3E%20as%20shown%20in%20the%20below%20screenshot%3A%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22short_text%22%3E%3CSPAN%20class%3D%22%22%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%2F25072i7C31E64D941187E0%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Text%20Dates%202.png%22%20title%3D%22Text%20Dates%202.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-133655%22%20slang%3D%22en-US%22%3ERe%3A%20sorting%20date%20column%20oldest%20to%20newest%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-133655%22%20slang%3D%22en-US%22%3E%3CP%3EOMG!%20this%20makes%20so%20much%20sense!%20thank%20you.%3C%2FP%3E%0A%3CP%3EI%20tried%20changing%20my%20date%20local%20and%20all%20I%20could%20find%20was%3CBR%20%2F%3Ein%20The%20Advanced%20options%2C%20to%20tick%20the%20%22Use%201904%20date%20system%22%20-%20that%20didn't%20help.%3C%2FP%3E%0A%3CP%3EMy%20local%20date%20is%3A%20dd%2Fmm%2Fyyyy%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-133642%22%20slang%3D%22en-US%22%3ERe%3A%20sorting%20date%20column%20oldest%20to%20newest%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-133642%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22%22%3EWhen%20I%20opened%20the%20file%20on%20my%20device%20I%20didn't%20find%20any%20problem%20in%20the%20dates!%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22%22%3EBecause%20these%20dates%20are%20%3CSPAN%20class%3D%22short_text%22%3Ecompatible%20with%20my%20local%20date%20format%20which%20is%3A%20%3CSTRONG%3EM%2Fd%2Fyyyy%3C%2FSTRONG%3E.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22short_text%22%3EFYI%3A%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22%22%3EDates%20in%20the%20Excel%20file%20must%20be%20compatible%20with%20the%20date%20format%20in%20the%20operating%20system%2C%20if%20the%20original%20format%20of%20the%20dates%20is%20different%20from%20the%20local%20date%20format%2C%20problems%20with%20dates%20will%20appear%2C%20they%20may%20be%20treated%20as%20text%2C%20or%20they%20may%20remain%20formatted%20as%20dates%2C%20but%20not%20as%20you%20think%20it.%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22%22%3EExamples%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22%22%3ELocal%20Date%20is%3A%20(%3CSPAN%20class%3D%22short_text%22%3EM%2Fd%2Fyyyy)%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22%22%3EExcel%20Date%20is%3A%2015%2F12%2F2017%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22%22%3EThis%20date%20will%20be%20treated%20as%20text%20because%20there%20is%20no%20month%2015!%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22%22%3ELocal%20Date%20is%3A%20(%3CSPAN%20class%3D%22short_text%22%3EM%2Fd%2Fyyyy)%3C%2FSPAN%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22%22%3EExcel%20Date%20is%3A%201%2F12%2F2017%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22%22%3EThis%20date%20will%20still%20formatted%20as%20Date%20in%20Excel%2C%20but%20not%20the%20date%20you%20may%20want.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22%22%3EYou%20may%20think%20it%201%2FDec%2F2017%2C%20but%20it%20actually%2012%2FJan%2F2017%20as%20the%20local%20date%20format!%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22%22%3EPlease%20take%20this%20information%20into%20account.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22%22%3EYou%20have%20to%20make%20the%20dates%20in%20your%20Excel%20compatible%20with%20your%20local%20date%20format%2C%20so%20please%20provide%20me%20with%20your%20local%20date%20format%20is%20it%20(%3CSPAN%20class%3D%22short_text%22%3EM%2Fd%2Fyyyy)%2C%20(d%2FM%2Fyyyy)%2C%20or%20something%20else%2C%20to%20provide%20you%20with%20the%20appropriate%20solution!%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-133599%22%20slang%3D%22en-US%22%3ERe%3A%20sorting%20date%20column%20oldest%20to%20newest%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-133599%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Lewin%2C%20but%20I%20don't%20understand...%3CBR%20%2F%3ECan%20you%20be%20very%20specific%3F%3C%2FP%3E%0A%3CP%3EI'm%20a%20novice%20user%20and%20don't%20know%20Excel%20well%20at%20all.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-133598%22%20slang%3D%22en-US%22%3ERe%3A%20sorting%20date%20column%20oldest%20to%20newest%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-133598%22%20slang%3D%22en-US%22%3E%3CP%3ECelia%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Euse%20%22Get%20and%20transform%22%20(aka%20Power%20Query)%20to%20connect%20to%20the%20csv-file%20and%20this%20code%20to%20convert%20the%20date%20column.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Elet%0A%20%20%20%20Source%20%3D%20Csv.Document(File.Contents(%22D%3A%5CSample%20Barak_TL.csv%22)%2C%5BDelimiter%3D%22%2C%22%2C%20Columns%3D3%2C%20Encoding%3D1252%2C%20QuoteStyle%3DQuoteStyle.Csv%5D)%2C%0A%20%20%20%20%23%22Promoted%20Headers%22%20%3D%20Table.PromoteHeaders(Source%2C%20%5BPromoteAllScalars%3Dtrue%5D)%2C%0A%20%20%20%20%23%22Changed%20Type%20with%20Locale%22%20%3D%20Table.TransformColumnTypes(%23%22Promoted%20Headers%22%2C%20%7B%7B%22Connected%22%2C%20type%20date%7D%7D%2C%20%22en-US%22)%0Ain%0A%20%20%20%20%23%22Changed%20Type%20with%20Locale%22%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-133595%22%20slang%3D%22en-US%22%3ERe%3A%20sorting%20date%20column%20oldest%20to%20newest%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-133595%22%20slang%3D%22en-US%22%3E%3CP%3EHere%20is%20a%20sample%20-%20I%20deleted%20a%20few%20name%20and%20email%20columns.%3C%2FP%3E%0A%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-133591%22%20slang%3D%22en-US%22%3ERe%3A%20sorting%20date%20column%20oldest%20to%20newest%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-133591%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20problem%20is%20common!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThese%20dates%20that%20you%20think%20them%20are%20dates%20are%20not%20dates!%3C%2FP%3E%0A%3CP%3EThey%20are%20texts!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20provide%20us%20with%20a%20sample%20of%20these%20text%20dates%2C%20to%20figure%20out%20how%20to%20parse%20them!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Celia Calo
Occasional Contributor

I imported a csv file of my connections from linkedin and I want to sort them by the date we connected.

Even though I mark the whole column (F) to be a date column, so they become date cells (aligned to the right and sort-able newest-to-old) some don't and remain aligned to the left and sort is only a-z,

Any help would be much appreciated, I've been trying for days!!!

14 Replies

This problem is common!

 

These dates that you think them are dates are not dates!

They are texts!

 

Please provide us with a sample of these text dates, to figure out how to parse them!

Here is a sample - I deleted a few name and email columns.

Thanks!

Celia,

 

use "Get and transform" (aka Power Query) to connect to the csv-file and this code to convert the date column.

 

let
    Source = Csv.Document(File.Contents("D:\Sample Barak_TL.csv"),[Delimiter=",", Columns=3, Encoding=1252, QuoteStyle=QuoteStyle.Csv]),
    #"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),
    #"Changed Type with Locale" = Table.TransformColumnTypes(#"Promoted Headers", {{"Connected", type date}}, "en-US")
in
    #"Changed Type with Locale"

 

 

Thanks Lewin, but I don't understand...
Can you be very specific?

I'm a novice user and don't know Excel well at all.

 

Thanks!

 

When I opened the file on my device I didn't find any problem in the dates!

Because these dates are compatible with my local date format which is: M/d/yyyy.

 

FYI:

Dates in the Excel file must be compatible with the date format in the operating system, if the original format of the dates is different from the local date format, problems with dates will appear, they may be treated as text, or they may remain formatted as dates, but not as you think it.

 

Examples:

Local Date is: (M/d/yyyy)

Excel Date is: 15/12/2017

This date will be treated as text because there is no month 15!

 

Local Date is: (M/d/yyyy)

Excel Date is: 1/12/2017

This date will still formatted as Date in Excel, but not the date you may want.

You may think it 1/Dec/2017, but it actually 12/Jan/2017 as the local date format!

 

Please take this information into account.

 

You have to make the dates in your Excel compatible with your local date format, so please provide me with your local date format is it (M/d/yyyy), (d/M/yyyy), or something else, to provide you with the appropriate solution!

OMG! this makes so much sense! thank you.

I tried changing my date local and all I could find was
in The Advanced options, to tick the "Use 1904 date system" - that didn't help.

My local date is: dd/mm/yyyy

1904 date system option isn't related!

Go back to advanced options and uncheck its checkbox!

Local date settings are found in Control Panel >> Region and Language.

But I don't recommend you to change them!

 

To solve the problem follow these steps:

Step 1

Sort the column that contains the dates from oldest to newest in order to move the text dates to the bottom.

 

Step 2

Highlight the text dates as shown in the below screenshot, and keep them highlighted.

 

Text Dates.png

 

Step 3

Go to Data >> Data Tools >> Text to Columns.

 

Step 4

In Text to Columns window click Next twice.

 

Step 5

Select Date from the Column data format group box, and select the date format of text dates that you have previously highlighted., If its format is US format (MDY), select it and hit Finish as shown in the below screenshot:

 

Text Dates 2.png

Thanks Haytham!

This is what I got, close but not 100% - I still need to clean it up...

any suggestions how to take it from here?

 

I really appreciate your help - thanks again!

 

sample CSV dates.png

This little option is the cause of this problem, I forgot to tell you about it:

Text to Columns.png


You should have cleared this check box!

If you can undo the process, undo it, and take into account to clear this option.

 

If you can't, follow this workaround:

Next to the first cell contains 2017 use this function as shown in the below screenshot:

 

=DATE(YEAR,MONTH,DAY)

DATE Function.png

 

 

Then copy it down using the fill handle to get the same result in the above screenshot.

After that, highlight the range, copy it and paste it as values only to get rid of the formulas.

Then delete the previously separated values on multiple columns, and move the dates to the right place.

 

Hope that makes sense.

 

Done!
It worked but the cells are still text and not date format
so I can't sort them new --> old...

Any ideas?

Thanks,

Celia

sample CSV2.png

Highlight them and apply these steps, step by step:

 

 

Step 1

Go to Data >> Data Tools >> Text to Columns.

 

Step 2

In Text to Columns window click Next.

 

Step 3

Clear the check mark from the below option (You may find it already cleared)

Then click Next.

Text to Columns.png

 

Step 4

Select Date from the Column data format group box, and select the date format of text dates that you have previously highlighted., If its format is US format (MDY), select it and hit Finish as shown in the below screenshot:

 

Text Dates 2.png

YEY!!!!

 

I got it... THANK YOU SO MUCH Haytham.

For all your help and patience.

 

The only thing I was doing wrong was selecting the D/M/Y option instead of M/D/Y to match the rest of the sheet.

 

It's now working and I'm able to sort newest to oldest etc. 

Hooray!

Text to columns on the Data tab usually fixes that, just select date.

 

Also, if you've taken data out of MS Project. The date name "Tue" "Wed" etc is imported. It will fix it to actual dates by doing a find | replace "??? "

This really worked for me. Thanks for taking the effort to share.
Related Conversations