SOLVED
Home

Calculating job estimates within working days and hours (in Excel). Help Please!

%3CLINGO-SUB%20id%3D%22lingo-sub-909075%22%20slang%3D%22en-US%22%3ECalculating%20job%20estimates%20within%20working%20days%20and%20hours%20(in%20Excel).%20Help%20Please!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-909075%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20currently%20having%20a%20lot%20of%20trouble%20calculating%20estimates%20within%20working%20hours%20in%20excel.%26nbsp%3B%3C%2FP%3E%3CP%3EIll%20try%20to%20explain%20to%20the%20best%20of%20my%20ability%20what%20i%20am%20trying%20to%20accomplish.%3C%2FP%3E%3CP%3EAttached%20is%20my%20current%20documents%20for%20a%20reference%20(with%20added%20notes%20for%20clarity).%3C%2FP%3E%3CP%3EThe%20%3CU%3E%3CEM%3EScheduling%20Test%201%3C%2FEM%3E%3C%2FU%3E%26nbsp%3Bdocument%20is%20just%20connected%20for%20an%20easy%20way%20for%20me%20to%20sort%20priorities%20which%20doesn't%20apply%20here.%20The%20main%20document%20is%20%3CEM%3E%3CU%3EEstimate%20Test%201%3C%2FU%3E%3C%2FEM%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20looking%20for%20a%20formula%20that%20will%20add%20a%20specific%20amount%20of%20hours%20to%20a%20specific%20date%20and%20time%26nbsp%3B%3CSTRONG%3EONLY%3C%2FSTRONG%3E%20during%20%3CSTRONG%3EWORK%20HOURS%3C%2FSTRONG%3E%20(7%3A00%20am%20-%203%3A30%20pm%20with%20a%201%20hour%20lunch%20break%20at%2012%20PM%20-%201%20PM%26nbsp%3B%3CSTRONG%3E7.5%20hours%20total%3C%2FSTRONG%3E)%20and%20%3CSTRONG%3EONLY%3C%2FSTRONG%3E%20on%20%3CSTRONG%3EWEEKDAYS%3C%2FSTRONG%3E%20(Monday%20-%20Friday).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%3A%20Start%20Date%2FTime%20%2B%2013%20hours%20%3D%20Completion%20time.%3C%2FP%3E%3CP%3EExample%3A%20Monday%2C%20October%2014%2C%207%3A00%20am%20%2B%2013%20hours%20%3D%20%3CEM%3E%3CU%3ETuesday%20October%2015%2C%201%3A30%20pm%3C%2FU%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EObtaining%20this%20formula%20will%20allow%20me%20to%20calculate%20the%20estimated%20completion%20time%20of%20the%20following%20processes%3A%20Prep%20(1%20worker)%2C%20Weld%20(1%20worker)%2C%20Clean%20(1%20worker)%2C%20and%20a%20final%20Completion%20Date.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20next%20step%20is%20determining%20the%20%3CEM%3E%3CU%3Ecompletion%20date%3C%2FU%3E%3C%2FEM%3E%20of%20the%20job%20entirely%2C%20which%20its%20value%20is%3A%3C%2FP%3E%3CP%3E%3CEM%3ECLEAN(1%20Worker)%3D((time%20and%20date%20value))%2B%26nbsp%3B%3C%2FEM%3E1%20day%20(or%20the%20remainder%20of%20the%20shift.).%20The%20solution%20being%20the%20following%20day%20at%20the%20start%20of%20the%20shift%20(7%3A00%20AM).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%3A%26nbsp%3BMonday%2C%20October%2014%2C%202%3A00%20pm%20%2B%20Remainder%20of%20the%20shift%20(OR%20start%20of%20the%20next%20shift)%20%3D%3CBR%20%2F%3ETuesday%20October%2015%207%3A00%20AM.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20Help!%20These%20formulas%20are%20beyond%20my%20skill%20level%20with%20excel%20and%20i%20would%20greatly%20appreciate%20anyone%20being%20able%20to%20point%20me%20in%20the%20right%20direction!%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-909075%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-910417%22%20slang%3D%22en-US%22%3ERe%3A%20Calculating%20job%20estimates%20within%20working%20days%20and%20hours%20(in%20Excel).%20Help%20Please!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-910417%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F374276%22%20target%3D%22_blank%22%3E%40Shawn_Michaud%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20the%20attached%20file%2C%20the%20formula%20in%20G2%2C%20copied%20across%20to%20I2%2C%20is%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DF2%2BC2%2F24%2B%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E1%2F24*((MOD(F2%2BC2%2F24%2C1)%26gt%3B12%2F24)*(MOD(F2%2BC2%2F24%2C1)%26lt%3B13%2F24))%2B%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E15.5%2F24*(MOD(F2%2BC2%2F24%2C1)%26gt%3B15.5%2F24)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EI%20hope%20you%20can%20apply%20the%20idea%20of%20the%20foregoing%20formula%20to%20suit%20your%20needs.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-915640%22%20slang%3D%22en-US%22%3ERe%3A%20Calculating%20job%20estimates%20within%20working%20days%20and%20hours%20(in%20Excel).%20Help%20Please!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-915640%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20for%20your%20effort%20but...%3C%2FP%3E%3CP%3EThis%20formula%20was%20%3CSTRONG%3E%3CU%3Enot%3C%2FU%3E%3C%2FSTRONG%3E%20successful%20in%20making%20the%20calculations%20for%20my%20document.%3C%2FP%3E%3CP%3EI%20substituted%20it%20in%20and%20changed%20the%20values%20to%20the%20proper%20cells%2C%20and%20yet%20it%20seems%20to%20still%20be%20calculating%20Saturdays%20and%20well%20into%20the%20late%20hours%20of%20the%20night%20(3%20AM)%20.%20As%20you%20can%20see%20in%20the%20linked%20document.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20use%20the%20test%20document%20provided%20for%20your%20solutions%20rather%20than%20creating%20a%20new%20document.%3C%2FP%3E%3CP%3EThe%20formula%20is%20required%20to%20work%20in%20the%20documents%20current%20format.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-924828%22%20slang%3D%22en-US%22%3ERe%3A%20Calculating%20job%20estimates%20within%20working%20days%20and%20hours%20(in%20Excel).%20Help%20Please!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-924828%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20formula%20could%20work%20great%2C%20but%20has%20complications%20when%20using%20it%20in%20the%20document%20i%20provided.%3C%2FP%3E%3CP%3EI%20assume%20that%20is%20why%20you%20decided%20to%20create%20a%20second%20document%20and%20use%20percentages%20instead%20of%20formulas%20to%20obtain%20number%20values.%20(Which%20defeats%20the%20purpose%20of%20this%20formula%20if%20its%20not%20usable%20in%20the%20provided%20documents%20format).%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIts%20works%20fine%20if%20the%20PREP(T)%2C%20WELD%20(T)%2C%20or%20CLEAN(T)%26nbsp%3B%20value%20is%20provided%20as%20a%20single%20number.%3C%2FP%3E%3CP%3EBut%20DOES%20NOT%20work%20if%20a%20formula%20is%20needed%20to%20obtain%20this%20number%20(which%20it%20is%20in%20every%20case).%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20will%20continue%20to%20calculate%20%3CSTRONG%3Eoutside%20%3C%2FSTRONG%3Eworking%20ours%20and%20into%20%3CSTRONG%3Eweekends%3C%2FSTRONG%3E%20which%20defeats%20the%20purpose%20entirely.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%20for%20the%20COMPLETED%20date%20portion%20I%20was%20requesting%20a%20formula%20to%20add%20%2B1%20day%20to%20the%20CLEAN(T)%26nbsp%3B%20value%20(with%20the%20time%20value%20always%20landing%20at%207%3A00%20am)%20if%20possible.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20anyone%20able%20to%20help%20me%20make%20this%20work%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-924842%22%20slang%3D%22en-US%22%3ERe%3A%20Calculating%20job%20estimates%20within%20working%20days%20and%20hours%20(in%20Excel).%20Help%20Please!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-924842%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20see%20how%20this%20solution%20was%20unsuccessful%20in%20the%20attached%20document.%26nbsp%3B%3C%2FP%3E%3CP%3E(Its%20calculating%20out%20of%20working%20hours%20and%20on%20weekends).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-927178%22%20slang%3D%22en-US%22%3ERe%3A%20Calculating%20job%20estimates%20within%20working%20days%20and%20hours%20(in%20Excel).%20Help%20Please!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-927178%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20formula%20works%20great%20thank%20you%20very%20much!%3CBR%20%2F%3EIf%20I%20wanted%20to%20apply%20this%20to%20say%20two%20or%20three%20workers%20which%20values%20should%20i%20be%20switching%20out%20in%20the%20provided%20formula%20if%20possible%3F%20I've%20tried%20swapping%20out%20all%20of%20the%207.5%20values%20in%20the%20formula%20for%2015%20but%20it%20doesn't%20seem%20to%20be%20working.%20I%20assume%20I%20may%20be%20approaching%20this%20the%20wrong%20way%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%3A%3CBR%20%2F%3E1%20worker%20%3D%207.5%20working%20hours%2Fday%3CBR%20%2F%3E2%20workers%20%3D%2015%20working%20hours%2Fday%3CBR%20%2F%3E3%20workers%20%3D%2022.5%20working%20hours%2Fday%3C%2FP%3E%3CP%3EAttempted%20conversion%20to%202%20workers%20example%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DK2%2BINT(D2%2F7.5)%2BMOD(D2%2C7.5)%2F24%2B%3CBR%20%2F%3EIF(MOD(K2%2C1)%26gt%3B%3D13%2F24%2CCHOOSE(1%2B(MOD(K2%2BINT(D2%2F7.5)%2BMOD(D2%2C7.5)%2F24%2C1)%26gt%3B15.5%2F24)%2C%3CBR%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2BINT(D2%2F15)%2BMOD(D2%2C15)%2F24%2C1)%26gt%3B7%2F24)%2B%3CBR%20%2F%3E(MOD(K2%2BINT(D2%2F15)%2BMOD(D2%2C15)%2F24%2C1)%26gt%3B12%2F24)%2B%3CBR%20%2F%3E(MOD(K2%2BINT(D2%2F15)%2BMOD(D2%2C15)%2F24%2C1)%26gt%3B15.5%2F24)%2C0%2C1%2C16.5))%2F24%2B%3CBR%20%2F%3E2*(K2%2BINT(D2%2F15)%2BMOD(D2%2C15)%2F24%2B%3CBR%20%2F%3EIF(MOD(K2%2C1)%26gt%3B%3D13%2F24%2CCHOOSE(1%2B(MOD(K2%2BINT(D2%2F15)%2BMOD(D2%2C15)%2F24%2C1)%26gt%3B15.5%2F24)%2C%3CBR%20%2F%3E0%2C15.5)%2CCHOOSE((MOD(K2%2BINT(D2%2F15)%2BMOD(D2%2C15)%2F24%2C1)%26gt%3B7%2F24)%2B%3CBR%20%2F%3E(MOD(K2%2BINT(D2%2F15)%2BMOD(D2%2C15)%2F24%2C1)%26gt%3B12%2F24)%2B%3CBR%20%2F%3E(MOD(K2%2BINT(D2%2F15)%2BMOD(D2%2C15)%2F24%2C1)%26gt%3B15.5%2F24)%2C0%2C1%2C16.5))%2F24%26gt%3B%3CBR%20%2F%3EINT(K2)%2BCHOOSE(WEEKDAY(K2)%2C5%2C4%2C3%2C2%2C1%2C0%2C6)%2B15.5%2F24)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20assume%20I'm%20doing%20this%20the%20wrong%20way.%3CBR%20%2F%3EAre%20there%20specific%20areas%20within%20this%20formula%20that%20i%20may%20be%20able%20to%20substitute%20values%20to%20calculate%20these%20days%20with%202%20or%20even%202%20workers%20instead%20of%20one%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-926534%22%20slang%3D%22en-US%22%3ERe%3A%20Calculating%20job%20estimates%20within%20working%20days%20and%20hours%20(in%20Excel).%20Help%20Please!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-926534%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F374276%22%20target%3D%22_blank%22%3E%40Shawn_Michaud%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20the%20attached%20version%20of%20your%20file%2C%20the%20formula%20in%20L2%2C%20copied%20across%20to%20N2%2C%20is%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DK2%2BINT(D2%2F7.5)%2BMOD(D2%2C7.5)%2F24%2B%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3EIF(MOD(K2%2C1)%26gt%3B%3D13%2F24%2CCHOOSE(1%2B(MOD(K2%2BINT(D2%2F7.5)%2BMOD(D2%2C7.5)%2F24%2C1)%26gt%3B15.5%2F24)%2C%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E0%2C15.5)%2CCHOOSE((MOD(K2%2BINT(D2%2F7.5)%2BMOD(D2%2C7.5)%2F24%2C1)%26gt%3B7%2F24)%2B%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E(MOD(K2%2BINT(D2%2F7.5)%2BMOD(D2%2C7.5)%2F24%2C1)%26gt%3B12%2F24)%2B%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E(MOD(K2%2BINT(D2%2F7.5)%2BMOD(D2%2C7.5)%2F24%2C1)%26gt%3B15.5%2F24)%2C0%2C1%2C16.5))%2F24%2B%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E2*(K2%2BINT(D2%2F7.5)%2BMOD(D2%2C7.5)%2F24%2B%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3EIF(MOD(K2%2C1)%26gt%3B%3D13%2F24%2CCHOOSE(1%2B(MOD(K2%2BINT(D2%2F7.5)%2BMOD(D2%2C7.5)%2F24%2C1)%26gt%3B15.5%2F24)%2C%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E0%2C15.5)%2CCHOOSE((MOD(K2%2BINT(D2%2F7.5)%2BMOD(D2%2C7.5)%2F24%2C1)%26gt%3B7%2F24)%2B%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E(MOD(K2%2BINT(D2%2F7.5)%2BMOD(D2%2C7.5)%2F24%2C1)%26gt%3B12%2F24)%2B%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E(MOD(K2%2BINT(D2%2F7.5)%2BMOD(D2%2C7.5)%2F24%2C1)%26gt%3B15.5%2F24)%2C0%2C1%2C16.5))%2F24%26gt%3B%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3EINT(K2)%2BCHOOSE(WEEKDAY(K2)%2C5%2C4%2C3%2C2%2C1%2C0%2C6)%2B15.5%2F24)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EIn%20O2%2C%20the%20formula%20is%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DWORKDAY(N2%2C1)%2B%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E7%2F24%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EI%20hope%20that%20the%20foregoing%20formulas%20will%20now%20return%20your%20expected%20results%2C%20as%20shown%20here%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20917px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F139439i0B26BCFA044EF35B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Completion%20Time.PNG%22%20title%3D%22Completion%20Time.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-910419%22%20slang%3D%22en-US%22%3ERe%3A%20Calculating%20job%20estimates%20within%20working%20days%20and%20hours%20(in%20Excel).%20Help%20Please!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-910419%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F374276%22%20target%3D%22_blank%22%3E%40Shawn_Michaud%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20the%20attached%20file%2C%20the%20formula%20in%20G2%2C%20copied%20across%20to%20I2%2C%20is%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DF2%2BC2%2F24%2B%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E1%2F24*((MOD(F2%2C1)%26lt%3B12%2F24)*(MOD(F2%2BC2%2F24%2C1)%26gt%3B12%2F24)*(MOD(F2%2BC2%2F24%2C1)%26lt%3B15.5%2F24))%2B%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E16.5%2F24*((MOD(F2%2C1)%26lt%3B12%2F24)*(MOD(F2%2BC2%2F24%2C1)%26gt%3B15.5%2F24))%2B%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E15.5%2F24*((MOD(F2%2C1)%26gt%3B12%2F24)*(MOD(F2%2BC2%2F24%2C1)%26gt%3B15.5%2F24))%2B%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E2*((MOD(F2%2BC2%2F24%2C1)%26gt%3B15.5%2F24)*(WEEKDAY(F2%2BC2%2F24)%26gt%3B5))%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EI%20hope%20that%20the%20idea%20of%20the%20foregoing%20formula%20will%20suit%20your%20needs.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-927248%22%20slang%3D%22en-US%22%3ERe%3A%20Calculating%20job%20estimates%20within%20working%20days%20and%20hours%20(in%20Excel).%20Help%20Please!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-927248%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20some%20reason%20its%20not%20letting%20me%20respond%20with%20a%20reply.%3C%2FP%3E%3CP%3EThis%20is%20a%20test.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-927260%22%20slang%3D%22en-US%22%3ERe%3A%20Calculating%20job%20estimates%20within%20working%20days%20and%20hours%20(in%20Excel).%20Help%20Please!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-927260%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20formula%20works%20great%20thank%20you%20very%20much!%3CBR%20%2F%3EIf%20I%20wanted%20to%20apply%20this%20to%20say%20two%20or%20three%20workers%20which%20values%20should%20i%20be%20switching%20out%20in%20the%20provided%20formula%20if%20possible%3F%20I've%20tried%20swapping%20out%20all%20of%20the%207.5%20values%20in%20the%20formula%20for%2015%20but%20it%20doesn't%20seem%20to%20be%20working.%20I%20assume%20I%20may%20be%20approaching%20this%20the%20wrong%20way%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%3A%3CBR%20%2F%3E1%20worker%20%3D%207.5%20working%20hours%2Fday%3CBR%20%2F%3E2%20workers%20%3D%2015%20working%20hours%2Fday%3CBR%20%2F%3E3%20workers%20%3D%2022.5%20working%20hours%2Fday%3C%2FP%3E%3CP%3EAttempted%20conversion%20to%202%20workers%20example%20(%20I%20converted%20the%20formula%20to)%3A%3C%2FP%3E%3CP%3E%3DK2%2BINT(D2%2F15)%2BMOD(D2%2C15)%2F24%2B%3CBR%20%2F%3EIF(MOD(K2%2C1)%26gt%3B%3D13%2F24%2CCHOOSE(1%2B(MOD(K2%2BINT(D2%2F15)%2BMOD(D2%2C15)%2F24%2C1)%26gt%3B15.5%2F24)%2C%3CBR%20%2F%3E0%2C15.5)%2CCHOOSE((MOD(K2%2BINT(D2%2F15)%2BMOD(D2%2C15)%2F24%2C1)%26gt%3B7%2F24)%2B%3CBR%20%2F%3E(MOD(K2%2BINT(D2%2F15)%2BMOD(D2%2C15)%2F24%2C1)%26gt%3B12%2F24)%2B%3CBR%20%2F%3E(MOD(K2%2BINT(D2%2F15)%2BMOD(D2%2C15)%2F24%2C1)%26gt%3B15.5%2F24)%2C0%2C1%2C16.5))%2F24%2B%3CBR%20%2F%3E2*(K2%2BINT(D2%2F15)%2BMOD(D2%2C15)%2F24%2B%3CBR%20%2F%3EIF(MOD(K2%2C1)%26gt%3B%3D13%2F24%2CCHOOSE(1%2B(MOD(K2%2BINT(D2%2F15)%2BMOD(D2%2C15)%2F24%2C1)%26gt%3B15.5%2F24)%2C%3CBR%20%2F%3E0%2C15.5)%2CCHOOSE((MOD(K2%2BINT(D2%2F15)%2BMOD(D2%2C15)%2F24%2C1)%26gt%3B7%2F24)%2B%3CBR%20%2F%3E(MOD(K2%2BINT(D2%2F15)%2BMOD(D2%2C15)%2F24%2C1)%26gt%3B12%2F24)%2B%3CBR%20%2F%3E(MOD(K2%2BINT(D2%2F15)%2BMOD(D2%2C15)%2F24%2C1)%26gt%3B15.5%2F24)%2C0%2C1%2C16.5))%2F24%26gt%3B%3CBR%20%2F%3EINT(K2)%2BCHOOSE(WEEKDAY(K2)%2C5%2C4%2C3%2C2%2C1%2C0%2C6)%2B15.5%2F24)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20assume%20I'm%20doing%20this%20the%20wrong%20way.%3CBR%20%2F%3EAre%20there%20specific%20areas%20within%20this%20formula%20that%20i%20may%20be%20able%20to%20substitute%20values%20to%20calculate%20these%20days%20with%202%20or%20even%203%20workers%20instead%20of%20one%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-927449%22%20slang%3D%22en-US%22%3ERe%3A%20Calculating%20job%20estimates%20within%20working%20days%20and%20hours%20(in%20Excel).%20Help%20Please!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-927449%22%20slang%3D%22en-US%22%3EWhat%20if%20you%20may%20also%20use%204%20or%20more%20workers%3F%20I%20recommend%20that%20you%20first%20have%20a%20cell%20that%20returns%20the%20optimal%20number%20of%20workers%2C%20whereafter%20subsequent%20formulas%20shall%20be%20based%20therefrom.%20Another%20formula%20must%20return%20such%20optimal%20number.%20Expectedly%2C%20the%20ultimate%20subsequent%20formula%20shall%20be%20longer%20and%20more%20complex%20than%20that%20which%20I%20painstakingly%20furnished%20you.%3CBR%20%2F%3ESuccinctly%2C%20no%20separate%20formula%20need%20to%20be%20calculated%20for%20all%20possible%20number%20of%20alternatives%20that%20we%20may%20conceive.%20The%20only%20relevant%20calculation%20would%20be%20for%20the%20best%20possible%20alternative%20that%20we%20should%20choose%2C%20given%20the%20most%20probable%20circumstances%20that%20may%20occur.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-927245%22%20slang%3D%22en-US%22%3ERe%3A%20Calculating%20job%20estimates%20within%20working%20days%20and%20hours%20(in%20Excel).%20Help%20Please!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-927245%22%20slang%3D%22en-US%22%3EThis%20formula%20works%20great%20thank%20you%20very%20much!%3CBR%20%2F%3EIf%20I%20wanted%20to%20apply%20this%20to%20say%20two%20or%20three%20workers%20which%20values%20should%20i%20be%20switching%20out%20in%20the%20provided%20formula%20if%20possible%3F%20I've%20tried%20swapping%20out%20all%20of%20the%207.5%20values%20in%20the%20formula%20for%2015%20but%20it%20doesn't%20seem%20to%20be%20working.%20I%20assume%20I%20may%20be%20approaching%20this%20the%20wrong%20way%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EExample%3A%3CBR%20%2F%3E1%20worker%20%3D%207.5%20working%20hours%2Fday%3CBR%20%2F%3E2%20workers%20%3D%2015%20working%20hours%2Fday%3CBR%20%2F%3E3%20workers%20%3D%2022.5%20working%20hours%2Fday%3CBR%20%2F%3E%3CBR%20%2F%3EAttempted%20conversion%20to%202%20workers%20example%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3DK2%2BINT(D2%2F7.5)%2BMOD(D2%2C7.5)%2F24%2B%3CBR%20%2F%3EIF(MOD(K2%2C1)%26gt%3B%3D13%2F24%2CCHOOSE(1%2B(MOD(K2%2BINT(D2%2F7.5)%2BMOD(D2%2C7.5)%2F24%2C1)%26gt%3B15.5%2F24)%2C%3CBR%20%2F%3E0%2C15.5)%2CCHOOSE((MOD(K2%2BINT(D2%2F7.5)%2BMOD(D2%2C7.5)%2F24%2C1)%26gt%3B7%2F24)%2B%3CBR%20%2F%3E(MOD(K2%2BINT(D2%2F7.5)%2BMOD(D2%2C7.5)%2F24%2C1)%26gt%3B12%2F24)%2B%3CBR%20%2F%3E(MOD(K2%2BINT(D2%2F7.5)%2BMOD(D2%2C7.5)%2F24%2C1)%26gt%3B15.5%2F24)%2C0%2C1%2C16.5))%2F24%2B%3CBR%20%2F%3E2*(K2%2BINT(D2%2F7.5)%2BMOD(D2%2C7.5)%2F24%2B%3CBR%20%2F%3EIF(MOD(K2%2C1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(MOD(K2%2BINT(D2%2F15)%2BMOD(D2%2C15)%2F24%2C1)%26gt%3B15.5%2F24)%2C%3CBR%20%2F%3E0%2C15.5)%2CCHOOSE((MOD(K2%2BINT(D2%2F15)%2BMOD(D2%2C15)%2F24%2C1)%26gt%3B7%2F24)%2B%3CBR%20%2F%3E(MOD(K2%2BINT(D2%2F15)%2BMOD(D2%2C15)%2F24%2C1)%26gt%3B12%2F24)%2B%3CBR%20%2F%3E(MOD(K2%2BINT(D2%2F15)%2BMOD(D2%2C15)%2F24%2C1)%26gt%3B15.5%2F24)%2C0%2C1%2C16.5))%2F24%26gt%3B%3CBR%20%2F%3EINT(K2)%2BCHOOSE(WEEKDAY(K2)%2C5%2C4%2C3%2C2%2C1%2C0%2C6)%2B15.5%2F24)%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EI%20assume%20I'm%20doing%20this%20the%20wrong%20way.%3CBR%20%2F%3EAre%20there%20specific%20areas%20within%20this%20formula%20that%20i%20may%20be%20able%20to%20substitute%20values%20to%20calculate%20these%20days%20with%202%20or%20even%203%20workers%20instead%20of%20one%3F%3C%2FLINGO-BODY%3E
Shawn_Michaud
Occasional Contributor

