SOLVED
Home

Nested IF formula in Excel 365

%3CLINGO-SUB%20id%3D%22lingo-sub-480482%22%20slang%3D%22en-US%22%3ENested%20IF%20formula%20in%20Excel%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-480482%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20Im%20having%20problems%20getting%20the%20right%20syntax%20for%20nexting%20IF%20statements.%3C%2FP%3E%3CP%3EBasically%20Im%20comparing%20values%20already%20placed%20into%20cells%20G5%2C%20H5%20and%20I5%20to%20return%20a%20value%20placed%20into%20cell%20E5.%3C%2FP%3E%3CP%3EThis%20is%20the%20logic%20Im%20attempting%20to%20create%20and%20embed%20into%20one%20cell.%3C%2FP%3E%3CP%3E%3DIF%20(G5%3D%22LOW%22%20and%20H5%3D%22LOW%22)%2C%20then%20IF%20(I5%3D%22LOW%22%2C%20%22T%22%2C%20IF(I5%3D%22HIGH%22%2C%20%22T%22%2C%20%22T%22))%3C%2FP%3E%3CP%3E%3DIF%20(G5%3D%22LOW%22%20and%20H5%3D%22HIGH%22)%20then%20IF%20(I5%3D%22LOW%22%2C%20%22T%22%2C%20IF(I5%3DHIGH%2C%20%22NT%22%2C%20%22NT%22))%3C%2FP%3E%3CP%3E%3DIF%20(G5%3D%22MODERATE%22%20and%20H5%3DLOW)%20then%20(I5%3DLOW%2C%20%22T%22%2C%20IF(I5%3D%22HIGH%22%2C%20%22NT%22%2C%20%22NT%22))%3C%2FP%3E%3CP%3E%3DIF%20(G5%3D%22MODERATE%22)%20and%20H5%3D%22HIGH%22%20then%20(I5%3D%22LOW%22%2C%20%22OT%22%2C%20IF(I5%3D%22HIGH%22%2C%20%22T%22%2C%20%22OT%22))%3C%2FP%3E%3CP%3E%3DIF%20(G5%3D%22HIGH%22%20and%20H5%3D%22LOW%22)%20then%20(I5%3DLOW%2C%20%22T%22%2C%20IF(I5%3DHIGH%2C%20%22NT%22%2C%20%22T%22))%3C%2FP%3E%3CP%3E%3DIF%20(G5%3D%22HIGH%22%20and%20H5%3D%22HIGH%22)%20then%20IF%20(I5%3D%22LOW%22%2C%20%22OT%22%2C%20IF(I5%3D%22HIGH%22%2C%20%22T%22%2C%20%22OT%22))%3C%2FP%3E%3CP%3EIf%20anyone%20can%20assist%2C%20much%20appreciated...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-480482%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-480542%22%20slang%3D%22en-US%22%3ERe%3A%20Nested%20IF%20formula%20in%20Excel%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-480542%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F324998%22%20target%3D%22_blank%22%3E%40DanGreene%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi!%20It%20seems%20that%20your%20final%20result%20can%20be%20T%2C%20NT%2C%20OT.%3C%2FP%3E%3CP%3ECan%20you%20please%20explain%20on%20your%20words%20(not%20formulas)%20the%20conditions%20to%20apply%20each%20one%20of%20the%20results%3F%3C%2FP%3E%3CP%3EPlease%20tag%20me%20so%20that%20I%20can%20come%20back%20to%20this%20thread.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-480556%22%20slang%3D%22en-US%22%3ERe%3A%20Nested%20IF%20formula%20in%20Excel%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-480556%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F324998%22%20target%3D%22_blank%22%3E%40DanGreene%3C%2FA%3E%26nbsp%3B%2C%20by%20the%20way%2C%20expressions%20like%3C%2FP%3E%0A%3CPRE%3EIF(I5%3D%22HIGH%22%2C%20%22T%22%2C%20%22T%22)%3C%2FPRE%3E%0A%3CP%3Ehave%20no%20sense%2C%20it%20always%20returns%20%22T%22%20independently%20on%20what%20do%20you%20have%20in%20I5%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-480585%22%20slang%3D%22en-US%22%3ERe%3A%20Nested%20IF%20formula%20in%20Excel%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-480585%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F302344%22%20target%3D%22_blank%22%3E%40Celia_Alves%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHello!%20Thanks%20for%20replying.%26nbsp%3B%20Yes%20I%20am%20taking%26nbsp%3B%20survey%20results%20and%20distilling%20down%20the%20results%20in%203%20categories%3A%3C%2FP%3E%3CP%3EDifficulty%2C%20Importance%2C%20and%20Frequency.%26nbsp%3B%20I%20will%20apply%20the%20logic%20of%20the%20excel%20formula%20to%20return%20a%20value%20of%20T%2C%20NT%20or%20OT%20for%20levels%20of%20training%20needed%20for%20my%20department.%3C%2FP%3E%3CP%3EDifficulty%20has%203%20levels%2C%20(low%2C%20moderate%2C%20high)%2C%20Importance%20has%202%20levels%20(low%2C%20high)%20and%20Frequency%20has%203%20levels%20(low%2C%20moderate%2C%20high)%3C%2FP%3E%3CP%3EThe%20values%20are%20assigned%20from%20other%20calculations%20from%20survey%20results%20%26lt%3B2.5%3Dlow%2C%202.6-3.4%3Dmoderate%2C%20%26gt%3B%3D3.5%3Dhigh.%3C%2FP%3E%3CP%3ESo%20in%20Cell%20E5%2C%20I%20need%20to%20compare%20values%20in%20G5%2CH5%20and%20I5%20using%20the%20logic%26nbsp%3Bformulas%20shown%20to%20ultimately%20provide%20a%20value%20of%20T%2C%20OT%2C%20or%20NT%20.%3C%2FP%3E%3CP%3EHopefully%20this%20makes%20sense!%26nbsp%3B%20thank%20you.%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-480592%22%20slang%3D%22en-US%22%3ERe%3A%20Nested%20IF%20formula%20in%20Excel%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-480592%22%20slang%3D%22en-US%22%3E%3CP%3E%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%3C%2FP%3E%3CP%3ESergei%2C%3C%2FP%3E%3CP%3Ethank%20you%20for%20the%20reply.%26nbsp%3B%20Yes%20this%20is%20true.%26nbsp%3B%20In%20my%20analysis%20of%20data%20I%20collected%20thru%26nbsp%3Bemployee%20surveys%2C%20I%20can%20distill%20the%20data%20given%20back%20into%20either%20T%2C%20OT%20or%20NT%20to%20populate%20the%20cell%20E5.%26nbsp%3B%26nbsp%3B%20Depending%20on%20what%20values%20are%20placed%20into%20G5%2C%20H5%2C%20or%20I5%2C%20the%20outcome%20may%20indeed%20show%20the%20value%20of%20%22T%22%20for%20both.%26nbsp%3B%20These%20are%20types%20of%20training%20that%26nbsp%3Bmy%20department%20will%20need%20to%20implement%26nbsp%3Baccording%20to%20those%20values.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20see%20your%20point%20though%2C%20I%20could%20rewrite%20the%20formula%20on%20those%20that%20have%20the%20same%20%22training%22%20value%20to%20simplify.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-480596%22%20slang%3D%22en-US%22%3ERe%3A%20Nested%20IF%20formula%20in%20Excel%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-480596%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F324998%22%20target%3D%22_blank%22%3E%40DanGreene%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eit%20is%20still%20not%20clear%20when%20you%20want%20T%2C%20NT%20or%20NT%20to%20appear.%3C%2FP%3E%3CP%3EIn%20your%20words%3A%3C%2FP%3E%3CP%3E-%20what%20needs%20to%20happen%20with%20the%20values%20of%20G5%2C%20H5%20and%20I5%20to%20make%20E5%20%3D%20T%3F%3C%2FP%3E%3CP%3E-%20what%20needs%20to%20happen%20with%26nbsp%3Bthe%20values%20of%20G5%2C%20H5%20and%20I5%20to%20make%20E5%20%3D%20NT%3F%3C%2FP%3E%3CP%3E-%20what%20needs%20to%26nbsp%3Bhappen%20with%20the%20values%20of%20G5%2C%20H5%20and%20I5%20to%20make%20E5%20%3D%20NT%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-480597%22%20slang%3D%22en-US%22%3ERe%3A%20Nested%20IF%20formula%20in%20Excel%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-480597%22%20slang%3D%22en-US%22%3E%3CP%3ESergei%2C%3C%2FP%3E%3CP%3ELooking%20at%20the%20example%3A%3C%2FP%3E%3CP%3E%3DIF%20(G5%3D%22LOW%22%20and%20H5%3D%22LOW%22)%2C%20then%20IF%20(I5%3D%22LOW%22%2C%20%22T%22%2C%20IF(I5%3D%22HIGH%22%2C%20%22T%22%2C%20%22T%22))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20IF(I5%3D%22HIGH%22%2C%20%22T%22%2C%20%22T%22))%20listed%20this%20way%20because%20there%20is%20a%20third%20value%20of%20%22Moderate%22%20that%20could%20be%20in%20the%20Cell%20I5%20which%20should%20return%20a%20value%20of%20%22T%22%20as%20well.%3C%2FP%3E%3CP%3Ethank%20you%3C%2FP%3E%3CP%3Edan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-480614%22%20slang%3D%22en-US%22%3ERe%3A%20Nested%20IF%20formula%20in%20Excel%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-480614%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F324998%22%20target%3D%22_blank%22%3E%40DanGreene%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDan%2C%20sorry%2C%20but%20I%20didn't%20catch.%20The%20expression%20in%20second%20part%3C%2FP%3E%0A%3CPRE%3E%3DIF(I5%3D%22LOW%22%2C%22T%22%2CIF(I5%3D%22HIGH%22%2C%22T%22%2C%22T%22))%3C%2FPRE%3E%0A%3CP%3Eis%20equal%20to%3C%2FP%3E%0A%3CPRE%3E%3D%20%22T%22%3C%2FPRE%3E%0A%3CP%3Ewill%20it%20be%20in%20I5%20%22MODERATE%22%2C%20%22LOW%22%20or%20any%20other%20value%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-480616%22%20slang%3D%22en-US%22%3ERe%3A%20Nested%20IF%20formula%20in%20Excel%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-480616%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F302344%22%20target%3D%22_blank%22%3E%40Celia_Alves%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20think%20of%20this%20has%20a%20flow%20chart%20type%20of%20analysis.%26nbsp%3B%20G5%2C%20H5%20and%20I5%20are%20prepopulated%20with%20HIGH%2C%20MODERATE%2C%20LOW.%3C%2FP%3E%3CP%3EThe%20logic%20I'm%20attempting%20is%20a%26nbsp%3Bflowchart%20type%20%26nbsp%3Blayout%3A%3C%2FP%3E%3CP%3EIF%20G5%20LOW%20AND%20H5%20LOW%20then%20Look%20in%20cell%20I5%20for%20value%20and%20place%20the%20%22T%22%2C%20%22NT%22%2C%20or%20OT%22%20in%20E5%3C%2FP%3E%3CP%3EIn%20this%20case%20G5%20and%20H5%20are%20LOW%20and%20use%20the%20following%26nbsp%3Bformula%20to%20pick%20which%20(T%2C%20OT%2C%20NT)%20to%20place%20in%20E5%26nbsp%3B%3C%2FP%3E%3CP%3EIF%20(I5%3D%22LOW%22%2C%20%22T%22%2C%20IF(I5%3D%22HIGH%22%2C%20%22T%22%2C%20%22T%22))%3C%2FP%3E%3CP%3ESince%20LOW%20is%20in%20cell%20I5%20%2C%20it%20results%20in%20%22T%22%20in%20E5.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDepending%20on%20values%20in%20G5%20and%20H5...(Low%2C%20Low%20or%20Moderate%2CHigh%20or%20High%2CHigh...ect)%20it%20changes%20how%20the%20Value%20in%20I5%20is%20interpreted%20to%20place%20the%20T%2C%20OT%2C%20or%20NT%20in%20E5.%26nbsp%3B%20Sometimes%20it%20will%20seem%20redundant%2C%20but%20the%20type%20of%20training%26nbsp%3B%20will%20cover%20multiple%20scenarios.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20Im%20explaining%20it%20correctly.%3C%2FP%3E%3CP%3Ethank%20you%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-480629%22%20slang%3D%22en-US%22%3ERe%3A%20Nested%20IF%20formula%20in%20Excel%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-480629%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F324998%22%20target%3D%22_blank%22%3E%40DanGreene%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDan%2C%20perhaps%20it's%20easier%20to%20fill%20these%20simple%20matrices%20to%20explain%20desired%20result%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20552px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F109831iAEB78BCE1951AD79%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B(in%20attached%20file)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-480638%22%20slang%3D%22en-US%22%3ERe%3A%20Nested%20IF%20formula%20in%20Excel%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-480638%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F324998%22%20target%3D%22_blank%22%3E%40DanGreene%3C%2FA%3E%2C%20unfortunately%2C%20the%20information%20you%20provide%20is%20not%20enough.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20cannot%20say%20%22%3CSPAN%3EDepending%20on%20values%20in%20G5%20and%20H5...(Low%2C%20Low%20or%20Moderate%2CHigh%20or%20High%2CHigh...ect)%20it%20changes%20how%20the%20Value%20in%20I5%20is%20interpreted%20to%20place%20the%20T%2C%20OT%2C%20or%20NT%20in%20E5.%22%20and%20expect%20Excel%20to%20know%20how%20you%20are%20expecting%20it%20to%20interpret%20the%20results.%20The%20person%20building%20the%20spreadsheet%20need%20to%20teach%20Excel%20how%20to%20calculate%20the%20final%20result%20depending%20on%20each%20possible%20scenario%20for%20F5%2C%20G5%20and%20H5.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EIf%20you%20follow%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%3B's%20suggestion%20it%20will%20help%20us%20find%20a%20solution%20for%20you.%20If%20you%20prefer%2C%20you%20can%20also%20use%20the%20structure%20below%20to%20fill%20in%20the%20expected%20final%20result%20for%20each%20case.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20780px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F109834i36BE3622EF12F5F0%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture2.JPG%22%20title%3D%22Capture2.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-480641%22%20slang%3D%22en-US%22%3ERe%3A%20Nested%20IF%20formula%20in%20Excel%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-480641%22%20slang%3D%22en-US%22%3E%3CP%3E%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%3B%3C%2FP%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EAttached%20is%20my%20spread%20sheet.%26nbsp%3B%20Hopefully%20this%20will%20help.%3C%2FP%3E%3CP%3EIm%20looking%20at%20using%206%20logic%20formulas%20nested%20in%20cell%20E5%20to%20process%20the%20value%20found%20I5%26nbsp%3B%20to%20route%20what%20formula%20to%20use%20to%20determine%20what%20value%20%26nbsp%3Bto%20place%20into%20E5.%26nbsp%3B%20T%2C%20NT%2C%20OT.%3C%2FP%3E%3CP%3E%3DIF%20(G5%3D%22LOW%22%20and%20H5%3D%22LOW%22)%2C%20THEN%20IF%20(I5%3D%22LOW%22%2C%20%22T%22%2C%20IF(I5%3D%22HIGH%22%2C%20%22T%22%2C%20%22T%22))%20ELSE%3C%2FP%3E%3CP%3E%3DIF%20(G5%3D%22LOW%22%20and%20H5%3D%22HIGH%22)%20THEN%20IF%20(I5%3D%22LOW%22%2C%20%22T%22%2C%20IF(I5%3DHIGH%2C%20%22NT%22%2C%20%22NT%22))%20ELSE%3C%2FP%3E%3CP%3E%3DIF%20(G5%3D%22MODERATE%22%20and%20H5%3DLOW)%20THEN%20(I5%3DLOW%2C%20%22T%22%2C%20IF(I5%3D%22HIGH%22%2C%20%22NT%22%2C%20%22NT%22))%20ELSE%3C%2FP%3E%3CP%3E%3DIF%20(G5%3D%22MODERATE%22%20and%20H5%3D%22HIGH%22)%20THEN%20(I5%3D%22LOW%22%2C%20%22OT%22%2C%20IF(I5%3D%22HIGH%22%2C%20%22T%22%2C%20%22OT%22))%20ELSE%3C%2FP%3E%3CP%3E%3DIF%20(G5%3D%22HIGH%22%20and%20H5%3D%22LOW%22)%20THEN%20(I5%3DLOW%2C%20%22T%22%2C%20IF(I5%3DHIGH%2C%20%22NT%22%2C%20%22T%22))%20ELSE%3C%2FP%3E%3CP%3E%3DIF%20(G5%3D%22HIGH%22%20and%20H5%3D%22HIGH%22)%20THEN%20IF%20(I5%3D%22LOW%22%2C%20%22OT%22%2C%20IF(I5%3D%22HIGH%22%2C%20%22T%22%2C%20%22OT%22))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethank%20you%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-480654%22%20slang%3D%22en-US%22%3ERe%3A%20Nested%20IF%20formula%20in%20Excel%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-480654%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F324998%22%20target%3D%22_blank%22%3E%40DanGreene%3C%2FA%3E%2C%3C%2FP%3E%3CP%3Eplease%20see%20screenshot%20and%20file%20attached.%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%2F109852i10E067DC9552E7AF%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture45JPG.JPG%22%20title%3D%22Capture45JPG.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThe%20formula%20that%20I%20used%20is%20an%20array%20formula.%20To%20make%20the%20formula%20to%20work%2C%20you%20need%20to%20do%20CTRL%2BSHIFT%2BENTER%20after%20you%20finish%20writing%20it%20or%20after%20you%20edit%20it%20in%20the%20formula%20bar.%20The%20formula%20will%20get%20curly%20brackets%20at%20the%20beginning%20and%20ending%20after%20you%20hit%20those%20three%20keys.%3C%2FP%3E%3CP%3EGood%20luck!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-480681%22%20slang%3D%22en-US%22%3ERe%3A%20Nested%20IF%20formula%20in%20Excel%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-480681%22%20slang%3D%22en-US%22%3ESuccinctly%2C%20what%20conditions%20must%20be%20fulfilled%20for%20the%20required%20formula%20to%20return%20each%20of%20the%20possible%20results%3F%20If%20you%20cannot%20answer%20this%20question%2C%20I%20am%20sorry%20to%20inform%20you%20that%20you%20cannot%20also%20expect%20an%20answer.%3C%2FLINGO-BODY%3E
DanGreene
Occasional Contributor

