SOLVED
Home

Formula help

%3CLINGO-SUB%20id%3D%22lingo-sub-185167%22%20slang%3D%22en-US%22%3EFormula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-185167%22%20slang%3D%22en-US%22%3E%3CP%3EI%20need%20help%20creating%20the%20formula%20for%20cell%20F3.%20Stating%20that%20if%20cell%20D3%20is%20as%20follows%3A%3C%2FP%3E%3CP%3E1-5%3D0%3C%2FP%3E%3CP%3E6-8%3D3%3C%2FP%3E%3CP%3E9-11%3D4%3C%2FP%3E%3CP%3E12-14%3D6%3C%2FP%3E%3CP%3E15-17%3D8%3C%2FP%3E%3CP%3E18-19%3D10%3C%2FP%3E%3CP%3E20-21%3D12%3C%2FP%3E%3CP%3E22%2B%3D15%3C%2FP%3E%3CP%3EI'm%20sure%20its%20a%20simple%20formula%20but%20I%20have%20no%20idea%20of%20what%20it%20is.%20Thanks%20for%20any%20help%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-185167%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20%26amp%3B%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-354162%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-354162%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Jeremy%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20do%20that%20by%20setting%20some%20Conditional%20Formatting%20rules%20that%20powered%20by%20formulas.%3C%2FP%3E%3CP%3EPlease%20find%20the%20attached%20file%20to%20see%20how%20these%20rules%20can%20be%20applied.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWith%20regards%20to%20the%20email%20alerts%2C%20I'm%20sorry!%20But%20it's%20not%20easy%20to%20implement%20in%20Excel.%3C%2FP%3E%3CP%3EYou%20definitely%20need%20to%20some%20VBA%20codes%20or%20third-party%20solutions%20to%20do%20so!%3C%2FP%3E%3CP%3EI%20would%20suggest%20you%20ask%20this%20%3CA%20href%3D%22https%3A%2F%2Fstackoverflow.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ecommunity%3C%2FA%3E%20for%20that.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20that%20helps%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-353242%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-353242%22%20slang%3D%22en-US%22%3E%3CP%3EAlso%20is%20there%20a%20way%20to%20setup%20an%20alert%20to%20my%20email%20address%20from%20any%20exp%20dates%20that%20go%20red%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-353241%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-353241%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Haytham%2C%3C%2FP%3E%3CP%3EWhat%20I'm%20wanting%20to%20do%20is%20have%20the%20Exp%20dates%20color%20coded%20by%20dates%20out.%20So%20for%20example%2C%20if%20the%20exp%20date%20is%20within%20a%20month%20of%20the%20current%20date%20it%20would%20be%20red%2C%20if%20the%20exp%20date%20is%201-3%20months%20away%20from%20current%20date%2C%20if%20between%204-12%20months%20away%20it%20would%20be%26nbsp%3Bblue%20and%20greater%20than%2012%20months%20away%20would%20be%20green.%20any%20help%20would%20be%20appreciated.%20Thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-277976%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-277976%22%20slang%3D%22en-US%22%3EThanks%20a%20lot%20Haytham%2C%20that%20has%20been%20very%20helpful%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-277928%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-277928%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F234034%22%20target%3D%22_blank%22%3E%40Sameh%20Rafik%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat's%20because%20the%20table%20of%20seasons%20in%20the%20Arrays%20sheet%20isn't%20sorted!%3C%2FP%3E%3CP%3EIt%20MUST%20be%20sorted%20to%20get%20the%20correct%20result%20from%20the%20LOOKUP%20function.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyway%2C%20I've%20sorted%20it%20for%20you.%3C%2FP%3E%3CP%3EPlease%20find%20the%20attached%20file.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EHaytham%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-277871%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-277871%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Haytham%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20actually%20tried%20the%20same%20formula%20for%20the%20attached%20sheet%2C%20but%20it%20does%20not%20give%20the%20correct%20output%20most%20of%20the%20time%2C%20I%20wanted%20to%20categorize%20the%20C%20column%20to%20different%20seasons%20depending%20on%20the%20range%20of%20dates%2C%20wondering%20if%20you%20can%20help%20me%20%3A)%3C%2FP%3E%3CP%3EThanks%20in%20advance%2C%3C%2FP%3E%3CP%3ESameh%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-271632%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-271632%22%20slang%3D%22en-US%22%3E%3CP%3EAGAIN!%2C%20I%20say%20thank%20you%20sir.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-271437%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-271437%22%20slang%3D%22en-US%22%3E%3CP%3EOf%20course%2C%20you%20do%20that.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJust%20change%20the%20formula%20in%20cell%20D21%20to%20this%3A%3C%2FP%3E%3CPRE%3E%3DTEXT(D14*24%2C%220.00%22)%3C%2FPRE%3E%3CP%3EAnd%20then%2C%20copy%20it%20to%20the%20right%20until%20cell%20J21.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20that%2C%20use%20this%20formula%20in%20cell%20K21%20to%20get%20the%20total.%3C%2FP%3E%3CPRE%3E%3DSUMPRODUCT(VALUE(D21%3AJ21))%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20find%20the%20attached%20file%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-271427%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-271427%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20Sir.%20Is%20there%20anyway%20to%20have%20the%20totals%20correspond%20as%20on%20the%20tab%20at%20the%20bottom%20%22Hours%20Converted%22%20so%20that%20say%20on%20D21%2010%3A15%20translates%20to%2010.25%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-270937%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-270937%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Jeremy%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFormulas%20in%20cells%20D14%20to%20J14%20are%20works%20just%20fine!%3C%2FP%3E%3CP%3ETo%20get%20the%20correct%20to%20total%20in%20cell%20K21%2C%20all%20you%20have%20to%20do%20is%20to%20multiply%20the%20total%20by%2024%20as%20follows%3A%3C%2FP%3E%3CPRE%3E%3DTEXT(SUM(D21%3AJ21)*24%2C0)%3C%2FPRE%3E%3CP%3E%3CSTRONG%3ENOTE%3A%3C%2FSTRONG%3E%20I've%20used%20TEXT%20function%20to%20overcome%20an%20issue%20that%20may%20set%20back%20the%20format%20to%20the%20time%20format.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20also%20change%20the%20time%20format%20of%20cell%20K21%20to%20get%20the%20correct%20total%20and%20keep%20it%20in%20time%20format%20as%20the%20below%20screenshot%3A%3C%2FP%3E%3CP%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%2F56324i0C400ED0E5E5C0BF%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Time%20Format.png%22%20title%3D%22Time%20Format.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20find%20the%20attached%20file.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegard%2C%3C%2FP%3E%3CP%3EHaytham%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-270598%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-270598%22%20slang%3D%22en-US%22%3E%3CP%3EI'%20trying%20to%20get%20it%20to%20where%20I%20just%20input%20my%20time%20in%2Ftime%20out%20and%20it%20calculate%20the%20hour%20and%20then%20total%20across%20where%20it%20says%20hours%20worked%20then%20total%20across%20the%20bottom.%20Thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-187821%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-187821%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20are%20the%20man!!%20I%20wish%20I%20was%20smart%20enough%20to%20know%20all%20that%2C%20but%20at%20least%20I%20was%20smart%20enough%20and%20ask%20for%20help%2C%20and%20got%20such%20a%20great%20helper.%20Thanks%20a%20lot%2C%20again.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-187687%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-187687%22%20slang%3D%22en-US%22%3E%3CP%3EOK%2C%20I've%20updated%20the%20formula%20in%20the%20workbook%20to%20lookup%20the%20accident%20number%20instead%20of%20the%20accident%20type.%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-187573%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-187573%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20all%20your%20help%20with%20this%20Sir.%20Is%20there%20any%20way%20you%20can%20set%20it%20up%20so%20that%20under%20Accident%20I%20can%20put%201-20%20depending%20on%20the%20accident%2Fincident%20and%20then%20those%20points%20would%20still%20go%20in%20the%20points%20assessed%20column%2C%20without%20doing%20anything%20with%20the%20speed%20limit%2Factual%20speed%20columns%3F%20Thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-187500%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-187500%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Jeremy%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20updated%20the%20workbook%20with%20the%20possible%20solution!%3C%2FP%3E%3CP%3EPlease%20test%20it%2C%20and%20refer%20back%20to%20me%20if%20you%20have%20any%20further%20concerns.%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-187452%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-187452%22%20slang%3D%22en-US%22%3E%3CP%3ECan%20some%20one%20tell%20me%20the%20formula%20to%20get%20what%20is%20in%20cell%20E3%26nbsp%3Bon%20the%20Violation%20Tracker%20which%20would%20be%20inputted%20from%20column%20A%20on%20the%20Preventable%20Accidents%20Tab%20and%20then%20have%20the%20points%20that%20are%20assessed%20to%20that%20number%20added%20into%20the%20formula%20for%20cell%20G%20on%20the%20Violation%20Tracker%20Tab%3F%26nbsp%3B%20I%20want%20the%20points%20assessed%20to%20include%20the%20points%20from%20the%20points%20assessed%20conditions%20and%20preventable%20accidents%20if%20that%20is%20even%20possible.%20Thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-185241%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-185241%22%20slang%3D%22en-US%22%3E%3CP%3ESWEET%2C%20Thank%20you%20so%20much.%20I%20appreciate%20it%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-185217%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-185217%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Jeremy%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20updated%20your%20workbook%20with%20this%20formula%20in%20cell%20F3%3A%3C%2FP%3E%3CPRE%3E%3DIFERROR(LOOKUP(D3%2C'Points%20Assessed%20Conditions'!%24A%242%3A%24C%249)%2C%22%22)%3C%2FPRE%3E%3CP%3EIt%20refers%20to%20a%20table%20in%20a%20separate%20sheet%20called%26nbsp%3B%3CSTRONG%3EPoints%20Assessed%20Conditions%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3EI%20did%20that%2C%20to%20make%20it%20easy%20for%20you%20in%20the%20future%20if%20you%20want%20to%20update%20the%20conditions.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3EIf%20you%20don't%20want%20that%2C%20you%20can%20hardcode%20the%20conditions%20in%20the%20formula%20as%20follows%3A%3C%2FSPAN%3E%3C%2FP%3E%3CPRE%3E%3CSPAN%20class%3D%22%22%3E%3DIFERROR(LOOKUP(D3%2C%7B1%2C5%2C0%3B6%2C8%2C3%3B9%2C11%2C4%3B12%2C14%2C6%3B15%2C17%2C8%3B18%2C19%2C10%3B20%2C21%2C12%3B22%2C0%2C15%7D)%2C%22%22)%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20find%20the%20attached%20file.%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-185206%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-185206%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20would%20I%20do%20it%20for%20the%20attached%20spreadsheet%3F%20I%20want%20the%20cells%20in%20column%20F%20reflect%20what%20is%20in%20column%20D%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-185180%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-185180%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Jeremy%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20use%20this%20formula%20in%20cell%20F3%3A%3C%2FP%3E%3CPRE%3E%3DLOOKUP(E3%2CA2%3AC9)%3C%2FPRE%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20766px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F32663iC448EB8E995B264B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22FromTo.png%22%20title%3D%22FromTo.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20find%20the%20attached%20file.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3C%2FLINGO-BODY%3E
Jeremy Wilkerson
Occasional Contributor

