sort data by date

%3CLINGO-SUB%20id%3D%22lingo-sub-1109312%22%20slang%3D%22en-US%22%3Esort%20data%20by%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1109312%22%20slang%3D%22en-US%22%3E%3CP%3EI%20need%20to%20sort%20my%20data%20of%20several%20columns%20using%20the%20date%2C%20when%20I%20download%20the%20Trading%20data%20it%20is%20in%20text%20form%20which%20does%20not%20help%20me.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20the%20date%20format%20to%20start%20with%20the%20year_month_day%20(1%20to%2030%2F31)_time%20of%20day%20for%20example%2C%3C%2FP%3E%3CP%3E2019-08-30%2013%3A10%3C%2FP%3E%3CP%3EI%20have%20tried%20to%20change%20to%20date%20format%20but%20does%20not%20see%20to%20apply%20changes%20and%20it%20stays%20the%20same.%3C%2FP%3E%3CP%3EThis%20is%20one%20feature%20of%20Excel%20which%20severely%20restricts%20sorting%2Ffiltering%20on%20my%20Data.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eregards%20and%20thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1109312%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1109330%22%20slang%3D%22en-US%22%3ERe%3A%20sort%20data%20by%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1109330%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F126961%22%20target%3D%22_blank%22%3E%40graham%20leo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMost%20likely%20you%20%22dates%22%20are%20in%20fact%20text%20and%20need%20to%20be%20converted%20to%20real%20dates.%20Then%20you%20can%20sort%20them.%20Can%20you%20upload%20an%20example%20showing%20how%20the%20dowloaded%20data%20looks%20like%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1109412%22%20slang%3D%22en-US%22%3ERe%3A%20sort%20data%20by%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1109412%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%3Eas%20I%20have%20already%20said%20in%20my%20previous%20message%2C%20I%20know%20that%20it%20is%20downloaded%20in%20text%20form%20and%20I%20have%20tried%20to%20change%20the%20format%20but%20the%20changes%20won't%20apply%20or%20stay.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20attached%20a%20image%20or%20do%20you%20need%20a%20excel%20file%20example%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eregards%20and%20thanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1109441%22%20slang%3D%22en-US%22%3ERe%3A%20sort%20data%20by%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1109441%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F126961%22%20target%3D%22_blank%22%3E%40graham%20leo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20file%20example%20would%20helpful.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1109447%22%20slang%3D%22en-US%22%3ERe%3A%20sort%20data%20by%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1109447%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%3Eas%20attached.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%20and%20regards%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1109492%22%20slang%3D%22en-US%22%3ERe%3A%20sort%20data%20by%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1109492%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%3EHello%20Riny%2C%20the%20example%20I%20sent%20to%20you%2C%20I%20already%20changed%20to%20a%20%22date%22%20format%20from%20the%20original%20General%20Text%20format.%20It%20still%20did%20not%20give%20me%20what%20I%20wanted.%3C%2FP%3E%3CP%3Eregards%20and%20thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1109508%22%20slang%3D%22en-US%22%3ERe%3A%20sort%20data%20by%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1109508%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F126961%22%20target%3D%22_blank%22%3E%40graham%20leo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENoticed%20that%20some%20of%20the%20dates%20were%20already%20real%20dates.%20Inserted%20two%20columns%20with%20converted%20dates.%20It%20seems%20to%20be%20consistent%20with%20what%20you%20want%20to%20see.%20If%20not%2C%20let%20me%20know.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUsed%20%22Text%20to%20columns%22%20and%20converted%20the%20texts%20to%20dates%20as%20DMY%2C%20because%20that%20seems%20to%20be%20format%20your%20date%20texts%20are%20in.%20After%20that%20I%20reformated%20the%20dates%20as%20%22yyyy%2Fmm%2Fdd%20hh%3Amm%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1111684%22%20slang%3D%22en-US%22%3ERe%3A%20sort%20data%20by%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1111684%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20%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%2C%20this%20looks%20like%20a%20solution%2C%20thank%20you.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDid%20you%20create%20the%20format%20yourself%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20so%20can%20you%20give%20a%20outline%20as%20to%20how%20you%20did%20it%3F%3C%2FP%3E%3CP%3EI%20think%20I%20have%20an%20idea%20but%20it%20would%20be%20good%20from%20you%20to%20confirm%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eregards%20Graham%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1111887%22%20slang%3D%22en-US%22%3ERe%3A%20sort%20data%20by%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1111887%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F126961%22%20target%3D%22_blank%22%3E%40graham%20leo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20date-and-time%20format%20is%20based%20on%20what%20you%20can%20find%20under%20%22Custom%22%20cell%20format%2C%20with%20a%20slight%20modification.%20If%20you%20can't%20see%20the%20particular%20one%20that%20I%20used%2C%20you%20can%20just%20type%20%22yyyy%2Fmm%2Fdd%20hh%3Amm%22%20in%20the%20field%20where%20it%20says%20%22Type%3A%22.%20The%20picture%20below%20may%20clarify%20it.%20Be%20it%20that%20I'm%20on%20a%20Mac%20and%20your%20screen%20may%20look%20a%20different%20in%20case%20you%20are%20on%20a%20PC.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F165596iE63D26FEBECA8C01%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22Screenshot%202020-01-16%20at%2006.42.44.png%22%20title%3D%22Screenshot%202020-01-16%20at%2006.42.44.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1111888%22%20slang%3D%22en-US%22%3ERe%3A%20sort%20data%20by%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1111888%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%3Ethank%20you%20good%20outcome%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eregards%20graham%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1112006%22%20slang%3D%22en-US%22%3ERe%3A%20sort%20data%20by%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1112006%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%3EI%20have%20done%20everything%20as%20you%20said%20but%20still%20stays%20as%20%22text%22.%20The%20filter%20is%20asking%20either%3C%2FP%3E%3CP%3EA%20to%20Z%20or%20Z%20to%20A%20not%20%22oldest%22%20or%20%22newest%22%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eregards%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1112024%22%20slang%3D%22en-US%22%3ERe%3A%20sort%20data%20by%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1112024%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F126961%22%20target%3D%22_blank%22%3E%40graham%20leo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStrange!%20Took%20your%20original%20file%2C%20re-did%2C%20text-to-columns%20as%20described%2C%20and%20applied%20the%20custom%20format.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F165603iB8D6909A2D3F399D%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22Screenshot%202020-01-16%20at%2008.52.45.png%22%20title%3D%22Screenshot%202020-01-16%20at%2008.52.45.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EOn%20my%20system%20I%20can%20sort%20oldest%20to%20newest%20when%20I%20go%20via%20Data%20%2F%20Sort.%20However%2C%20when%20I%20sort%20via%20the%20the%20Filter%20button%2C%20like%20you%20describe%2C%20it%20only%20allows%20for%20Ascending%20or%20Descending.%20But%20the%20fact%20that%20it%20has%20%22grouped%22%20the%20data%20by%202020%20and%202019%20tells%20me%20that%20Excel%20is%20recognising%20real%20dates.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F165604i76185528DA73AA6B%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22Screenshot%202020-01-16%20at%2008.54.56.png%22%20title%3D%22Screenshot%202020-01-16%20at%2008.54.56.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1112274%22%20slang%3D%22en-US%22%3ERe%3A%20sort%20data%20by%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1112274%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%3Ewell%20it%20is%20telling%20me%20I%20haven't%20an%20outcome%2C%20yet.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'll%20try%20youtube.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1112322%22%20slang%3D%22en-US%22%3ERe%3A%20sort%20data%20by%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1112322%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F126961%22%20target%3D%22_blank%22%3E%40graham%20leo%3C%2FA%3Ecan%20other%20people%20give%20me%20a%20suggestion%2C%20I%20need%20a%20solution%20now%20on%20this%20issue.%3C%2FP%3E%3CP%3EI%20have%20been%20struggling%20for%20along%20time%20working%20around%20this%20problem%20but%20it%20is%20shooting%20my%20productivity%20to%20pieces%20and%20Microsoft%20is%20not%20giving%20me%20an%20outcome%20which%20I%20have%20paid%20for.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESome%20tutorial%20may%20help%20me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eregards%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1112352%22%20slang%3D%22en-US%22%3ERe%3A%20sort%20data%20by%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1112352%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F126961%22%20target%3D%22_blank%22%3E%40graham%20leo%3C%2FA%3EI'd%20pay%20money%20to%20get%20this%20fixed%20up%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1112484%22%20slang%3D%22es-ES%22%3ERe%3A%20sort%20data%20by%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1112484%22%20slang%3D%22es-ES%22%3E%3CP%3EI%20convert%20them%20to%20date%2C%20first%20with%20extract%20in%203%20columns%20and%20then%20concatenate%20to%20format%20date%20finally%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F126961%22%20target%3D%22_blank%22%3E%40graham%20read%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1115817%22%20slang%3D%22en-US%22%3ERe%3A%20sort%20data%20by%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1115817%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%3Ehello%20Riny%2C%3C%2FP%3E%3CP%3ENow%20have%20an%20immediate%20positive%20outcome.%3C%2FP%3E%3CP%3EAs%20you%20suggested%20I%20kept%20it%20in%20%22csv%22%20format%20and%20changed%20the%20settings%20in%20the%20system%20to%20UK%20rather%20than%20Australian%20format%20(not%20to%20sure%20about%20that%20one%20because%20it%20appears%20to%20be%20similar).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%20and%20regards%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1116689%22%20slang%3D%22en-US%22%3ERe%3A%20sort%20data%20by%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1116689%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F126961%22%20target%3D%22_blank%22%3E%40graham%20leo%3C%2FA%3EThe%20idea%20of%20saving%20in%20a%20Excel%20Workbook%20rather%20than%20a%20csv%20format%20was%20a%20serious%20negative%20outcome%20for%20me.%20The%20information%20saying%20by%20saving%20in%20csv%20format%20you%20will%20lose%20features%20is%20MIS-information.%3C%2FP%3E%3CP%3EI%20don't%20know%20what%20features%20they%20are%20talking%20about%2C%20all%20I%20know%20is%20Microsoft%20cause%20me%20a%20lot%20of%20frustration%20for%20months%20on%20end.%20What%20I%20have%20now%20is%2C%20my%20data%20when%20downloaded%20no%20work%2F%20modification%20on%20the%20dates%20format%20is%20required%2C%20I%20can%20start%20on%20the%20Analysis%20of%20my%20data%20immediately.%20Thanks%20for%20nothing%20Microsoft%2C%20maybe%20I%20should%20be%20entitle%20for%20a%20refund%20at%20least%2C%20you%20would%20not%20be%20able%20to%20put%20a%20figure%20on%20the%20productivity.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1288916%22%20slang%3D%22en-US%22%3ERe%3A%20sort%20data%20by%20date%20(time%20is%20ignored).%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1288916%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F126961%22%20target%3D%22_blank%22%3E%40graham%20leo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESince%20sorting%20a%20column%20of%20date%20entries%2C%20especially%20very%20recent%20along%20with%20very%20old%20dates%20like%2017th%20or%2018th%20centuries%20produce%20unpredictable%20results%2C%20I%20have%20decided%20to%20study%20the%20problem.%20It%20turns%20out%20that%20I%20could%20only%20resolve%20this%20problem%20by%20writing%20a%20VBA%20excel%20program.%20This%20program%20provides%20instructions%20and%20generates%20a%20column%20based%20on%20the%20following%20rules%20and%20assumptions%3A%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E1.%20It%20was%20written%20for%20the%20365%20Office%20platform%20and%20the%20American%20form%20of%20M%2FD%2FY%20for%20dates.%3CBR%20%2F%3E2.%20It%20assumes%20that%20the%20divider%20is%20%E2%80%9C%2F%E2%80%9D%20and%20includes%20a%204-digit%20year%2C%20such%20as%2002%2F06%2F1854%20or%206%2F5%2F2001.%3CBR%20%2F%3E3.%20It%20may%20or%20may%20not%20include%20a%20time%20entry%20such%20as%206%2F5%2F2001%208%3A55%3A12%20PM.%3CBR%20%2F%3E4.%20It%20provides%20a%20column%20transformed%20to%20the%20form%20Y%2FM%2FD%2C%20that%20lends%20itself%20to%20a%20predictable%20sort.%3CBR%20%2F%3E5.%20Generally%2C%20this%20generated%20column%20is%20found%20to%20be%20useful%20as%20a%20hidden%20column.%3CBR%20%2F%3E6.%20When%20a%20sort%20of%20the%20visible%20column%20is%20requested%2C%20it%20is%20the%20hidden%20column%20that%20effects%20the%20sorting.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EThe%20program%20is%20as%20follows%3A%20(Reply%20for%20any%20questions%20you%20may%20have.)%3C%2FP%3E%3CP%3E%3CBR%20%2F%3ESub%20DateAdjust()%3CBR%20%2F%3EDim%20A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H%2C%20I%2C%20J%2C%20K%2C%20Sel1%2C%20FromTo%3CBR%20%2F%3EFromTo%20%3D%20Selection.Rows.Address(0%2C%200)%3CBR%20%2F%3EIf%20InStr(FromTo%2C%20%22%2C%22)%20%3D%200%20Then%3CBR%20%2F%3EA%20%3D%20MsgBox(%22SELECT%20CELL%20IN%20FIRST%20ROW%20OF%20COLUMN%20OF%20DATES%20TO%20BE%20SORTED%22%20%26amp%3B%20vbCr%20%26amp%3B%20vbLf%20%26amp%3B%20%22%20AND%2C%22%20%26amp%3B%20vbCr%20%26amp%3B%20vbLf%20%26amp%3B%20%22WHILE%20HOLDING%20CTRL%20BUTTON%2C%22%20%26amp%3B%20vbCr%20%26amp%3B%20vbLf%20%26amp%3B%20_%3CBR%20%2F%3EvbCr%20%26amp%3B%20vbLf%20%26amp%3B%20%22SELECT%20SECOND%20CELL%20IN%20ANY%20OR%20THE%20SAME%20ROW%20OF%20AN%20EMPTY%20COLUMN.%22%2C%20vbYesNo%20%2B%20vbDefaultButton1%2C%20%22SORT%20ALL%20DATES%20(OLD%20%26amp%3B%20NEW)%22)%3CBR%20%2F%3EIf%20A%20%3D%20vbNo%20Then%20Exit%20Sub%3CBR%20%2F%3EElse%3CBR%20%2F%3EB%20%3D%20Left(FromTo%2C%20InStr(FromTo%2C%20%22%2C%22)%20-%201)%3CBR%20%2F%3EC%20%3D%20Right(FromTo%2C%20InStr(FromTo%2C%20%22%2C%22)%20-%201)%3CBR%20%2F%3ERange(B).Select%3CBR%20%2F%3EF%20%3D%20ActiveCell.Column%3CBR%20%2F%3EF%20%3D%20Split(Cells(1%2C%20F).Address%2C%20%22%24%22)(1)%3CBR%20%2F%3EG%20%3D%20ActiveCell.Row%3CBR%20%2F%3ERange(Selection%2C%20Selection.End(xlDown)).Select%3CBR%20%2F%3ESel1%20%3D%20Selection.Rows.Address(0%2C%200)%3CBR%20%2F%3ED%20%3D%20Selection.Rows.Count%3CBR%20%2F%3ERange(C).Select%3CBR%20%2F%3EE%20%3D%20Selection.Address(0%2C%200)%3CBR%20%2F%3EH%20%3D%20ActiveCell.Column%3CBR%20%2F%3EH%20%3D%20Split(Cells(1%2C%20H).Address%2C%20%22%24%22)(1)%3CBR%20%2F%3EI%20%3D%20ActiveCell.Row%3CBR%20%2F%3ERange(E%20%26amp%3B%20%22%3A%22%20%26amp%3B%20H%20%26amp%3B%20I%20%2B%20D).Select%3CBR%20%2F%3ESelection.NumberFormat%20%3D%20%22%40%22%3CBR%20%2F%3EActiveCell.Select%3CBR%20%2F%3EFor%20J%20%3D%201%20To%20D%3CBR%20%2F%3ERange(F%20%26amp%3B%20G%20%2B%20(J%20-%201)).Select%3CBR%20%2F%3ECall%20Adjust(H%20%26amp%3B%20I%20%2B%20(J%20-%201))%3CBR%20%2F%3ENext%20J%3CBR%20%2F%3ERange(E%20%26amp%3B%20%22%3A%22%20%26amp%3B%20H%20%26amp%3B%20I%20%2B%20D).Select%3CBR%20%2F%3ESelection.HorizontalAlignment%20%3D%20xlCenter%3CBR%20%2F%3EActiveCell.Select%3CBR%20%2F%3EEnd%20If%3CBR%20%2F%3EEnd%20Sub%3CBR%20%2F%3ESub%20Adjust(X)%3CBR%20%2F%3EDim%20A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H%2C%20I%2C%20J%2C%20K%2C%20L%2C%20M%2C%20N%2C%20O%2C%20P%2C%20Q%3CBR%20%2F%3EF%20%3D%20ActiveCell%3CBR%20%2F%3EIf%20Len(F)%20%26gt%3B%2010%20Then%3CBR%20%2F%3EF%20%3D%20Date%3CBR%20%2F%3EEnd%20If%3CBR%20%2F%3EE%20%3D%20StrReverse(F)%3CBR%20%2F%3EJ%20%3D%20InStr(1%2C%20E%2C%20%22%2F%22)%3CBR%20%2F%3EK%20%3D%20Right(F%2C%20J%20-%201)%3CBR%20%2F%3EL%20%3D%20year(F)%3CBR%20%2F%3EIf%20J%20%3D%203%20Then%20G%20%3D%20L%20%26amp%3B%20%22%2F%22%20Else%20G%20%3D%20Right(F%2C%204)%20%26amp%3B%20%22%2F%22%3CBR%20%2F%3EA%20%3D%20InStr(F%2C%20%22%2F%22)%3CBR%20%2F%3EIf%20A%20%26lt%3B%203%20Then%20B%20%3D%20%220%22%20%26amp%3B%20Left(F%2C%20A%20-%201)%20%26amp%3B%20%22%2F%22%20Else%20B%20%3D%20Left(F%2C%20A%20-%201)%20%26amp%3B%20%22%2F%22%3CBR%20%2F%3EC%20%3D%20InStr(A%20%2B%201%2C%20F%2C%20%22%2F%22)%3CBR%20%2F%3EIf%20C%20%26lt%3B%205%20Then%20D%20%3D%20%220%22%20%26amp%3B%20Mid(F%2C%20C%20-%201%2C%201)%20Else%20D%20%3D%20Mid(F%2C%20C%20-%202%2C%202)%3CBR%20%2F%3EH%20%3D%20Left(F%2C%20C)%3CBR%20%2F%3EI%20%3D%20G%20%26amp%3B%20B%20%26amp%3B%20D%3CBR%20%2F%3ERange(X).Select%3CBR%20%2F%3EActiveCell%20%3D%20I%3CBR%20%2F%3EEnd%20Sub%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1290840%22%20slang%3D%22en-US%22%3ERe%3A%20sort%20data%20by%20date%20(time%20is%20ignored).%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1290840%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F142761%22%20target%3D%22_blank%22%3E%40Friedemann%20Schaefer%3C%2FA%3E%26nbsp%3B%20hello%2C%20I%20didn't%20think%20anybody%20was%20worrying%20this%2C%20I%20haven't.%20Once%20I%20could%20do%20my%20work%20in%20csv%20before%20saving%20it%20in%20Workbook%20format%20that%20was%20good%20enough%20for%20me%20because%20there%20is%20continually%20new%20information%20anytime%20of%20the%20day.%3C%2FP%3E%3CP%3EYou%20appear%20to%20have%20done%20a%20serious%20amount%20of%20work%2C%20but%20I%20won't%20being%20going%20anywhere%20near%20it%20because%20I%20do%20not%20have%20the%20need%20and%20the%20time%2Fproductivity%20I%20would%20lose%20would%20be%20not%20acceptable.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20Excel%20interest%20is%20now%20Conditional%20Formatting%20at%20my%20leisure.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20reply%20and%20interest%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I need to sort my data of several columns using the date, when I download the Trading data it is in text form which does not help me. 