Hello, Im having problems getting the right syntax for nexting IF statements.

Basically Im comparing values already placed into cells G5, H5 and I5 to return a value placed into cell E5.

This is the logic Im attempting to create and embed into one cell.

=IF (G5="LOW" and H5="LOW"), then IF (I5="LOW", "T", IF(I5="HIGH", "T", "T"))

=IF (G5="LOW" and H5="HIGH") then IF (I5="LOW", "T", IF(I5=HIGH, "NT", "NT"))

=IF (G5="MODERATE" and H5=LOW) then (I5=LOW, "T", IF(I5="HIGH", "NT", "NT"))

=IF (G5="MODERATE") and H5="HIGH" then (I5="LOW", "OT", IF(I5="HIGH", "T", "OT"))

=IF (G5="HIGH" and H5="LOW") then (I5=LOW, "T", IF(I5=HIGH, "NT", "T"))

=IF (G5="HIGH" and H5="HIGH") then IF (I5="LOW", "OT", IF(I5="HIGH", "T", "OT"))

If anyone can assist, much appreciated...

27 Replies

@DanGreene 

Hi! It seems that your final result can be T, NT, OT.

Can you please explain on your words (not formulas) the conditions to apply each one of the results?

Please tag me so that I can come back to this thread.

@DanGreene , by the way, expressions like