Hello, 

I'm currently having a lot of trouble calculating estimates within working hours in excel. 

Ill try to explain to the best of my ability what i am trying to accomplish.

Attached is my current documents for a reference (with added notes for clarity).

The Scheduling Test 1 document is just connected for an easy way for me to sort priorities which doesn't apply here. The main document is Estimate Test 1.

 

I'm looking for a formula that will add a specific amount of hours to a specific date and time ONLY during WORK HOURS (7:00 am - 3:30 pm with a 1 hour lunch break at 12 PM - 1 PM 7.5 hours total) and ONLY on WEEKDAYS (Monday - Friday).

 

Example: Start Date/Time + 13 hours = Completion time.

Example: Monday, October 14, 7:00 am + 13 hours = Tuesday October 15, 1:30 pm

 

Obtaining this formula will allow me to calculate the estimated completion time of the following processes: Prep (1 worker), Weld (1 worker), Clean (1 worker), and a final Completion Date.

 

The next step is determining the completion date of the job entirely, which its value is:

CLEAN(1 Worker)=((time and date value))+ 1 day (or the remainder of the shift.). The solution being the following day at the start of the shift (7:00 AM).

 

Example: Monday, October 14, 2:00 pm + Remainder of the shift (OR start of the next shift) =
Tuesday October 15 7:00 AM.

 

