Hi, I'm struggling using the and(or function in Excel 2003. I trying to return a value of 1 if cell cg5 and cell am5 match particular criteria. I want to check:
if cell cg5=1 and am5= 19 or 21 or 23
or if cell cg5=2 and am5= 25 or 27 or 29
or if cell cg5=3 and am5= 31 or 33 or 35
This my formula so far, I keep getting a FALSE value, where am I going wrong?
=and(or(cg5=1),or(am5=19,am5=21,am5=23)*1,1,and(or(cg5=2),or(am5=25,am5=27,am5=29)*1,1,and(or(cg5=3),or(am5=31,am5=33,am5=35)*1,1)))
if cell cg5=1 and am5= 19 or 21 or 23
or if cell cg5=2 and am5= 25 or 27 or 29
or if cell cg5=3 and am5= 31 or 33 or 35
This my formula so far, I keep getting a FALSE value, where am I going wrong?
=and(or(cg5=1),or(am5=19,am5=21,am5=23)*1,1,and(or(cg5=2),or(am5=25,am5=27,am5=29)*1,1,and(or(cg5=3),or(am5=31,am5=33,am5=35)*1,1)))