IF(I5="HIGH", "T", "T")

have no sense, it always returns "T" independently on what do you have in I5

 

@Celia_Alves 

Hello! Thanks for replying.  Yes I am taking  survey results and distilling down the results in 3 categories:

Difficulty, Importance, and Frequency.  I will apply the logic of the excel formula to return a value of T, NT or OT for levels of training needed for my department.

Difficulty has 3 levels, (low, moderate, high), Importance has 2 levels (low, high) and Frequency has 3 levels (low, moderate, high)

The values are assigned from other calculations from survey results <2.5=low, 2.6-3.4=moderate, >=3.5=high.

So in Cell E5, I need to compare values in G5,H5 and I5 using the logic formulas shown to ultimately provide a value of T, OT, or NT .

Hopefully this makes sense!  thank you.

 

 

@Sergei Baklan

Sergei,

thank you for the reply.  Yes this is true.  In my analysis of data I collected thru employee surveys, I can distill the data given back into either T, OT or NT to populate the cell E5.   Depending on what values are placed into G5, H5, or I5, the outcome may indeed show the value of "T" for both.  These are types of training that my department will need to implement according to those values. 

I see your point though, I could rewrite the formula on those that have the same "training" value to simplify.

@DanGreene 

it is still not clear when you want T, NT or NT to appear.