Please Help! These formulas are beyond my skill level with excel and i would greatly appreciate anyone being able to point me in the right direction! 

Thanks. 

 

5 Replies

@Shawn_Michaud 

In the attached file, the formula in G2, copied across to I2, is: 

=F2+C2/24+
1/24*((MOD(F2,1)<12/24)*(MOD(F2+C2/24,1)>12/24)*(MOD(F2+C2/24,1)<15.5/24))+
16.5/24*((MOD(F2,1)<12/24)*(MOD(F2+C2/24,1)>15.5/24))+
15.5/24*((MOD(F2,1)>12/24)*(MOD(F2+C2/24,1)>15.5/24))+
2*((MOD(F2+C2/24,1)>15.5/24)*(WEEKDAY(F2+C2/24)>5))

I hope that the idea of the foregoing formula will suit your needs. 

@Twifoo 

The formula could work great, but has complications when using it in the document i provided.

I assume that is why you decided to create a second document and use percentages instead of formulas to obtain number values. (Which defeats the purpose of this formula if its not usable in the provided documents format). 

 

Its works fine if the PREP(T), WELD (T), or CLEAN(T)  value is provided as a single number.

But DOES NOT work if a formula is needed to obtain this number (which it is in every case). 

It will continue to calculate outside working ours and into weekends which defeats the purpose entirely.

 

