=IF(A1 = 1 #OR#2,1,2) What is the correct way to write the OR part of the formula? Thanks
T TeeSee Feb 27, 2008 #1 =IF(A1 = 1 #OR#2,1,2) What is the correct way to write the OR part of the formula? Thanks
N Niek Otten Feb 27, 2008 #5 =IF(OR(A1=1,A1=2),100,200) Means: If A1 =1 or A1 =2 Then the result is 100, Else the result is 200 -- Kind regards, Niek Otten Microsoft MVP - Excel | =IF(A1 = 1 #OR#2,1,2) | | What is the correct way to write the OR part of the formula? Thanks
=IF(OR(A1=1,A1=2),100,200) Means: If A1 =1 or A1 =2 Then the result is 100, Else the result is 200 -- Kind regards, Niek Otten Microsoft MVP - Excel | =IF(A1 = 1 #OR#2,1,2) | | What is the correct way to write the OR part of the formula? Thanks
G Gord Dibben Feb 27, 2008 #6 =IF(OR(A1=1,A1=2),1,2) Note: this will return 1 if A1 is either 1 ot 2 and 2 if A1 is anything other than 1 or 2. Is that what you want? Maybe =IF(A1=1,1,IF(A1=2,2,"")) Gord Dibben MS Excel MVP
=IF(OR(A1=1,A1=2),1,2) Note: this will return 1 if A1 is either 1 ot 2 and 2 if A1 is anything other than 1 or 2. Is that what you want? Maybe =IF(A1=1,1,IF(A1=2,2,"")) Gord Dibben MS Excel MVP