In your words:

- what needs to happen with the values of G5, H5 and I5 to make E5 = T?

- what needs to happen with the values of G5, H5 and I5 to make E5 = NT?

- what needs to happen with the values of G5, H5 and I5 to make E5 = NT?

 

Sergei,

Looking at the example:

=IF (G5="LOW" and H5="LOW"), then IF (I5="LOW", "T", IF(I5="HIGH", "T", "T"))

 

I have IF(I5="HIGH", "T", "T")) listed this way because there is a third value of "Moderate" that could be in the Cell I5 which should return a value of "T" as well.

thank you

dan

@DanGreene 

 

Dan, sorry, but I didn't catch. The expression in second part

=IF(I5="LOW","T",IF(I5="HIGH","T","T"))

is equal to

= "T"

will it be in I5 "MODERATE", "LOW" or any other value

 

 

@Celia_Alves

 

You can think of this has a flow chart type of analysis.  G5, H5 and I5 are prepopulated with HIGH, MODERATE, LOW.

The logic I'm attempting is a flowchart type  layout:

IF G5 LOW AND H5 LOW then Look in cell I5 for value and place the "T", "NT", or OT" in E5

In this case G5 and H5 are LOW and use the following formula to pick which (T, OT, NT) to place in E5 

IF (I5="LOW", "T", IF(I5="HIGH", "T", "T"))