Also for the COMPLETED date portion I was requesting a formula to add +1 day to the CLEAN(T)  value (with the time value always landing at 7:00 am) if possible. 

 

Is anyone able to help me make this work?

@Twifoo 

 

You can see how this solution was unsuccessful in the attached document. 

(Its calculating out of working hours and on weekends).

Solution

@Shawn_Michaud 

In the attached version of your file, the formula in L2, copied across to N2, is: 

=K2+INT(D2/7.5)+MOD(D2,7.5)/24+
IF(MOD(K2,1)>=13/24,CHOOSE(1+(MOD(K2+INT(D2/7.5)+MOD(D2,7.5)/24,1)>15.5/24),
0,15.5),CHOOSE((MOD(K2+INT(D2/7.5)+MOD(D2,7.5)/24,1)>7/24)+
(MOD(K2+INT(D2/7.5)+MOD(D2,7.5)/24,1)>12/24)+
(MOD(K2+INT(D2/7.5)+MOD(D2,7.5)/24,1)>15.5/24),0,1,16.5))/24+
2*(K2+INT(D2/7.5)+MOD(D2,7.5)/24+
IF(MOD(K2,1)>=13/24,CHOOSE(1+(MOD(K2+INT(D2/7.5)+MOD(D2,7.5)/24,1)>15.5/24),
0,15.5),CHOOSE((MOD(K2+INT(D2/7.5)+MOD(D2,7.5)/24,1)>7/24)+
(MOD(K2+INT(D2/7.5)+MOD(D2,7.5)/24,1)>12/24)+
(MOD(K2+INT(D2/7.5)+MOD(D2,7.5)/24,1)>15.5/24),0,1,16.5))/24>
INT(K2)+CHOOSE(WEEKDAY(K2),5,4,3,2,1,0,6)+15.5/24)