I need the date format to start with the year_month_day (1 to 30/31)_time of day for example,

2019-08-30 13:10

I have tried to change to date format but does not see to apply changes and it stays the same.

This is one feature of Excel which severely restricts sorting/filtering on my Data.

 

regards and thanks

19 Replies
Highlighted

@graham leo 

Most likely you "dates" are in fact text and need to be converted to real dates. Then you can sort them. Can you upload an example showing how the dowloaded data looks like?

Highlighted

@Riny_van_Eekelenas I have already said in my previous message, I know that it is downloaded in text form and I have tried to change the format but the changes won't apply or stay.

 

I have attached a image or do you need a excel file example?

 

regards and thanks

 

 
 
 
Highlighted

@graham leo 

A file example would helpful.

Highlighted

@Riny_van_Eekelenas attached.

 

thanks and regards

Highlighted

@Riny_van_EekelenHello Riny, the example I sent to you, I already changed to a "date" format from the original General Text format. It still did not give me what I wanted.

regards and thanks

Highlighted

@graham leo 

Noticed that some of the dates were already real dates. Inserted two columns with converted dates. It seems to be consistent with what you want to see. If not, let me know.

 

Used "Text to columns" and converted the texts to dates as DMY, because that seems to be format your date texts are in. After that I reformated the dates as "yyyy/mm/dd hh:mm".

 