Since LOW is in cell I5 , it results in "T" in E5.

 

Depending on values in G5 and H5...(Low, Low or Moderate,High or High,High...ect) it changes how the Value in I5 is interpreted to place the T, OT, or NT in E5.  Sometimes it will seem redundant, but the type of training  will cover multiple scenarios.

 

I hope Im explaining it correctly.

thank you

 

 

@DanGreene ,

 

Dan, perhaps it's easier to fill these simple matrices to explain desired result

image.png

 (in attached file)

@DanGreene, unfortunately, the information you provide is not enough.

 

You cannot say "Depending on values in G5 and H5...(Low, Low or Moderate,High or High,High...ect) it changes how the Value in I5 is interpreted to place the T, OT, or NT in E5." and expect Excel to know how you are expecting it to interpret the results. The person building the spreadsheet need to teach Excel how to calculate the final result depending on each possible scenario for F5, G5 and H5.

If you follow @Sergei Baklan 's suggestion it will help us find a solution for you. If you prefer, you can also use the structure below to fill in the expected final result for each case.

 

Capture2.JPG

 

@Sergei Baklan 

Hello,

Attached is my spread sheet.  Hopefully this will help.

Im looking at using 6 logic formulas nested in cell E5 to process the value found I5  to route what formula to use to determine what value  to place into E5.  T, NT, OT.

