Conditional w/ three possibilities

M

MathDoctor

Any assistance is appreciated:

Column A will list results that a team has - only possible results are

"win", "tie", or "loss". You get three points for a win, one point for
a tie
and zero for a loss.

So if A1 is a win, B1 will display "3"

How would I write that equation. The below is not working ...
=IF(A1="Win","3"),IF(A1="Tie","1"),IF(A1="Loss","0")
 
D

Dave Peterson

One way:

=IF(A1="Win","3",IF(A1="Tie","1","0"))

or if you want to do arithmetic with the results of that formula:

=IF(A1="Win",3,IF(A1="Tie",1,0))
 
G

Gary's Student

Try:

=(A1="Win")*3+(A1="Tie")*1

Notice that no "IF"s are neded. Also notice that "Loss" is automatically
covered since it yields zero anyway
 
C

CLR

You were almost there.........just move a couple of parenthisis and add for
condition that B1 should be blank if cell A1 is blank (or accidently
contains anything else)........

=IF(A1="Win","3",IF(A1="Tie","1",IF(A1="Loss","0","")))

Incidently, the double quotes you have around the numbers actually turn
their result into TEXT format, if you want actual numbers use same formula
but just delete those double quotes, like...........

=IF(A1="Win",3,IF(A1="Tie",1,IF(A1="Loss",0,"")))


Vaya con Dios,
Chuck, CABGx3
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top