I need help creating the formula for cell F3. Stating that if cell D3 is as follows:

1-5=0

6-8=3

9-11=4

12-14=6

15-17=8

18-19=10

20-21=12

22+=15

I'm sure its a simple formula but I have no idea of what it is. Thanks for any help

20 Replies

Hi Jeremy,

 

You can use this formula in cell F3:

=LOOKUP(E3,A2:C9)

FromTo.png

 

Please find the attached file.

 

Regards

How would I do it for the attached spreadsheet? I want the cells in column F reflect what is in column D

Hi Jeremy,

 

I've updated your workbook with this formula in cell F3:

=IFERROR(LOOKUP(D3,'Points Assessed Conditions'!$A$2:$C$9),"")

It refers to a table in a separate sheet called Points Assessed Conditions.

I did that, to make it easy for you in the future if you want to update the conditions.

 

If you don't want that, you can hardcode the conditions in the formula as follows:

=IFERROR(LOOKUP(D3,{1,5,0;6,8,3;9,11,4;12,14,6;15,17,8;18,19,10;20,21,12;22,0,15}),"")

 

Please find the attached file.

 

Regards

SWEET, Thank you so much. I appreciate it

Can some one tell me the formula to get what is in cell E3 on the Violation Tracker which would be inputted from column A on the Preventable Accidents Tab and then have the points that are assessed to that number added into the formula for cell G on the Violation Tracker Tab?  I want the points assessed to include the points from the points assessed conditions and preventable accidents if that is even possible. Thanks