Highlighted

Hello @Riny_van_Eekelen, this looks like a solution, thank you.

 

Did you create the format yourself? 

 

If so can you give a outline as to how you did it?

I think I have an idea but it would be good from you to confirm it.

 

regards Graham

Highlighted

@graham leo 

The date-and-time format is based on what you can find under "Custom" cell format, with a slight modification. If you can't see the particular one that I used, you can just type "yyyy/mm/dd hh:mm" in the field where it says "Type:". The picture below may clarify it. Be it that I'm on a Mac and your screen may look a different in case you are on a PC.

Screenshot 2020-01-16 at 06.42.44.png

 

Highlighted

@Riny_van_Eekelenthank you good outcome,

 

regards graham 

Highlighted

@Riny_van_EekelenI have done everything as you said but still stays as "text". The filter is asking either

A to Z or Z to A not "oldest" or "newest" 

 

regards

Highlighted

@graham leo 

Strange! Took your original file, re-did, text-to-columns as described, and applied the custom format.

Screenshot 2020-01-16 at 08.52.45.png

On my system I can sort oldest to newest when I go via Data / Sort. However, when I sort via the the Filter button, like you describe, it only allows for Ascending or Descending. But the fact that it has "grouped" the data by 2020 and 2019 tells me that Excel is recognising real dates.

