SOLVED

incorrect formulation

%3CLINGO-SUB%20id%3D%22lingo-sub-1532777%22%20slang%3D%22de-DE%22%3EIncorrect%20formulation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1532777%22%20slang%3D%22de-DE%22%3E%3CP%3EHello%20everyone%2C%20need%20a%20little%20food%20for%20thought%20...%20or%20better...%20need%20your%20help%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20image-alt%3D%22Contitional_Formating_Timeline.JPG%22%20style%3D%22width%3A%20661px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F206339i0EAEB97CF353A365%2Fimage-dimensions%2F661x195%3Fv%3D1.0%22%20width%3D%22661%22%20height%3D%22195%22%20title%3D%22Contitional_Formating_Timeline.JPG%22%20alt%3D%22Contitional_Formating_Timeline.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExamble%20(Cell%20L14)%20%3A%3C%2FP%3E%3CP%3E%3DOR(AND(L'9%26gt%3B%3D%24C-3%3B%20L-9%26lt%3B%3D%24D%243)%3BUND(L%249%26gt%3B%3D%24E-3%3B%20L-9%26lt%3B%3D%24F%243)%3B%20und(l%249%3D%22%22%26gt%3B%3D%24G-3%3B%20L'9%20%26lt%3B%3D%24H%243))%20%20%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWith%20this%20formula%20I%20can%20create%20a%20timeline%20as%20long%20as%20the%20working%20time%20is%20longer.%3C%2FP%3E%3CP%3EIf%20the%20working%20hours%20from%208%3A00%20p.m.%20to%2011%3A00%20p.m.%20then%20everything%20is%20ok%2C%20shows%20how%20it%20should%20display.%3C%2FP%3E%3CP%3EIf%20the%20working%20hours%20are%20from%2010pm%20to%203am%20then%20it%20shows%20empty%2C%3C%2FP%3E%3CP%3Ehow%20can%20I%20correct%20this%20error%20in%20my%20formula%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENikolino%3C%2FP%3E%3CP%3EI%20know%20I%20don't%20know%20anything%20(Socrates)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1532777%22%20slang%3D%22de-DE%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1532817%22%20slang%3D%22fr-FR%22%3ERe%3A%20incorrect%20formulation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1532817%22%20slang%3D%22fr-FR%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40Nikolino%3C%2FA%3E%26nbsp%3BHi%2C%20I%20need%20to%20do%20a%20similar%20scheduling%20but%20I%20really%20don't%20understand%20your%20formula%20and%20what%20you%20try%20do%20to%20with%20this%26nbsp%3B%3C%2FP%3E%3CP%3EODER%20(UND%20(L%249-%24C%243%3B%20L%249%26lt%3B%3D%24D%243)%3BUND(L%249%26gt%3B-%24E%243%3B%20L%249%26lt%3B%3D%24F%243)%3B%20und(l%249%3D%22%22%26gt%3B-%24G%243%3B%20%249%20%26lt%3B%3D%24H%243))%20%20%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECould%20you%20explain%20it%20with%20more%20details%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1532850%22%20slang%3D%22de-DE%22%3ERe%3A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1532850%22%20slang%3D%22de-DE%22%3E%3DOR(And(L'9%26gt%3B%3D%24C-3%2CL-9%26lt%3B%3D%24D%243)%2CAND(L%249%26gt%3B%3D%24E-3%2CL-9%26lt%3B%3D%24F%243)%2C%20and(l%249%3D%22%22%26gt%3B%3D%24G-3%2CL-9%20%26lt%3B%3D%24H%243))%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20translated%20the%20formula%20into%20english%20...%20%20maybe%20it%20helps%20better%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1532914%22%20slang%3D%22en-US%22%3ERe%3A%20incorrect%20formulation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1532914%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40Nikolino%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20variant%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20799px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F206350i24C2BDC13F03D38C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Eand%20in%20attached%20file.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1532935%22%20slang%3D%22de-DE%22%3ERe%3A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1532935%22%20slang%3D%22de-DE%22%3EHello%20Sergei%20Baklan%2C%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20thx%20for%20your%20quick%20response.%20%3CBR%20%2F%3E%20I%20open%20the%20sheet%20and%20try%20to%20insert%20in%20G%203%20and%20H3%20time%20like%2023%3A00%20in%20G3%20and%2004%3A00%20in%20H3%20and%20not%20works...%20am%20i%20making%20a%20mistake%20somewhere%3F%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20Thx%20%3CBR%20%2F%3E%20Nikolino%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1532962%22%20slang%3D%22en-US%22%3ERe%3A%20incorrect%20formulation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1532962%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40Nikolino%3C%2FA%3E%26nbsp%3B%20%26nbsp%3BI%20think%20you%20are%20having%20a%20problem%20with%20the%20next%20day%20roll%20over.%26nbsp%3B%20If%20you%20want%20to%20treat%2003%3A00am%20as%20a%20continuation%20from%20the%20previous%20day%20you%20have%20to%20enter%20it%20as%20a%20day%20after%20the%20prior%2022%3A00%20(if%20you%20look%20at%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3Bsheet%2C%20he%20entered%20H3%20as%2027%2F24%20or%203hrs%20more%20than%20a%20full%20day).%26nbsp%3B%20If%20you%20don't%20want%20to%20have%20to%20do%20that%20every%20time%20and%20you%20know%20that%20column%20H%20will%20%3CU%3Ealways%3C%2FU%3E%20have%20a%20time%20in%20the%20next%20day%20you%20can%20%2B1%20in%20the%20formula%20or%20you%20can%20change%20row%207%20to%20make%20it%20all%20the%20%22same%20day%22%20and%20use%20an%20OR%20condition%20%26gt%3B22%3A00%20OR%20%26lt%3B03%3A00%20as%20long%20as%20you%20are%20consistent.%26nbsp%3B%20If%20you%20don't%20know%20that%20H%20will%20always%20be%20the%20%22next%20day%22%20then%20you%20need%20to%20add%20additional%20condition%20to%20first%20check%20for%20that.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1533007%22%20slang%3D%22de-DE%22%3ERe%3A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1533007%22%20slang%3D%22de-DE%22%3EHow%20should%20the%20formula%20look%20like%20that%20you%20enter%20the%20time%20in%20H3%20and%20appear%20in%20the%20timeline%2C%20even%20if%20the%20end%20time%20is%20less%20than%20the%20start%20time%3F%20%3CBR%20%2F%3E%20In%20the%20end%2C%20I%20would%20like%20to%20enter%20the%20times%20from%20C3%20to%20H6%20(see%20picture%20at%20the%20beginning)%20and%20they%20should%20appear%20automatically%20in%20the%20timeline%20...%20So%2C%20as%20I%20said%2C%20if%20the%20end%20time%20is%20less%20than%20the%20start%20time.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20Thx%20%3CBR%20%2F%3E%20Nikolino%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1533043%22%20slang%3D%22en-US%22%3ERe%3A%20incorrect%20formulation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1533043%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40Nikolino%3C%2FA%3E%26nbsp%3B%20I%20added%20the%20extra%20condition%20to%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3Bsheet%20(see%20attached)%3A%3C%2FP%3E%3CP%3E%3D((J%247%26gt%3B%3D%24C4)*(J%247%26lt%3B%3D%24D4)%2B(J%247%26gt%3B%3D%24E4)*(J%247%26lt%3B%3D%24F4)%2B(J%247%26gt%3B%3D%24G4)*(J%247%26lt%3B%3D%24H4)%2B%3CU%3E%3CSTRONG%3E(%24H4%26lt%3B%24G4)*(J%247%26gt%3B%3D%24G4)*(J%247%26lt%3B%3D%24H4%2B1)%3C%2FSTRONG%3E%3C%2FU%3E)%3C%2FP%3E%3CP%3Enote%20you%20could%20still%20do%20all%20this%20using%20AND%20and%20OR%20conditions%20(AND%20%3D%20*%20and%20OR%20%3D%20%2B)%3C%2FP%3E%3CP%3ENOTE%3A%20this%20is%20only%20accounting%20for%20the%20case%20where%20col%20H%20is%20supposed%20to%20be%20%26gt%3B24hrs%20day%20but%20typed%20in%20without%20the%20added%20day.%26nbsp%3B%20If%20you%20have%20a%20chance%20of%20other%20times%20being%20typed%20in%20'incorrectly'%20that%20way%20(e.g.%20col%20G%20%3D%2000%3A30%20and%20col%20H%20%3D%2005%3A30)%20then%20you%20may%20need%20another%20condition%20for%20that.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1533080%22%20slang%3D%22en-US%22%3ERe%3A%20incorrect%20formulation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1533080%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40Nikolino%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYes%2C%20as%20variant%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20978px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F206359i6F5FA2ABCE5AE6A3%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIn%20any%20case%20you%20shall%20define%20the%20logic%20to%20find%20if%20that's%20the%20current%20date%20or%20next%20one.%20That%20could%20be%20finish%20date%20%26lt%3B%20start%20date%2C%20position%20in%20the%20range%2C%20whatever.%20But%20all%20these%20is%20not%20reliable%2C%20much%20better%20define%20next%20day%20directly.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1533150%22%20slang%3D%22en-US%22%3ERe%3A%20incorrect%20formulation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1533150%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40Nikolino%3C%2FA%3E%26nbsp%3B%20Here%20is%20another%20variant%20that%20might%20work%20better.%26nbsp%3B%20It%20is%20assuming%20that%20columns%20G%20and%20H%20are%203rd%20shift%20and%20always%20starts%20after%2012%3A00%20noon%20and%20ends%20before%2012%3A00%20noon%20the%20next%20day%3A%3C%2FP%3E%3CP%3E%3D((J%247%26gt%3B%3D%24C3)*(J%247%26lt%3B%3D%24D3)%2B(J%247%26gt%3B%3D%24E3)*(J%247%26lt%3B%3D%24F3)%2B(J%247%26gt%3B%3D%24G3%3CU%3E%3CSTRONG%3E%2B(%24G3%26lt%3B0.5)%3C%2FSTRONG%3E%3C%2FU%3E)*(J%247%26lt%3B%3D%24H3%3CU%3E%3CSTRONG%3E%2B(%24H3%26lt%3B0.5)%3C%2FSTRONG%3E%3C%2FU%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-1533333%22%20slang%3D%22de-DE%22%3ESubject%3A%20incorrect%20formulation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1533333%22%20slang%3D%22de-DE%22%3EMany%20thanks%20for%20the%20help%2C%20mtarler%20%26amp%3B%20Sergei%20Baklan.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20Will%20be%20able%20to%20deal%20with%20it%20further%20tomorrow%2C%20if%20someone%20thinks%20of%20something%20by%20then%20it%20is%20very%20welcome.%20%3CBR%20%2F%3E%20In%20our%20conversation%20shows%20that%20it%20is%20better%20to%20change%20the%20date%20after%20midnight%20to%20the%20next%20day%20...%20is%20there%20a%20formula%20where%20a%20date%20is%20taken%20from%20a%20cell%20and%20a%20fixed%20time%20can%20be%20in%20one%20cell%3F%20..%20so%20I%20could%20...%20Just%20a%20thought..%20the%20day%20in%20the%20fixed%20time%20that%20comes%20from%20another%20cell...%20or%20am%20I%20in%20the%20wrong%20line%20of%20thought%20...%20However%2C%20any%20additional%20help%20is%20welcome%20...%20Thank%20you%20again%20and%20will%20give%20you%20a%20message%20about%20the%20result.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20Thx%20%3CBR%20%2F%3E%20Nikolino%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1533465%22%20slang%3D%22en-US%22%3EBetreff%3A%20incorrect%20formulation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1533465%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40Nikolino%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfraid%20I%20didn't%20catch%20the%20question.%20For%20such%20schedules%20usually%20actual%20date%20is%20not%20required%2C%20that's%20only%20to%20add%201%20to%20separate%20the%20next%20date%20form%20the%20current%20one.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20general%20datetime%3Ddate%2Btime%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1533481%22%20slang%3D%22en-US%22%3EBetreff%3A%20incorrect%20formulation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1533481%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40Nikolino%3C%2FA%3E%26nbsp%3B%20If%20you%20want%20to%20encourage%20or%20force%20entry%20to%20properly%20include%20(or%20not%20include)%20the%20additional%20day%20you%20can%20use%20conditional%20formatting%20(encourage%20by%20highlighting%20'wrong'%20values)%20or%20data%20validation%20which%20can%20either%20give%20warning%20message%20or%20error%20message.%26nbsp%3B%20Basically%20the%20condition%20will%20be%20that%20the%20value%20entered%20%26gt%3B%3D%20the%20value%20in%20the%20column%20before%20it%20(or%20no%20value%20can%20be%20%26gt%3B1%20to%20not%20include%20the%20additional%20day).%26nbsp%3B%20That%20formatting%2Fvalidation%20could%20be%20applied%20to%20that%20whole%20table.%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20last%20solution%20I%20sent%20should%20work%20for%20any%203rd%20shift%20time%20range%20entered%20as%20either%20same%20date%20or%20next%20day%20values%20(i.e.%20times%20in%20columns%20G%20and%20H%20should%20be%20evening%20of%20same%20day%20or%20morning%20hours%20the%20next%20day).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1533905%22%20slang%3D%22de-DE%22%3ESubject%3A%20incorrect%20formulation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1533905%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40Nikolino%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3EHi%20Guys%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20I%20tried%20again%20to%20adapt%20your%20advice%20in%20a%20workbook%20...%20But%20somewhere%20I'm%20messing%20up.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%3EI%20installed%20the%20Fromel%20in%20sheet%20%22IND1%22%20and%20MA1%20...%20Probably%20wrong%20%3CLI-EMOJI%20id%3D%22lia_disappointed-face%22%20title%3D%22%3Adisappointed_face%3A%22%3E%3C%2FLI-EMOJI%3E%20%20...%20%3C%2FSPAN%3E%3CBR%20%2F%3E%20%3CSPAN%3EBut%20what%20I%20want%20is%20that%20the%20shifts%20start%20from%206%3A00%20am%20until%20the%20other%20day%206%3A00%20am%20in%20a%20row%20as%20a%20timeline%2C%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%3Ethe%20time%20is%20taken%20from%20the%20timeline%20of%20sheet%20%22January%22%2C%20%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%3Ehow%20could%20I%20do%20something%20with%20conditional%20formatting%3C%2FSPAN%3E%20%3CSPAN%3E%3F%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3ESo%20attached%20is%20the%20worksheet%3C%2FSPAN%3E%3CBR%20%2F%3EHope%20I%20could%20explain%20well%20what%20I%20would%20like%20to%3CSPAN%3Edo..%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%3E%3CSPAN%20class%3D%22%22%3Esry%20for%20the%20circumstances%20...%20but%20as%20a%20VBA%20blind%20and%20Excel%20ignorant%20I%20want%20to%20do%20it%20somehow%20(somehow%20GOOD)%2C%20the%20ambition%20grabbed%20me%20%3A-).%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%3E%3CSPAN%20class%3D%22%22%3EEvery%20idea%20is%20welcome%20...%20I'll%20sit%20down%20with%20it%20again%20tomorrow%20...%20now%20my%20grandchild%20is%20ahead%20(to%20be%20visited)%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%3E%3CSPAN%20class%3D%22%22%3EThx%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%3E%3CSPAN%20class%3D%22%22%3ENikolino%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20class%3D%22text-wrap%20tlid-copy-target%22%3E%3CDIV%20class%3D%22result-shield-container%20tlid-copy-target%22%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3EI%20always%20know%20that%20I%20don't%20know%20anything%20...%20When%20do%20I%20know%20when%20I%20know%20something%3F%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1534060%22%20slang%3D%22en-US%22%3EBetreff%3A%20incorrect%20formulation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1534060%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40Nikolino%3C%2FA%3E%26nbsp%3B%20I%20didn't%20see%20any%20change%20in%20your%20conditional%20formatting%20formula.%26nbsp%3B%20I%20implemented%20the%20last%20suggestion%20I%20made%20in%20the%20attached%20sheet%20and%20added%20more%20so%20it%20will%20check%20what%20day%20it%20is%20and%20auto-index%20down%20on%20the%20Jan%20sheet%20so%201%20conditional%20formatting%20formula%20will%20work%20for%20every%20day%20in%20that%20month%20(I%20added%20the%202nd%20to%20the%20range%20and%20leave%20it%20to%20you%20to%20add%20the%20rest).%26nbsp%3B%20You%20still%20need%20to%20tweak%20the%20formula%20for%20each%20category%20(MA1%2C%20MA2%2C%20etc...)%20since%20each%20needs%20its%20own%20color.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3EI%20also%20changed%20the%20formula%20to%20%26gt%3B%3D%20the%20start%20time%20but%20%3CFONT%20color%3D%22%23FF00FF%22%3E%26lt%3B%3C%2FFONT%3E%20end%20time%20because%20the%20don't%20actually%20work%20that%20hour%2F%20half-hour%20period.%3C%2FP%3E%3CP%3EI%20also%20noted%20and%20corrected%20that%20your%201st%2006%3A00am%20was%20actually%2006%3A00am%20the%20next%20day%20and%20your%2006%3A00am%20at%20the%20end%20was%2005%3A59.999999999am%20(floating%20point%20error).%26nbsp%3B%20You%20may%20want%20to%20look%20at%20the%20rest%20of%20the%20times%20and%20days%20for%20those%20and%20similar%20errors%20also.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1534960%22%20slang%3D%22de-DE%22%3ESubject%3A%20incorrect%20formulation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1534960%22%20slang%3D%22de-DE%22%3EA%20big%20thank%20you%20to%20mtarler%20and%20Sergei%20Baklan.%20%3CBR%20%2F%3E%20Thank%20you%20for%20the%20food%20for%20thought%20...%20is%20in%20the%20direction%20I%20imagined.%20%3CBR%20%2F%3E%20When%20it's%20finished%20I%20will%20put%20it%20here%20so%20that%20everyone%20who%20needs%20something%20can%20download%20it%20%3CBR%20%2F%3E%20...%20it%20will%20help%20to%20help%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20Wish%20everyone%20a%20wonderful%20good%20morning%20...%20let's%20enjoy%20the%20day%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20Nikolino%20%3CBR%20%2F%3E%20I%20know%20I%20don't%20know%20anything%20(Socrates)%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1535609%22%20slang%3D%22en-US%22%3EBetreff%3A%20incorrect%20formulation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1535609%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40Nikolino%3C%2FA%3E%26nbsp%3B%20glad%20it%20helped.%26nbsp%3B%20BTW%2C%20love%20your%20signature%20quote.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Regular Contributor

Hello everyone, need a little food for thought ... or better...need your help

Contitional_Formating_Timeline.JPG

 

 

 

 

 

 

Examble (Cell L14) :

=ODER(UND(L$9>=$C$3;L$9<=$D$3);UND(L$9>=$E$3;L$9<=$F$3); UND(L$9>=$G$3;L$9<=$H$3))

 

With this formula I can create a timeline as long as the working time is longer.

If the working hours from 8:00 p.m. to 11:00 p.m. then everything is ok, shows how it should display.

If the working hours are from 10pm to 3am then it shows empty,

how can I correct this error in my formula?

 

Nikolino

I know I don't know anything (Socrates)

 

16 Replies
Highlighted

@Nikolino Hi, I need to do a similar scheduling but I really doesn't understand your formula and what you try do to with this 

=ODER(UND(L$9>=$C$3;L$9<=$D$3);UND(L$9>=$E$3;L$9<=$F$3); UND(L$9>=$G$3;L$9<=$H$3))

 

Could you explain it with more details ?

Highlighted
=OR(AND(L$9>=$C$3,L$9<=$D$3),AND(L$9>=$E$3,L$9<=$F$3), AND(L$9>=$G$3,L$9<=$H$3))

translated the formula into english ... maybe it helps better

Highlighted

@Nikolino 

As variant

image.png

and in attached file.

Highlighted
Hello Sergei Baklan,

thx for your quick response.
I open the sheet and try to insert in G 3 and H3 time like 23:00 in G3 and 04:00 in H3 and not works...am i making a mistake somewhere?

Thx
Nikolino
Highlighted

@Nikolino   I think you are having a problem with the next day roll over.  If you want to treat 03:00am as a continuation from the previous day you have to enter it as a day after the prior 22:00 (if you look at @Sergei Baklan sheet, he entered H3 as 27/24 or 3hrs more than a full day).  If you don't want to have to do that every time and you know that column H will always have a time in the next day you can +1 in the formula or you can change row 7 to make it all the "same day" and use an OR condition >22:00 OR <03:00 as long as you are consistent.  If you don't know that H will always be the "next day" then you need to add additional condition to first check for that.

Highlighted
How should the formula look like that you enter the time in H3 and appear in the timeline, even if the end time is less than the start time?
In the end, I would like to enter the times from C3 to H6 (see picture at the beginning) and they should appear automatically in the timeline ... also, as I said, if the end time is less than the start time.

Thx
Nikolino
Highlighted

@Nikolino  I added the extra condition to @Sergei Baklan sheet (see attached):

=((J$7>=$C4)*(J$7<=$D4)+(J$7>=$E4)*(J$7<=$F4)+(J$7>=$G4)*(J$7<=$H4)+($H4<$G4)*(J$7>=$G4)*(J$7<=$H4+1))

note you could still do all this using AND and OR conditions (AND = * and OR = +)

NOTE: this is only accounting for the case where col H is supposed to be >24hrs day but typed in without the added day.  If you have a chance of other times being typed in 'incorrectly' that way (e.g. col G = 00:30 and col H = 05:30) then you may need another condition for that.

Highlighted

@Nikolino 

Yes, as variant

image.png

In any case you shall define the logic to find if that's the current date or next one. That could be finish date < start date, position in the range, whatever. But all these is not reliable, much better define next day directly. 

Highlighted

@Nikolino  Here is another variant that might work better.  It is assuming that columns G and H are 3rd shift and always starts after 12:00 noon and ends before 12:00 noon the next day:

=((J$7>=$C3)*(J$7<=$D3)+(J$7>=$E3)*(J$7<=$F3)+(J$7>=$G3+($G3<0.5))*(J$7<=$H3+($H3<0.5)))

 

 

Highlighted
Many thanks for the help, mtarler & Sergei Baklan.

Will be able to deal with it further tomorrow, if someone thinks of something by then it is very welcome.
In our conversation shows that it is better to change the date after midnight to the next day ... is there a formula where a date is taken from a cell and a fixed time can be in one cell? ..so I could ... just a thought..the day in the fixed time that comes from another cell...or am I in the wrong line of thought ... however, any additional help is welcome ... thank you again and will give you a message about the result.

Thx
Nikolino
Highlighted

@Nikolino 

Afraid I didn't catch the question. For such schedules usually actual date is not required, that's only to add 1 to separate the next date form the current one.

 

In general datetime=date+time

Highlighted

@Nikolino  If you want to encourage or force entry to properly include (or not include) the additional day you can use conditional formatting (encourage by highlighting 'wrong' values) or data validation which can either give warning message or error message.  Basically the condition will be that the value entered >= the value in the column before it (or no value can be >1 to not include the additional day).  That formatting/validation could be applied to that whole table. 

The last solution I sent should work for any 3rd shift time range entered as either same date or next day values (i.e. times in columns G and H should be evening of same day or morning hours the next day).

Highlighted

@Nikolino 

Hi Guys,
I tried again to adapt your advice in a workbook ... but somewhere I'm messing up.

I installed the Fromel in sheet "IND1" and MA1 ... probably wrong  ...
But what I want is that the shifts start from 6:00 am until the other day 6:00 am in a row as a timeline,

the time is taken from the timeline of sheet "Januar",

how could I do something with conditional formatting ?

Also attached is the worksheet
Hope I could explain well what I would like to do..

sry for the circumstances ... but as a VBA blind and Excel ignorant I want to do it somehow (somehow GOOD), the ambition grabbed me :-).

Every idea is welcome ... I'll sit down with it again tomorrow ... now my grandchild is ahead (to be visited)

 

Thx

Nikolino

I always know that I don't know anything ... when do I know when I know something?
Highlighted
Best Response confirmed by Nikolino (Regular Contributor)
Solution

@Nikolino  I didn't see any change in your conditional formatting formula.  I implemented the last suggestion I made in the attached sheet and added more so it will check what day it is and auto-index down on the Jan sheet so 1 conditional formatting formula will work for every day in that month (I added the 2nd to the range and leave it to you to add the rest).  You still need to tweak the formula for each category (MA1, MA2, etc...) since each needs its own color.  

I also changed the formula to >= the start time but < end time because the don't actually work that hour/ half-hour period.

I also noted and corrected that your 1st 06:00am was actually 06:00am the next day and your 06:00am at the end was 05:59.999999999am (floating point error).  You may want to look at the rest of the times and days for those and similar errors also.

 

Highlighted
A big thank you to mtarler and Sergei Baklan.
Thank you for the food for thought ... is in the direction I imagined.
When it is finished I will put it here so that everyone who needs something can download it
... it will help to help

Wish everyone a wonderful good morning ... let's enjoy the day

Nikolino
I know I don't know anything (Socrates)
Highlighted

@Nikolino  glad it helped.  BTW, love your signature quote.