Reputation: 5
I am looking for the correct formula for a table I am working on. What I would like is:
0
for say B1 if A1 equals "None",
1
if A1 equals "In" and
2
if A1 equals "out".
Upvotes: 0
Views: 63
Reputation: 3103
Use nested if formula
=IF(A1="None", 0, IF(A1="In", 1, IF(A1="out", 2, -1) ))
Upvotes: 0
Reputation: 2020
The formula will look something like this:
=IF(G18="None",0,IF(G18="ln",1,IF(G18="out",2,0)))
Just replace G18
with the correct cell address that contains the None|ln|out
value.
Upvotes: 0