Screenshot 2020-01-16 at 08.54.56.png

Highlighted

@Riny_van_Eekelenwell it is telling me I haven't an outcome, yet.

 

I'll try youtube.

Highlighted

@graham leocan other people give me a suggestion, I need a solution now on this issue.

I have been struggling for along time working around this problem but it is shooting my productivity to pieces and Microsoft is not giving me an outcome which I have paid for.

 

Some tutorial may help me.

 

regards

Highlighted

@graham leoI'd pay money to get this fixed up

Highlighted

Yo las convierto a fecha , primero con extraer en 3 columnas y luego concatenar para dar formato fecha finalmente @graham leo 

Highlighted

@Riny_van_Eekelenhello Riny,

Now have an immediate positive outcome.

As you suggested I kept it in "csv" format and changed the settings in the system to UK rather than Australian format (not to sure about that one because it appears to be similar).

 

thanks and regards

 

Highlighted

@graham leoThe idea of saving in a Excel Workbook rather than a csv format was a serious negative outcome for me. The information saying by saving in csv format you will lose features is MIS-information.

I don't know what features they are talking about, all I know is Microsoft cause me a lot of frustration for months on end. What I have now is, my data when downloaded no work/ modification on the dates format is required, I can start on the Analysis of my data immediately. Thanks for nothing Microsoft, maybe I should be entitle for a refund at least, you would not be able to put a figure on the productivity. 