Hi Jeremy,

 

I've updated the workbook with the possible solution!

Please test it, and refer back to me if you have any further concerns.

 

Regards

Thanks for all your help with this Sir. Is there any way you can set it up so that under Accident I can put 1-20 depending on the accident/incident and then those points would still go in the points assessed column, without doing anything with the speed limit/actual speed columns? Thanks

Solution

OK, I've updated the formula in the workbook to lookup the accident number instead of the accident type.

 

Regards

You are the man!! I wish I was smart enough to know all that, but at least I was smart enough and ask for help, and got such a great helper. Thanks a lot, again.

I' trying to get it to where I just input my time in/time out and it calculate the hour and then total across where it says hours worked then total across the bottom. Thanks

Hi Jeremy,

 

Formulas in cells D14 to J14 are works just fine!

To get the correct to total in cell K21, all you have to do is to multiply the total by 24 as follows:

=TEXT(SUM(D21:J21)*24,0)

NOTE: I've used TEXT function to overcome an issue that may set back the format to the time format.

 

You can also change the time format of cell K21 to get the correct total and keep it in time format as the below screenshot:

Time Format.png

 

Please find the attached file.

 

Regard,

Haytham

Thank you Sir. Is there anyway to have the totals correspond as on the tab at the bottom "Hours Converted" so that say on D21 10:15 translates to 10.25?