=IF (G5="LOW" and H5="LOW"), THEN IF (I5="LOW", "T", IF(I5="HIGH", "T", "T")) ELSE

=IF (G5="LOW" and H5="HIGH") THEN IF (I5="LOW", "T", IF(I5=HIGH, "NT", "NT")) ELSE

=IF (G5="MODERATE" and H5=LOW) THEN (I5=LOW, "T", IF(I5="HIGH", "NT", "NT")) ELSE

=IF (G5="MODERATE" and H5="HIGH") THEN (I5="LOW", "OT", IF(I5="HIGH", "T", "OT")) ELSE

=IF (G5="HIGH" and H5="LOW") THEN (I5=LOW, "T", IF(I5=HIGH, "NT", "T")) ELSE

=IF (G5="HIGH" and H5="HIGH") THEN IF (I5="LOW", "OT", IF(I5="HIGH", "T", "OT"))

 

thank you

 

Solution

@DanGreene,

please see screenshot and file attached.

Capture45JPG.JPG

The formula that I used is an array formula. To make the formula to work, you need to do CTRL+SHIFT+ENTER after you finish writing it or after you edit it in the formula bar. The formula will get curly brackets at the beginning and ending after you hit those three keys.

Good luck! 

Succinctly, what conditions must be fulfilled for the required formula to return each of the possible results? If you cannot answer this question, I am sorry to inform you that you cannot also expect an answer.

@Celia_Alves ,

 

By the way, to simplify the maintenance you may avoid CSE transforming the formula to