Highlighted

@graham leo 

Since sorting a column of date entries, especially very recent along with very old dates like 17th or 18th centuries produce unpredictable results, I have decided to study the problem. It turns out that I could only resolve this problem by writing a VBA excel program. This program provides instructions and generates a column based on the following rules and assumptions:


1. It was written for the 365 Office platform and the American form of M/D/Y for dates.
2. It assumes that the divider is “/” and includes a 4-digit year, such as 02/06/1854 or 6/5/2001.
3. It may or may not include a time entry such as 6/5/2001 8:55:12 PM.
4. It provides a column transformed to the form Y/M/D, that lends itself to a predictable sort.
5. Generally, this generated column is found to be useful as a hidden column.
6. When a sort of the visible column is requested, it is the hidden column that effects the sorting.


The program is as follows: (Reply for any questions you may have.)


Sub DateAdjust()
Dim A, B, C, D, E, F, G, H, I, J, K, Sel1, FromTo
FromTo = Selection.Rows.Address(0, 0)
If InStr(FromTo, ",") = 0 Then
A = MsgBox("SELECT CELL IN FIRST ROW OF COLUMN OF DATES TO BE SORTED" & vbCr & vbLf & " AND," & vbCr & vbLf & "WHILE HOLDING CTRL BUTTON," & vbCr & vbLf & _
vbCr & vbLf & "SELECT SECOND CELL IN ANY OR THE SAME ROW OF AN EMPTY COLUMN.", vbYesNo + vbDefaultButton1, "SORT ALL DATES (OLD & NEW)")
If A = vbNo Then Exit Sub
Else
B = Left(FromTo, InStr(FromTo, ",") - 1)
C = Right(FromTo, InStr(FromTo, ",") - 1)
Range(B).Select
F = ActiveCell.Column
F = Split(Cells(1, F).Address, "$")(1)
G = ActiveCell.Row
Range(Selection, Selection.End(xlDown)).Select
Sel1 = Selection.Rows.Address(0, 0)
D = Selection.Rows.Count
Range(C).Select
E = Selection.Address(0, 0)
H = ActiveCell.Column
H = Split(Cells(1, H).Address, "$")(1)
I = ActiveCell.Row
Range(E & ":" & H & I + D).Select
Selection.NumberFormat = "@"
ActiveCell.Select
For J = 1 To D
Range(F & G + (J - 1)).Select
Call Adjust(H & I + (J - 1))
Next J
Range(E & ":" & H & I + D).Select
Selection.HorizontalAlignment = xlCenter
ActiveCell.Select
End If
End Sub
Sub Adjust(X)
Dim A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q
F = ActiveCell
If Len(F) > 10 Then
F = Date
End If
E = StrReverse(F)
J = InStr(1, E, "/")
K = Right(F, J - 1)
L = year(F)
If J = 3 Then G = L & "/" Else G = Right(F, 4) & "/"
A = InStr(F, "/")
If A < 3 Then B = "0" & Left(F, A - 1) & "/" Else B = Left(F, A - 1) & "/"
C = InStr(A + 1, F, "/")
If C < 5 Then D = "0" & Mid(F, C - 1, 1) Else D = Mid(F, C - 2, 2)
H = Left(F, C)
I = G & B & D
Range(X).Select
ActiveCell = I
End Sub

Highlighted

@Friedemann Schaefer  hello, I didn't think anybody was worrying this, I haven't. Once I could do my work in csv before saving it in Workbook format that was good enough for me because there is continually new information anytime of the day.

You appear to have done a serious amount of work, but I won't being going anywhere near it because I do not have the need and the time/productivity I would lose would be not acceptable.

 

My Excel interest is now Conditional Formatting at my leisure.

 

Thank you for your reply and interest