In O2, the formula is: 

=WORKDAY(N2,1)+
7/24

I hope that the foregoing formulas will now return your expected results, as shown here: 

Completion Time.PNG

 

This formula works great thank you very much!
If I wanted to apply this to say two or three workers which values should i be switching out in the provided formula if possible? I've tried swapping out all of the 7.5 values in the formula for 15 but it doesn't seem to be working. I assume I may be approaching this the wrong way?

 

Example:
1 worker = 7.5 working hours/day
2 workers = 15 working hours/day
3 workers = 22.5 working hours/day

Attempted conversion to 2 workers example:

 

=K2+INT(D2/7.5)+MOD(D2,7.5)/24+
IF(MOD(K2,1)>=13/24,CHOOSE(1+(MOD(K2+INT(D2/7.5)+MOD(D2,7.5)/24,1)>15.5/24),
0,15.5),CHOOSE((MOD(K2+INT(D2/7.5)+MOD(D2,7.5)/24,1)>7/24)+
(MOD(K2+INT(D2/7.5)+MOD(D2,7.5)/24,1)>12/24)+
(MOD(K2+INT(D2/7.5)+MOD(D2,7.5)/24,1)>15.5/24),0,1,16.5))/24+
2*(K2+INT(D2/7.5)+MOD(D2,7.5)/24+
IF(MOD(K2,1)>=13/24,CHOOSE(1+(MOD(K2+INT(D2/7.5)+MOD(D2,7.5)/24,1)>15.5/24),
0,15.5),CHOOSE((MOD(K2+INT(D2/7.5)+MOD(D2,7.5)/24,1)>7/24)+
(MOD(K2+INT(D2/7.5)+MOD(D2,7.5)/24,1)>12/24)+
(MOD(K2+INT(D2/7.5)+MOD(D2,7.5)/24,1)>15.5/24),0,1,16.5))/24>
INT(K2)+CHOOSE(WEEKDAY(K2),5,4,3,2,1,0,6)+15.5/24)