Of course, you do that.

 

Just change the formula in cell D21 to this:

=TEXT(D14*24,"0.00")

And then, copy it to the right until cell J21.

 

After that, use this formula in cell K21 to get the total.

=SUMPRODUCT(VALUE(D21:J21))

 

Please find the attached file

AGAIN!, I say thank you sir.

Hi Haytham,

 

I actually tried the same formula for the attached sheet, but it does not give the correct output most of the time, I wanted to categorize the C column to different seasons depending on the range of dates, wondering if you can help me :)

Thanks in advance,

Sameh

Hi @Sameh Rafik,

 

That's because the table of seasons in the Arrays sheet isn't sorted!

It MUST be sorted to get the correct result from the LOOKUP function.

 

Anyway, I've sorted it for you.

Please find the attached file.

 

Regards,

Haytham

Thanks a lot Haytham, that has been very helpful

Hi Haytham,

What I'm wanting to do is have the Exp dates color coded by dates out. So for example, if the exp date is within a month of the current date it would be red, if the exp date is 1-3 months away from current date, if between 4-12 months away it would be blue and greater than 12 months away would be green. any help would be appreciated. Thanks

Also is there a way to setup an alert to my email address from any exp dates that go red?

Hi Jeremy,

 

You can do that by setting some Conditional Formatting rules that powered by formulas.

Please find the attached file to see how these rules can be applied.

 

With regards to the email alerts, I'm sorry! But it's not easy to implement in Excel.

You definitely need to some VBA codes or third-party solutions to do so!

I would suggest you ask this community for that.

 

Hope that helps

Related Conversations
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
22 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
28 Replies
PacketMon Components are not loading in WAC 1909
HotCakeX in Windows Admin Center on
2 Replies