=INDEX($H$13:$H$30,MATCH(1,INDEX(($E$13:$E$30=$F6)*($F$13:$F$30=$G6)*($G$13:$G$30=$H6),0),0))

And if the matrix is correct, equivalent nested IF could be

=IF(F6="LOW",
   IF(G6="LOW",
      "T",
      IF(H6="LOW","T","NT")),
   IF(F6="MODERATE",
      IF(G6="LOW",
         IF(H6="LOW","T","NT"),
         IF(H6="HIGH","T","OT")),
      IF(G6="LOW",
         IF(H6="HIGH","NT","T"),
         IF(H6="HIGH","T","OT"))
))

or so

 

@DanGreene 

A different strategy that uses table lookups to determine the training category.

@Sergei Baklan 

Sorry, I didn't see this when I posted; I had been away from the computer.

That's the type of information we needed. I believe @DanGreene now has a few solutions that can be implemented according to preference. Good luck!

That's right, @Sergei Baklan! That's a very nice one too. Thanks!

@Celia_Alves , thank you, but nested IF here is only to demonsrate how it looks like. It has no sence in this case - formulas which transform score numbers into text levels are under question. Even if assume they are correct this logic could be changed from time to time. Nested IF with hardcoded conditions is not the a good solution from maintenance point of view. 

@Sergei Baklan 

I agree. I believe I was referring to the formula version that you presented that is free from CSE. ;-)

Cheers!

@Sergei Baklan 

 

I stepped away from my desk for a while.  Such wonderful responses.  Thank you all!

I think I am making headway.

I am placing:

=IF(G5="LOW",IF(H5="LOW","T",IF(G5="LOW",IF(H5="HIGH", IF(I5="LOW","T","NT"))))), IF(G5="MODERATE",IF(H5="LOW",IF(I5="LOW","T","NT"))), IF(G5="MODERATE",IF(H5="HIGH",IF(I5="HIGH","T","OT"))), IF(G5="HIGH",IF(H5="LOW",IF(I5="HIGH","NT","T"))), IF(G5="HIGH",IF(H5="HIGH",IF(I5="HIGH","T","OT")))

 

in the E5 cell to attempt to accommodate the "moderate" entries that could appear in the I5 column.  However I am getting a #VALUE! error.

I think my syntax of too many IF statements perhaps?  or is there a limit on how many you can place in one formula?

 

thank you

dan

@Celia_Alves 

 

thank you Celia,

I haven't worked with arrays before, Ill see if I can implement them in somehow.

Ill have to think on this one for a bit.

 

thank you for all the wonderful help!

@Celia_Alves 

 

thank you Celia!  This worked great!  I was able to populate what I needed and used the CSE to enter in the formulas!

thanks again to everyone for all their help!!

 

 

Glad to hear you found a solution that works for you, @DanGreene! Happy that I could help. There were other valid solutions in this thread also.
Good luck with your project. :-)

@DanGreene 

 

Hi Dan,

 

If format a bit your formula it'll be

=IF(G5="LOW",
   IF(H5="LOW","T",
      IF(G5="LOW",
         IF(H5="HIGH",
            IF(I5="LOW","T","NT"))))), IF(G5="MODERATE",IF(H5="LOW",IF(I5="LOW","T","NT"))), IF(G5="MODERATE",IF(H5="HIGH",IF(I5="HIGH","T","OT"))), IF(G5="HIGH",IF(H5="LOW",IF(I5="HIGH","NT","T"))), IF(G5="HIGH",IF(H5="HIGH",IF(I5="HIGH","T","OT")))

with brackets in red you close it, all after the comma gives incorrect syntax

More correct will be

=IF(G5="LOW",
   IF(H5="LOW",
      "T",
      IF(I5="LOW","T","NT")),
   IF(G5="MODERATE",
      IF(H5="LOW",
         IF(I5="LOW","T","NT"),
         IF(I5="HIGH","T","OT")),
      IF(H5="LOW",
         IF(I5="HIGH","NT","T"),
         IF(I5="HIGH","T","OT"))
))

and in attached file

@Sergei Baklan 

 

Thank you Sergei!

 

This works a treat!!!  I am new to excel formulas, and I have learned so much.

 

Thanks again!!

 

 

 

@DanGreene 

 

Dan, good luck with Excel, that's a great tool

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
48 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