Hi
Is there a limit to the number of logical tests that can be applied to a function in an excel cell, for example the following stops after the 6th logical test i.e IF(AND(C14="L",E14="VL"),2
IF(AND(C14="VL",E14="VL"),1,IF(AND(C14="VL",E14="L"),4,IF(AND(C14="VL",E14="M"),10,IF(AND(C14="VL",E14="H"),12,IF(AND(C14="VL",E14="VH"),19,IF(AND(C14="L",E14="VL"),2, (it stops here) IF(AND(C14="L",E14="L"),7,IF(AND(C14="L",E14="M"),11,IF(AND(C14="L",E14="H"),17,IF(AND(C14="L",E14="VH"),20,IF(AND(C14="M",E14="VL"),3,IF(AND(C14="M",E14="L"),8,IF(AND(C14="M",E14="M"),14,IF(AND(C14="M",E14="H"),18,IF(AND(C14="M",E14="VH"),23,IF(AND(C14="H",E14="VL"),5,IF(AND(C14="H",E14="L"),9,IF(AND(C14="H",E14="M"),15,IF(AND(C14="H",E14="H"),21,IF(AND(C14="H",E14="VH"),24,IF(AND(C14="VH",E14="VL"),6,IF(AND(C14="VH",E14="L"),13,IF(AND(C14="VH",E14="M"),16,IF(AND(C14="VH",E14="H"),22,IF(AND(C14="VH",E14="VH"),25))))))))
I appreciate that it is not the most elegant way of doing this but i dont want the spreadsheet to contain VBA/Macros due to security and portability constraints. If any one knows a better way i would be very grateful. Thanks
Is there a limit to the number of logical tests that can be applied to a function in an excel cell, for example the following stops after the 6th logical test i.e IF(AND(C14="L",E14="VL"),2
IF(AND(C14="VL",E14="VL"),1,IF(AND(C14="VL",E14="L"),4,IF(AND(C14="VL",E14="M"),10,IF(AND(C14="VL",E14="H"),12,IF(AND(C14="VL",E14="VH"),19,IF(AND(C14="L",E14="VL"),2, (it stops here) IF(AND(C14="L",E14="L"),7,IF(AND(C14="L",E14="M"),11,IF(AND(C14="L",E14="H"),17,IF(AND(C14="L",E14="VH"),20,IF(AND(C14="M",E14="VL"),3,IF(AND(C14="M",E14="L"),8,IF(AND(C14="M",E14="M"),14,IF(AND(C14="M",E14="H"),18,IF(AND(C14="M",E14="VH"),23,IF(AND(C14="H",E14="VL"),5,IF(AND(C14="H",E14="L"),9,IF(AND(C14="H",E14="M"),15,IF(AND(C14="H",E14="H"),21,IF(AND(C14="H",E14="VH"),24,IF(AND(C14="VH",E14="VL"),6,IF(AND(C14="VH",E14="L"),13,IF(AND(C14="VH",E14="M"),16,IF(AND(C14="VH",E14="H"),22,IF(AND(C14="VH",E14="VH"),25))))))))
I appreciate that it is not the most elegant way of doing this but i dont want the spreadsheet to contain VBA/Macros due to security and portability constraints. If any one knows a better way i would be very grateful. Thanks