converted to:

=K2+INT(D2/15)+MOD(D2,15)/24+
IF(MOD(K2,1)>=13/24,CHOOSE(1+(MOD(K2+INT(D2/15)+MOD(D2,15)/24,1)>15.5/24),
0,15.5),CHOOSE((MOD(K2+INT(D2/15)+MOD(D2,15)/24,1)>7/24)+
(MOD(K2+INT(D2/15)+MOD(D2,15)/24,1)>12/24)+
(MOD(K2+INT(D2/15)+MOD(D2,15)/24,1)>15.5/24),0,1,16.5))/24+
2*(K2+INT(D2/15)+MOD(D2,15)/24+
IF(MOD(K2,1)>=13/24,CHOOSE(1+(MOD(K2+INT(D2/15)+MOD(D2,15)/24,1)>15.5/24),
0,15.5),CHOOSE((MOD(K2+INT(D2/15)+MOD(D2,15)/24,1)>7/24)+
(MOD(K2+INT(D2/15)+MOD(D2,15)/24,1)>12/24)+
(MOD(K2+INT(D2/15)+MOD(D2,15)/24,1)>15.5/24),0,1,16.5))/24>
INT(K2)+CHOOSE(WEEKDAY(K2),5,4,3,2,1,0,6)+15.5/24)

 

I assume I'm doing this the wrong way.
Are there specific areas within this formula that i may be able to substitute values to calculate these days with 2 or even 3 workers instead of one?

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies