0

I'm trying to use this formula to output "Tie" when the result is a draw:

=IF(B6>C6,B6-C6,IF(C6>B6,C6-B6,”Tie”))

Instead of giving me what I want, it gives me a "name" error.

What am I doing wrong?

  • 1
    Are the curly-quotes that I see displayed around "Tie" in your actual formula? – chuff Jun 3 '13 at 2:35
  • 2
    Yes... The quotes look off there... Could also try this: =IF(B6=C6,"Tie", ABS(B6-C6)) – Brian Adkins Jun 3 '13 at 3:21
3

As the comments point out the quotes around Tie are indeed the problem. If you use the following formula with the expected quotes your formula will no longer give you the #NAME? error:

=IF(B6>C6,B6-C6,IF(C6>B6,C6-B6,"Tie"))

|improve this answer|||||
1

Instead of using two IF's try: =IF(B6=C6,"Tie",ABS(B6-C6))

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.