SOLVED

Formula Help

%3CLINGO-SUB%20id%3D%22lingo-sub-2800890%22%20slang%3D%22en-US%22%3EFormula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2800890%22%20slang%3D%22en-US%22%3E%3CP%3EI%20need%20help%20from%20someone%20who%20knows%20the%20answer%20to%20my%20question%20below.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20this%20Nested%20IF%20Statement%20whereby%20I%20want%20to%20when%20needed%2C%20provide%20a%20separate%20answer%20if%20the%20statement%20is%20False.%26nbsp%3B%20For%20instance%2C%20the%20statement%20in%20red%20below%20says%3A%20%E2%80%9CThis%20Is%20LHS%E2%80%9D%20if%20the%20statement%20is%20TRUE%20however%20if%20FALSE%20I%20want%20it%20to%20say%3A%20%E2%80%9CThis%20Is%20Not%20LHS.%20Temp%20is%20below%2085%20degrees%E2%80%9D.%26nbsp%3B%20The%20thing%20is%20though%2C%20I%20want%20the%20rest%20of%20the%20Nested%20IF%20Statement%20to%20result%20as%20stated%20at%20the%20end%20of%20the%20Statement%3A%20%E2%80%9CThis%20Is%20Not%20LHS%E2%80%9D.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20I%20present%20separate%20messages%20within%20the%20statement%20if%20the%20result%20of%20the%20IF%20Statement%20is%20False%20and%20could%20someone%20modify%20or%20help%20me%20with%20my%20statement%20to%20show%20me%20how%20to%20properly%20construct%20the%20IF%20Statement%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DIF(AND(AND(E8%3D%22Appliance%22%2CF8%3D%22Oven%2FRange%22%2CJ8%3D%22NW%22))%2C%22This%20Is%20LHS%22%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3EIF(A%3C%2FSTRONG%3E%3C%2FFONT%3E%3CSPAN%3E%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3END(AND(E8%3D%22HVAC%22%2CF8%3D%22AC%22%2CJ8%26gt%3B85))%2C%22This%20Is%20LHS%22%2C%3C%2FSTRONG%3E%3C%2FFONT%3EIF(AND(AND(E8%3D%22Appliance%22%2CF8%3D%22Dishwasher%22%2CJ8%3D%22NW%22))%2C%22This%20Is%20LHS%22%2CIF(AND(E8%3D%22Environmental%22%2CF8%3D%22Mold%22)%2C%22This%20Is%20LHS%22%2CIF(AND(E8%3D%22Electrical%22%2CF8%3D%22No%20Power%22)%2C%22This%20Is%20LHS%22%2CIF(AND(AND(E8%3D%22Electrical%22%2CF8%3D%22Lights%22%2CJ8%3D%22NP%22))%2C%22This%20Is%20LHS%22%2C%22This%20Is%20Not%20LHS%22))))))%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBelow%20is%20what%20I%20am%20trying%20to%20accomplish%20but%20I%20cannot%20seem%20to%20get%20the%20Construct%20correct.%26nbsp%3B%20HELP!!!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DIF(AND(AND(E8%3D%22Appliance%22%2CF8%3D%22Oven%2FRange%22%2CJ8%3D%22NW%22))%2C%22This%20Is%20LHS%22%2C%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3EIF(AND(AND(E8%3D%22HVAC%22%2CF8%3D%22AC%22%2CJ8%26gt%3B85))%2C%22This%20Is%20LHS.%20Temp%20Is%20above%2085%20degrees%22%2C%E2%80%9DThis%20Is%20Not%20LHS.%20Temp%20is%20Below%2085%20degrees%E2%80%9D%2C%3C%2FSTRONG%3E%3C%2FFONT%3EIF(AND(AND(E8%3D%22Appliance%22%2CF8%3D%22Dishwasher%22%2CJ8%3D%22NW%22))%2C%22This%20Is%20LHS%22%2CIF(AND(E8%3D%22Environmental%22%2CF8%3D%22Mold%22)%2C%22This%20Is%20LHS%22%2CIF(AND(E8%3D%22Electrical%22%2CF8%3D%22No%20Power%22)%2C%22This%20Is%20LHS%22%2CIF(AND(AND(E8%3D%22Electrical%22%2CF8%3D%22Lights%22%2CJ8%3D%22NP%22))%2C%22This%20Is%20LHS%22%2C%22This%20Is%20Not%20LHS%22))))))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECarl%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2800890%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-2801049%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2801049%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1171720%22%20target%3D%22_blank%22%3E%40Carl_61%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20to%20find%20out%20what%20the%20context%20of%20this%20statement%20is%3A%3C%2FP%3E%3CP%3E%3CSPAN%3EAND(AND(E8%3D%22Appliance%22%2CF8%3D%22Oven%2FRange%22%2CJ8%3D%22NW%22))%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EE8%20is%20either%20%22Appliance%22%20or%20%22Electrical%22%3C%2FP%3E%3CP%3Eso%3C%2FP%3E%3CP%3E%22Appliance%22%3D%20True%3F%3C%2FP%3E%3CP%3E%22Electrical%22%3D%20False%3F%3C%2FP%3E%3CP%3ELets%20clarify%20that%20first%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2801073%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2801073%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1171720%22%20target%3D%22_blank%22%3E%40Carl_61%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPersonally%2C%20I'd%20recommend%20an%20altogether%20different%20approach.%20If%20you%20can%20create%20a%20table%20with%20the%20various%20combinations%20of%20possibilities%20and%20the%20message%20that%20should%20be%20appearing%2C%20the%20relatively%20new%20FILTER%20function%20can%20work%2C%20as%20the%20attached%20shows.%20I%20think%20I%20faithfully%20copied%20all%20your%20conditions%20and%20the%20right%20responses.....%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFILTER%20does%20require%20the%20most%20recent%20version%20of%20Excel%2C%20however.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20a%20more%20fundamental%20point%20is%20that%20deep%20nested%20IFs%20(as%20you're%20experiencing)%20are%20very%20difficult%20to%20create%20in%20the%20first%20place%2C%20hard%20to%20maintain%20(if%20new%20conditions%20arise%20or%20the%20maintenance%20gets%20passed%20to%20someone%20else).%20A%20table%20is%20a%20far%20better%20solution%20over%20time%20and%20FILTER%20allows%20you%20to%20specify%20multiple%20conditions.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2801136%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2801136%22%20slang%3D%22en-US%22%3EMy%20formula%20works%20if%20I%20leave%20thing%20alone%20as%20shown%20in%20my%20first%20example.%20I%20am%20only%20trying%20to%20adjust%20the%20statement%20that%20is%20in%20RED.%20The%20True%20part%20of%20the%20statement%20works%20and%20allows%20me%20to%20change%20it%20to%20what%20ever%20I%20want%20as%20long%20as%20its%20in%20the%20quote%20marks.%20I%20am%20wanting%20to%20incorporate%20the%20IF%20False%20part%20of%20that%20part%20of%20the%20IF%20Statement%20within%20the%20IF%20Statement%20shown%20in%20RED%20below%20the%20example%20I%20have%20posted.%20When%20Excel%20evaluates%20the%20nested%20IF%20and%20it%20sees%3CBR%20%2F%3E%3CBR%20%2F%3EIF(AND(AND(E8%3D%22HVAC%22%2CF8%3D%22AC%22%2CJ8%26gt%3B85))%2C%22This%20Is%20LHS.%20Temp%20Is%20above%2085%20degrees%22%2C%E2%80%9DThis%20Is%20Not%20LHS.%20Temp%20is%20Below%2085%20degrees%E2%80%9D%3CBR%20%2F%3E%3CBR%20%2F%3EI%20want%20the%20evaluation%20to%20be%20obtained%20as%20shown%20instead%20of%20getting%20the%20FALSE%20result%20at%20the%20end%20of%20the%20nested%20IF.%20Is%20this%20possible%20and%20if%20so%2C%20what%20adjustment(s)%20do%20I%20have%20to%20make%20to%20make%20this%20work.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2801147%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2801147%22%20slang%3D%22en-US%22%3EOh%20by%20the%20way%2C%20The%20data%20in%20E8%20is%20HVAC.%20The%20data%20in%20F8%20is%20AC.%20And%20the%20data%20in%20J8%20is%20an%20entered%20number%20by%20the%20user%20based%20on%20a%20Temperature%20reading%20when%20taken.%20So%20when%20the%20statement%20is%20Evaluated%20J8%20is%20checked%20to%20see%20the%20number%20and%20if%20the%20number%20is%20above%2085%20it%20displays%20the%20TRUE%20or%20FALSE%20resulting%20statement.%20TRUE%20%3D%20%22This%20Is%20LHS.%20Temp%20Is%20Above%2085%20degrees%22.%20FALSE%20%3D%20%22This%20Is%20Not%20LHS.%20Temp%20Is%20Below%2085%20degrees%22%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2801153%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2801153%22%20slang%3D%22en-US%22%3EThank%20you%20for%20your%20suggestion.%20I'll%20check%20it%20out%20when%20I%20get%20home.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2801238%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2801238%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1171720%22%20target%3D%22_blank%22%3E%40Carl_61%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETry%20this%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3DIF(E8%3D%22HVAC%22%2C%3CBR%20%2F%3E%20%20%20%20IF(AND(E8%3D%22HVAC%22%2CF8%3D%22AC%22%2CJ8%26gt%3B85)%2C%3CBR%20%2F%3E%20%20%20%20%20%20%20%22This%20Is%20LHS.%20Temp%20Is%20above%2085%20degrees%22%2C%3CBR%20%2F%3E%20%20%20%20%20%20%20%22This%20Is%20Not%20LHS.%20Temp%20is%20Below%2085%20degrees%22%3CBR%20%2F%3E%20%20%20%20%20%20)%2C%3CBR%20%2F%3E%20%20%20%20IF(%3CBR%20%2F%3E%20%20%20%20%20%20%20OR(%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20AND(E8%3D%22Environmental%22%2CF8%3D%22Mold%22)%2C%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20AND(E8%3D%22Electrical%22%2CF8%3D%22No%20Power%22)%2C%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20AND(E8%3D%22Electrical%22%2CF8%3D%22Lights%22%2CJ8%3D%22NP%22)%2C%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20AND(E8%3D%22Appliance%22%2COR(%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20F8%3D%22Oven%2FRange%22%2C%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20F8%3D%22Dishwasher%22)%2C%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20J8%3D%22NW%22%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20)%2C%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20)%2C%3CBR%20%2F%3E%20%20%20%20%20%20%20%22This%20Is%20LHS%22%2C%3CBR%20%2F%3E%20%20%20%20%20%20%20%22This%20Is%20Not%20LHS%22%3CBR%20%2F%3E%20%20%20%20%20)%3CBR%20%2F%3E%20%20%20)%3C%2FPRE%3E%3CP%3Echeers%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2814457%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2814457%22%20slang%3D%22en-US%22%3EFirst%20of%20all%20I%20want%20to%20thank%20you%20for%20assisting%20me%20with%20my%20first%20posting%20for%20formula%20help.%20Having%20received%20this%20assistance%20I%20have%20discovered%20that%20there%20may%20be%20a%20different%20way%20or%20approach%20to%20creating%20the%20formula%20I%20am%20looking%20for.%20Please%20see%20below.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20an%20Excel%20spread%20sheet%20with%20Columns%20A%20thru%20O%20and%20for%20the%20moment%20extends%20down%2040%20Rows.%3CBR%20%2F%3EColumn%E2%80%99s%20E%2C%20F%2C%20G%20and%20J%20consist%20of%20Pick%20Lists.%20The%20Columns%20of%20most%20interest%20for%20my%20formula%20are%20Columns%20E%2C%20F%2C%20and%20J.%20The%20contents%20are%20as%20follows%3A%3CBR%20%2F%3E%3CBR%20%2F%3EColumn%20E%20Column%20F%20Column%20J%3CBR%20%2F%3EAppliance%20AC%20Broken%3CBR%20%2F%3EElectrical%20Ceilings%20Gas%20Smell%3CBR%20%2F%3EEnvironmental%20Dehumidifier%20Gas%20Leak%3CBR%20%2F%3EHVAC%20Dishwasher%20Leaking%3CBR%20%2F%3EPlumbing%20Drains%20No%20Power%3CBR%20%2F%3EStructural%20Lights%20Not%20Heating%3CBR%20%2F%3EMold%20Noisy%3CBR%20%2F%3ENo%20Power%3CBR%20%2F%3EOven%2FRange%3CBR%20%2F%3EPipes%3CBR%20%2F%3EWater%20Heater%3CBR%20%2F%3E%3CBR%20%2F%3EI%20am%20wanting%20to%20write%20an%20IF%2FAND%2FOR%20Statement%20to%20cover%20the%20possible%20selections%20above.%20Another%20words%2C%3CBR%20%2F%3E%3CBR%20%2F%3EIF%20Column%20%E2%80%9CE%E2%80%9D%20%3D%20one%20of%20the%20items%20shown%20above%20in%20Column%20%E2%80%9CE%E2%80%9D%20AND%20IF%20Column%20%E2%80%9CF%E2%80%9D%20%3D%20one%20of%20the%20items%20shown%20above%20in%20Column%20%E2%80%9CF%E2%80%9D%20AND%20IF%20Column%20%E2%80%9CJ%E2%80%9D%20%3D%20one%20of%20the%20items%20shown%20above%20in%20Column%20%E2%80%9CJ%E2%80%9D%20are%20all%20%E2%80%9CTRUE%E2%80%9D%2C%20display%20%E2%80%9CThis%20Is%20LHS%E2%80%9D%20in%20Column%20%E2%80%9CQ%E2%80%9D%20otherwise%20IF%20%E2%80%9CFALSE%E2%80%9D%20display%20%E2%80%9CThis%20Is%20Not%20LHS%E2%80%9D%20in%20Column%20Q.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20know%20some%20of%20the%20possible%20combinations%20don%E2%80%99t%20work%20with%20each%20other%20so%20they%20won%E2%80%99t%20be%20written%20as%20part%20of%20the%20IF%20Statement.%20Example%3A%20Appliance%20%26amp%3B%20Ceilings%20are%20not%20expected%20to%20be%20shown%20in%20Column%20E%20%26amp%3B%20Column%20F.%20Also%2C%20Plumbing%20%26amp%3B%20Lights%2C%20Plumbing%20%26amp%3B%20No%20Power%2C%20Plumbing%20%26amp%3B%20Oven%2FRange%2C%20HVAC%20%26amp%3B%20Dishwasher%2C%20HVAC%20%26amp%3B%20Lights%2C%20HVAC%20%26amp%3B%20Oven%2FRange%2C%20HVAC%20%26amp%3B%20Water%20Heater.%20You%20get%20the%20idea.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20one%20variation%20to%20the%20formula%20however%20is%20that%20the%20HVAC%20%26amp%3B%20AC%20combination%20can%20have%20a%20number%20in%20Column%20J%20that%20reflects%20a%20Temperature.%20Here%20is%20my%20example%3A%3CBR%20%2F%3E%3CBR%20%2F%3EIF(E2%3D%22HVAC%22%2CIF(AND(AND(E2%3D%22HVAC%22%2CF2%3D%22AC%22%2CJ2%26gt%3B85))%2C%22LHS.%20Temp%20Above%2085%20Degrees%22%2C%22Not%20LHS.%20Temp%20Below%2085%20Degrees%22)%20otherwise%20IF(E2%3D%E2%80%9DHVAC%E2%80%9D%2CF2%3D%E2%80%9DAC%E2%80%9D%2CJ2%3D%E2%80%9D(1%20of%20the%20items%20listed%20in%20column%20J%20above)%20IF%20%E2%80%9CTRUE%E2%80%9D%20%E2%80%9CThis%20Is%20LHS%E2%80%9D%2C%20IF%20%E2%80%9CFALSE%E2%80%9D%20%E2%80%9CThis%20Is%20Not%20LHS%E2%80%9D.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20am%20having%20a%20difficult%20time%20putting%20this%20together%20and%20therefore%20am%20reaching%20out%20again%20to%20those%20whom%20may%20assist%20me%20in%20creating%20the%20formula%20to%20make%20this%20happen.%3CBR%20%2F%3E%3CBR%20%2F%3EHere%20is%20what%20I%20currently%20have%20thanks%20to%20the%20assistance%20of%20the%20Excel%20SME%E2%80%99s%20that%20chimed%20in%20already.%3CBR%20%2F%3E%3CBR%20%2F%3E%3DIF(E2%3D%22HVAC%22%2CIF(AND(AND(E2%3D%22HVAC%22%2CF2%3D%22AC%22%2CJ2%26gt%3B85))%2C%22LHS.%20Temp%20Above%2085%20Degrees%22%2C%22Not%20LHS.%20Temp%20Below%2085%20Degrees%22)%2CIF(OR(AND(E2%3D%22Environmental%22%2CF2%3D%22Dehumidifier%22%2CF2%3D%22Mold%22)%2CAND(E2%3D%22Electrical%22%2CF2%3D%22No%20Power%22)%2CAND(E2%3D%22Electrical%22%2CF2%3D%22Lights%22%2CJ2%3D%22NP%22)%2CAND(E2%3D%22Appliance%22%2COR(F2%3D%22Oven%2FRange%22%2CF2%3D%22Dishwasher%22)%2CJ2%3D%22NW%22)%2C)%2C%22This%20is%20LHS%22%2C%22This%20Is%20Not%20LHS%22))%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%20in%20advance%20and%20it%20would%20be%20greatly%20appreciated%20to%20receive%20assistance%20with%20this%20formula.%3CBR%20%2F%3E%3CBR%20%2F%3ECarl%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2814569%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2814569%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1171720%22%20target%3D%22_blank%22%3E%40Carl_61%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPerhaps%20like%20this%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%20590px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F315384i06A87DE42408A978%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2814741%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2814741%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1171720%22%20target%3D%22_blank%22%3E%40Carl_61%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20this%20correct%3F%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Yea_So_0-1633465307967.png%22%20style%3D%22width%3A%20673px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F315397i0C02BCC135738CCB%2Fimage-dimensions%2F673x381%3Fv%3Dv2%22%20width%3D%22673%22%20height%3D%22381%22%20role%3D%22button%22%20title%3D%22Yea_So_0-1633465307967.png%22%20alt%3D%22Yea_So_0-1633465307967.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-2814758%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2814758%22%20slang%3D%22en-US%22%3EI%20have%20just%20noticed%20that%20there%20appears%20to%20be%20an%20issue%20with%20excel%20or%20a%20setting%20regarding%20calculations.%3CBR%20%2F%3EI%20have%20%22NW%22%20in%20cell%20J2%20fore%20instance%20and%20when%20I%20create%20a%20basic%20IF%20statement%20I%20get%20a%20result%20I%20cannot%20figure%20out.%20Here's%20the%20statement%3A%3CBR%20%2F%3E%3CBR%20%2F%3EIF(J2%3D%22NW%22%2C%22Yes%22%2C%22No%22)%20I%20get%20%22Yes%22%20if%20NW%20is%20in%20that%20cell.%3CBR%20%2F%3EIF(J2%3D85%2C%22Yes%22%2C%22No%22)%20I%20get%20%22Yes%22%20if%2085%20is%20in%20the%20cell%3CBR%20%2F%3EIF(J2%26gt%3B85%2C%20%22Yes%22%2C%22No%22)%20I%20get%20%22Yes%22%20even%20though%20%22NW%22%20is%20in%20the%20cell.%20I%20would%20expect%20a%20%22NO%22%20as%20%22NW%22%20is%20in%20that%20cell.%3CBR%20%2F%3E%3CBR%20%2F%3EAnyone%20have%20any%20ideas%20about%20this%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2814781%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2814781%22%20slang%3D%22en-US%22%3EYes%20except%20%22No%20Power%22%20in%20column%20%22J%22%20actually%20belongs%20in%20Column%20%22F%22%20in%20the%20blank%20space%20as%20its%20one%20of%20the%20items%20in%20that%20pick%20list.%20Yes%20I%20know%20it%20should%20be%20in%20Column%20%22J%22%20as%20well.%20So%20it%20will%20be%20in%20both%20locations.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2814836%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2814836%22%20slang%3D%22en-US%22%3Eoven%20range%20belongs%20to%20appliance%3F%3CBR%20%2F%3Eand%20water%20heater%20belongs%20to%20plumbing%3F%20or%20HVAC%3F%3CBR%20%2F%3Eand%20why%20is%20noisy%20in%20column%20J%20with%20mold%20in%20column%20F%3F%3CBR%20%2F%3Eand%20pipes%20definitely%20belong%20to%20plumbing%20unless%20%3F%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2814853%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2814853%22%20slang%3D%22en-US%22%3Ethe%20syntax%20for%20IF()%3A%3CBR%20%2F%3EIF(%5BCondition%5D%2C%5BACTION%20IF%20TRUE%5D%2C%5BACTION%20IF%20FALSE%5D)%3CBR%20%2F%3ECondition%20can%20be%20the%20value%20in%20the%20cell%20is%20%22NW%22%20then%20its%20true%3CBR%20%2F%3ECondition%20can%20be%20value%20in%20cell%20is%20%26gt%3Bn%20or%20%3CN%3E%3CBR%20%2F%3ECondition%20can%20be%20ISBLANK(J2)%20or%20NOT(ISBLANK(J2))%20etc....%3C%2FN%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2819780%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2819780%22%20slang%3D%22en-US%22%3EColumn%20%22E%22%20consists%20of%206%20items.%3CBR%20%2F%3EAppliance%2C%20Electrical%2C%20Environmental%2C%20HVAC%2C%20Plumbing%20%26amp%3B%20Structural.%20These%20are%20the%20items%20on%20the%20pick%20list.%3CBR%20%2F%3EColumn%20%22F%22%20Consists%20of%2011%20Items%20which%20are%3A%3CBR%20%2F%3EAC%2C%20Ceilings%2C%20Dehumidifier%2C%20Dishwasher%2C%20Drains%2C%20Lights%2C%20Mold%2C%20No%20Power%2C%20Oven%2FRange%2C%20Pipes%20%26amp%3B%20Water%20Heater.%3CBR%20%2F%3EColumn%20%22J%22%20Consists%20of%2011%20Items%20which%20are%3A%3CBR%20%2F%3EBroken%2C%20No%20Power%2C%20Leaking%2C%20Not%20Heating%2C%20Noisy%2C%20Gas%20Smell%2C%20Gas%20Leak%2C%20Clogged%2C%20Smell%2C%20Present%2C%20Visible%3CBR%20%2F%3EEach%20Cell%20in%20a%20Row%20can%20have%20any%20variation%20of%20these%20items%20but%20they%20do%20not%20all%20match%20up%20or%20make%20sense%20to%20be%20matched%20up%20with%20each%20other.%20So%20looking%20at%20the%20list%20of%20items%20across%20the%20cells%20here%20are%20the%20match-able%20items%3A%3CBR%20%2F%3EAppliance%20%3D%20Dehumidifier%2C%20Dishwasher%2C%20Oven%2FRange%2C%20Water%20Heater%3CBR%20%2F%3EDehumidifier%20can%20be%3A%20Broken%2C%20Leaking%2C%20No%20Power%2C%20Noisy%3CBR%20%2F%3EDishwasher%20can%20be%3A%20Broken%2C%20Leaking%2C%20No%20Power%2C%20Not%20Heating%2C%20Noisy%3CBR%20%2F%3EOven%2FRange%20can%20be%3A%20Broken%2C%20Gas%20Smell%2C%20Gas%20Leak%2C%20No%20Power%2C%20Not%20Heating%3CBR%20%2F%3EWater%20Heater%20can%20be%3A%20Broken%2C%20Gas%20Smell%2C%20Gas%20Leak%2C%20Leaking%2C%20No%20Power%2C%20Not%20Heating%2C%20Noisy%3CBR%20%2F%3EThese%20are%20the%20associations%20of%20Columns%20E%2C%20F%20%26amp%3B%20J.%3CBR%20%2F%3E%3CBR%20%2F%3EPS.%20I%20Added%20%22Clogged%22%2C%20%22Smell%22%2C%20%22Present%22%20%26amp%3B%20%22Visible%22%20into%20Column%20J%3CBR%20%2F%3EElectrical%20%3D%20Lights%2C%20No%20Power%20-%20Lights%20can%20be%3A%20Broken%2C%20No%20Power%3CBR%20%2F%3EEnvironmental%20%3D%20Mold%20-%20Present%2C%20Visible%3CBR%20%2F%3EHVAC%20%3D%20AC%2C%20Dehumidifier%20-%20AC%20can%20be%3A%20Broken%2C%20No%20Power%2C%20Leaking%2C%20Noisy%3CBR%20%2F%3EDehumidifier%20can%20be%3A%20Broken%2C%20No%20Power%2C%20Leaking%2C%20Noisy%3CBR%20%2F%3EPlumbing%20%3D%20Drains%2C%20Pipes%20-%20Drains%20can%20be%3A%20Broken%2C%20Leaking%2C%20Clogged%2C%20Smell%3CBR%20%2F%3EPipes%20can%20be%3A%20Broken%2C%20Leaking%2C%20Noisy%3CBR%20%2F%3EStructural%20%3D%20Ceilings%2C%20Mold%20-%20Ceilings%20can%20be%3A%20Broken%2C%20Leaking.%20Mold%20can%20be%20Visible%2C%20Present%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2819898%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2819898%22%20slang%3D%22en-US%22%3EI%20am%20still%20perplexed%20regarding%20the%20IF%20Statement%20issue%20I%20mentioned.%20This%20is%20because%20no%20matter%20what%20Cell%20I%20place%20the%20formula%2C%20in%20my%20eyes%2C%20I%20am%20still%20getting%20an%20invalid%20result.%20%3DIF(F5%3D%22NW%22%2C%22Yes%22%2C%22No%22)%20I%20am%20expecting%20a%20%22Yes%22%20if%20I%20know%20%22NW%22%20is%20in%20that%20cell.%20The%20same%20with%20%3DIF(F5%3D85%2C%22Yes%22%2C%22No%22)%20I%20am%20expecting%20a%20%22Yes%22%20if%20I%20know%2085%20is%20in%20that%20cell.%20So%20when%20I%20have%20%3DIF(F5%26gt%3B85%2C%22Yes%22%2C%22No%22)%20I%20am%20expecting%20a%20%22Yes%22%20if%20F5%20has%2086%20in%20the%20cell%20and%20I%20am%20expecting%20a%20%22No%22%20if%20less%20than%2085%20or%20if%20%22NW%22%20is%20in%20that%20cell%20I%20am%20also%20expecting%20a%20%22No%22%20as%20the%20statement%20should%20evaluate%20to%20%22Not%20True%22.%20Why%20will%20the%20formula%20result%20in%20%22Yes%22%20if%20F5%20%3D%2085%20and%20result%20to%20%22No%22%20if%20the%20cell%20contains%20%22NW%22.%20Change%20it%20to%20F5%26gt%3B85%20it%20returns%20a%20%22Yes%22.%20I%20simply%20do%20not%20understand.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2819966%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2819966%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1171720%22%20target%3D%22_blank%22%3E%40Carl_61%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOk%20so%20let's%20define%20every%20detail%20to%20each%20Main%20category%20which%20is%20in%20column%20E%3A%2C%20subcategory%20which%20is%20in%20Column%20F%2C%20and%20Statuses%2C%20which%20is%20in%20column%20J%3C%2FP%3E%3CP%3EWe%20need%20to%20create%20a%20truth%20table%20to%20evaluate%20each%20scenario%20(which%20is%20what%20the%20formula%20does)%20and%20the%20formula%20needs%20these%20instructions%3C%2FP%3E%3CP%3E(%3CSTRONG%3Ecomputers%20are%20pretty%20dumb%20because%20they%20can't%20make%20assumptions%20based%20on%20implications%3C%2FSTRONG%3E)%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23FF0000%22%3Ewe%20have%20to%20tell%20it%20like%20it%20is%20at%20every%20scenario%20(even%20though%20it%20is%20painful%20and%20passes%20that%20pain%20to%20the%20solution%20developer%20and%20propagates%20that%20pain%20to%20the%20poster%3C%2FFONT%3E%3C%2FP%3E%3CP%3EPlease%20send%20some%20more%20of%20this%20info%3A%3C%2FP%3E%3CP%3EAppliance%20%3D%20Dehumidifier%2C%20Dishwasher%2C%20Oven%2FRange%2C%20Water%20Heater%3CBR%20%2F%3EDehumidifier%20can%20be%3A%20Broken%2C%20Leaking%2C%20No%20Power%2C%20Noisy%3CBR%20%2F%3EDishwasher%20can%20be%3A%20Broken%2C%20Leaking%2C%20No%20Power%2C%20Not%20Heating%2C%20Noisy%3CBR%20%2F%3EOven%2FRange%20can%20be%3A%20Broken%2C%20Gas%20Smell%2C%20Gas%20Leak%2C%20No%20Power%2C%20Not%20Heating%3CBR%20%2F%3EWater%20Heater%20can%20be%3A%20Broken%2C%20Gas%20Smell%2C%20Gas%20Leak%2C%20Leaking%2C%20No%20Power%2C%20Not%20Heating%2C%20Noisy%3C%2FP%3E%3CP%3Eon%20all%20the%20other%20main%20categories.%26nbsp%3B%20Thank%20you.%3C%2FP%3E%3CP%3ECheers%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2820378%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2820378%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1047584%22%20target%3D%22_blank%22%3E%40Yea_So%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThankyou%20for%20your%20help%20with%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%202%3A25%20pm%20Reply%20above%20was%20my%20attempt%20to%20show%20each%20Item%20in%20category%201%20(column%20E)%20its%20connection%20to%20the%20items%20in%20category%202%20(column%20F)%20and%20the%20possible%20selections%20available%20in%20category%203%20(column%20J).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20that%20reply%20I%20Listed%20each%20Item%20in%20column%20E%2C%20such%20as%20Appliance%20and%20put%20an%20equal%20sign%20to%20the%20right%20of%20it%20showing%20the%20association%20from%20column%20F%20and%20then%20the%20possible%20selections%20from%20column%20J.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20look%20this%20over%20carefully%20I%20believe%20you%20will%20see%20what%20I%20mean.%26nbsp%3B%20So%20I%20hope%20the%20question%20you%20are%20asking%20in%20your%20latest%20response%20will%20be%20answered%20or%20provide%20you%20the%20necessary%20information.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECarl%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2820490%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2820490%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1171720%22%20target%3D%22_blank%22%3E%40Carl_61%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20confirm%20the%20completeness%20of%20the%20Truth%20table%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Yea_So_0-1633578286832.png%22%20style%3D%22width%3A%20678px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F315787i2E55D4707029813F%2Fimage-dimensions%2F678x1247%3Fv%3Dv2%22%20width%3D%22678%22%20height%3D%221247%22%20role%3D%22button%22%20title%3D%22Yea_So_0-1633578286832.png%22%20alt%3D%22Yea_So_0-1633578286832.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Echeers%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2822238%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2822238%22%20slang%3D%22en-US%22%3EThe%20Truth%20Table%20looks%20good%20except%20Dehumidifier%20needs%20to%20be%20added%20HVAC%20in%20column%20%22F%22.%20The%20dehumidifier%20is%20considered%20to%20be%20part%20of%20the%20HVAC%20system.%20For%20column%20%22J%22%20the%20Dehumidifier%20can%20be%3A%20Broken%2C%20No%20Power%2C%20Leaking%2C%20Noisy.%20Otherwise%20things%20are%20looking%20really%20good%20with%20the%20Truth%20Table.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2822265%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2822265%22%20slang%3D%22en-US%22%3EJust%20a%20reminder%20that%20column%20%22J%22%20can%20have%20a%20number%20in%20it%20which%20represents%20a%20Temperature%20to%20be%20evaluated.%20%3DIF(AND(AND(E2%3D%22HVAC%22%2CF2%3D%22AC%22%2CJ2%26gt%3B85)%2C%22LHS.%20Temp%20Over%2085%22%2C%22Not%20LHS.%20Temp%20Below%2085%22)).%20But%20also%2C%20E2%3DHVAC%20%26amp%3B%20F2%3DAC%2C%20J2%20can%20be%20any%20of%20the%20items%20listed%20for%20HVAC%2C%20AC%20in%20the%20Truth%20Table.%3C%2FLINGO-BODY%3E
Contributor

I need help from someone who knows the answer to my question below.

 

I have this Nested IF Statement whereby I want to when needed, provide a separate answer if the statement is False.  For instance, the statement in red below says: “This Is LHS” if the statement is TRUE however if FALSE I want it to say: “This Is Not LHS. Temp is below 85 degrees”.  The thing is though, I want the rest of the Nested IF Statement to result as stated at the end of the Statement: “This Is Not LHS”.

 

Can I present separate messages within the statement if the result of the IF Statement is False and could someone modify or help me with my statement to show me how to properly construct the IF Statement?

 

=IF(AND(AND(E8="Appliance",F8="Oven/Range",J8="NW")),"This Is LHS"IF(AND(AND(E8="HVAC",F8="AC",J8>85)),"This Is LHS",IF(AND(AND(E8="Appliance",F8="Dishwasher",J8="NW")),"This Is LHS",IF(AND(E8="Environmental",F8="Mold"),"This Is LHS",IF(AND(E8="Electrical",F8="No Power"),"This Is LHS",IF(AND(AND(E8="Electrical",F8="Lights",J8="NP")),"This Is LHS","This Is Not LHS"))))))

 

Below is what I am trying to accomplish but I cannot seem to get the Construct correct.  HELP!!!

 

=IF(AND(AND(E8="Appliance",F8="Oven/Range",J8="NW")),"This Is LHS",IF(AND(AND(E8="HVAC",F8="AC",J8>85)),"This Is LHS. Temp Is above 85 degrees",”This Is Not LHS. Temp is Below 85 degrees”,IF(AND(AND(E8="Appliance",F8="Dishwasher",J8="NW")),"This Is LHS",IF(AND(E8="Environmental",F8="Mold"),"This Is LHS",IF(AND(E8="Electrical",F8="No Power"),"This Is LHS",IF(AND(AND(E8="Electrical",F8="Lights",J8="NP")),"This Is LHS","This Is Not LHS"))))))

 

Thank you,

 

Carl

33 Replies

@Carl_61 

 

I need to find out what the context of this statement is:

AND(AND(E8="Appliance",F8="Oven/Range",J8="NW"))

E8 is either "Appliance" or "Electrical"

so

"Appliance"= True?

"Electrical"= False?

Lets clarify that first

@Carl_61 

 

Personally, I'd recommend an altogether different approach. If you can create a table with the various combinations of possibilities and the message that should be appearing, the relatively new FILTER function can work, as the attached shows. I think I faithfully copied all your conditions and the right responses.....

 

FILTER does require the most recent version of Excel, however.

 

But a more fundamental point is that deep nested IFs (as you're experiencing) are very difficult to create in the first place, hard to maintain (if new conditions arise or the maintenance gets passed to someone else). A table is a far better solution over time and FILTER allows you to specify multiple conditions.

 

My formula works if I leave thing alone as shown in my first example. I am only trying to adjust the statement that is in RED. The True part of the statement works and allows me to change it to what ever I want as long as its in the quote marks. I am wanting to incorporate the IF False part of that part of the IF Statement within the IF Statement shown in RED below the example I have posted. When Excel evaluates the nested IF and it sees

IF(AND(AND(E8="HVAC",F8="AC",J8>85)),"This Is LHS. Temp Is above 85 degrees",”This Is Not LHS. Temp is Below 85 degrees”

I want the evaluation to be obtained as shown instead of getting the FALSE result at the end of the nested IF. Is this possible and if so, what adjustment(s) do I have to make to make this work.
Oh by the way, The data in E8 is HVAC. The data in F8 is AC. And the data in J8 is an entered number by the user based on a Temperature reading when taken. So when the statement is Evaluated J8 is checked to see the number and if the number is above 85 it displays the TRUE or FALSE resulting statement. TRUE = "This Is LHS. Temp Is Above 85 degrees". FALSE = "This Is Not LHS. Temp Is Below 85 degrees"
Thank you for your suggestion. I'll check it out when I get home.

@Carl_61 

 

Try this:

 

=IF(E8="HVAC",
IF(AND(E8="HVAC",F8="AC",J8>85),
"This Is LHS. Temp Is above 85 degrees",
"This Is Not LHS. Temp is Below 85 degrees"
),
IF(
OR(
AND(E8="Environmental",F8="Mold"),
AND(E8="Electrical",F8="No Power"),
AND(E8="Electrical",F8="Lights",J8="NP"),
AND(E8="Appliance",OR(
F8="Oven/Range",
F8="Dishwasher"),
J8="NW"
),
),
"This Is LHS",
"This Is Not LHS"
)
)

cheers

 

First of all I want to thank you for assisting me with my first posting for formula help. Having received this assistance I have discovered that there may be a different way or approach to creating the formula I am looking for. Please see below.

I have an Excel spread sheet with Columns A thru O and for the moment extends down 40 Rows.
Column’s E, F, G and J consist of Pick Lists. The Columns of most interest for my formula are Columns E, F, and J. The contents are as follows:

Column E Column F Column J
Appliance AC Broken
Electrical Ceilings Gas Smell
Environmental Dehumidifier Gas Leak
HVAC Dishwasher Leaking
Plumbing Drains No Power
Structural Lights Not Heating
Mold Noisy
No Power
Oven/Range
Pipes
Water Heater

I am wanting to write an IF/AND/OR Statement to cover the possible selections above. Another words,

IF Column “E” = one of the items shown above in Column “E” AND IF Column “F” = one of the items shown above in Column “F” AND IF Column “J” = one of the items shown above in Column “J” are all “TRUE”, display “This Is LHS” in Column “Q” otherwise IF “FALSE” display “This Is Not LHS” in Column Q.

I know some of the possible combinations don’t work with each other so they won’t be written as part of the IF Statement. Example: Appliance & Ceilings are not expected to be shown in Column E & Column F. Also, Plumbing & Lights, Plumbing & No Power, Plumbing & Oven/Range, HVAC & Dishwasher, HVAC & Lights, HVAC & Oven/Range, HVAC & Water Heater. You get the idea.

The one variation to the formula however is that the HVAC & AC combination can have a number in Column J that reflects a Temperature. Here is my example:

IF(E2="HVAC",IF(AND(AND(E2="HVAC",F2="AC",J2>85)),"LHS. Temp Above 85 Degrees","Not LHS. Temp Below 85 Degrees") otherwise IF(E2=”HVAC”,F2=”AC”,J2=”(1 of the items listed in column J above) IF “TRUE” “This Is LHS”, IF “FALSE” “This Is Not LHS”.

I am having a difficult time putting this together and therefore am reaching out again to those whom may assist me in creating the formula to make this happen.

Here is what I currently have thanks to the assistance of the Excel SME’s that chimed in already.

=IF(E2="HVAC",IF(AND(AND(E2="HVAC",F2="AC",J2>85)),"LHS. Temp Above 85 Degrees","Not LHS. Temp Below 85 Degrees"),IF(OR(AND(E2="Environmental",F2="Dehumidifier",F2="Mold"),AND(E2="Electrical",F2="No Power"),AND(E2="Electrical",F2="Lights",J2="NP"),AND(E2="Appliance",OR(F2="Oven/Range",F2="Dishwasher"),J2="NW"),),"This is LHS","This Is Not LHS"))

Thank you in advance and it would be greatly appreciated to receive assistance with this formula.

Carl

@Carl_61 

Perhaps like this

image.png

@Carl_61 

 

Is this correct?:

Yea_So_0-1633465307967.png

 

I have just noticed that there appears to be an issue with excel or a setting regarding calculations.
I have "NW" in cell J2 fore instance and when I create a basic IF statement I get a result I cannot figure out. Here's the statement:

IF(J2="NW","Yes","No") I get "Yes" if NW is in that cell.
IF(J2=85,"Yes","No") I get "Yes" if 85 is in the cell
IF(J2>85, "Yes","No") I get "Yes" even though "NW" is in the cell. I would expect a "NO" as "NW" is in that cell.

Anyone have any ideas about this?
Yes except "No Power" in column "J" actually belongs in Column "F" in the blank space as its one of the items in that pick list. Yes I know it should be in Column "J" as well. So it will be in both locations.
oven range belongs to appliance?
and water heater belongs to plumbing? or HVAC?
and why is noisy in column J with mold in column F?
and pipes definitely belong to plumbing unless ??
the syntax for IF():
IF([Condition],[ACTION IF TRUE],[ACTION IF FALSE])
Condition can be the value in the cell is "NW" then its true
Condition can be value in cell is >n or <n
Condition can be ISBLANK(J2) or NOT(ISBLANK(J2)) etc....
Column "E" consists of 6 items.
Appliance, Electrical, Environmental, HVAC, Plumbing & Structural. These are the items on the pick list.
Column "F" Consists of 11 Items which are:
AC, Ceilings, Dehumidifier, Dishwasher, Drains, Lights, Mold, No Power, Oven/Range, Pipes & Water Heater.
Column "J" Consists of 11 Items which are:
Broken, No Power, Leaking, Not Heating, Noisy, Gas Smell, Gas Leak, Clogged, Smell, Present, Visible
Each Cell in a Row can have any variation of these items but they do not all match up or make sense to be matched up with each other. So looking at the list of items across the cells here are the match-able items:
Appliance = Dehumidifier, Dishwasher, Oven/Range, Water Heater
Dehumidifier can be: Broken, Leaking, No Power, Noisy
Dishwasher can be: Broken, Leaking, No Power, Not Heating, Noisy
Oven/Range can be: Broken, Gas Smell, Gas Leak, No Power, Not Heating
Water Heater can be: Broken, Gas Smell, Gas Leak, Leaking, No Power, Not Heating, Noisy
These are the associations of Columns E, F & J.

PS. I Added "Clogged", "Smell", "Present" & "Visible" into Column J
Electrical = Lights, No Power - Lights can be: Broken, No Power
Environmental = Mold - Present, Visible
HVAC = AC, Dehumidifier - AC can be: Broken, No Power, Leaking, Noisy
Dehumidifier can be: Broken, No Power, Leaking, Noisy
Plumbing = Drains, Pipes - Drains can be: Broken, Leaking, Clogged, Smell
Pipes can be: Broken, Leaking, Noisy
Structural = Ceilings, Mold - Ceilings can be: Broken, Leaking. Mold can be Visible, Present
I am still perplexed regarding the IF Statement issue I mentioned. This is because no matter what Cell I place the formula, in my eyes, I am still getting an invalid result. =IF(F5="NW","Yes","No") I am expecting a "Yes" if I know "NW" is in that cell. The same with =IF(F5=85,"Yes","No") I am expecting a "Yes" if I know 85 is in that cell. So when I have =IF(F5>85,"Yes","No") I am expecting a "Yes" if F5 has 86 in the cell and I am expecting a "No" if less than 85 or if "NW" is in that cell I am also expecting a "No" as the statement should evaluate to "Not True". Why will the formula result in "Yes" if F5 = 85 and result to "No" if the cell contains "NW". Change it to F5>85 it returns a "Yes". I simply do not understand.

@Carl_61 

Ok so let's define every detail to each Main category which is in column E:, subcategory which is in Column F, and Statuses, which is in column J

We need to create a truth table to evaluate each scenario (which is what the formula does) and the formula needs these instructions

(computers are pretty dumb because they can't make assumptions based on implications)

we have to tell it like it is at every scenario (even though it is painful and passes that pain to the solution developer and propagates that pain to the poster

Please send some more of this info:

Appliance = Dehumidifier, Dishwasher, Oven/Range, Water Heater
Dehumidifier can be: Broken, Leaking, No Power, Noisy
Dishwasher can be: Broken, Leaking, No Power, Not Heating, Noisy
Oven/Range can be: Broken, Gas Smell, Gas Leak, No Power, Not Heating
Water Heater can be: Broken, Gas Smell, Gas Leak, Leaking, No Power, Not Heating, Noisy

on all the other main categories.  Thank you.

Cheers

@Yea_So 

 

Thankyou for your help with this.

 

My 2:25 pm Reply above was my attempt to show each Item in category 1 (column E) its connection to the items in category 2 (column F) and the possible selections available in category 3 (column J).

 

In that reply I Listed each Item in column E, such as Appliance and put an equal sign to the right of it showing the association from column F and then the possible selections from column J.

 

If you look this over carefully I believe you will see what I mean.  So I hope the question you are asking in your latest response will be answered or provide you the necessary information.

 

Thank you,

 

Carl

@Carl_61 

Please confirm the completeness of the Truth table:

Yea_So_0-1633578286832.png

 

Thank you.

 

cheers

The Truth Table looks good except Dehumidifier needs to be added HVAC in column "F". The dehumidifier is considered to be part of the HVAC system. For column "J" the Dehumidifier can be: Broken, No Power, Leaking, Noisy. Otherwise things are looking really good with the Truth Table.