Skip to main content
Solved

Failure to result in a blank field - PLEASE HELP

  • Dec 23, 2019 4:07 PM UTC
  • 3 replies
  • 83 views

Forum|alt.badge.img+1

Hey Guys,
I’ve had this issue before, and was able to solve it.
For some reason, it doesn’t work now.

We’re betting on score difference, so:

IF({Home Score}>{Away Score},{Home Score}-{Away Score},{Away Score}-{Home Score})

If the game hasn’t played yet, the {Home Score} & {Away Score} are empty, which results in ‘0’
So, I’ve tried checking if the records are empty or not.

IF(AND({Home Score},{Away Score}), IF({Home Score}>{Away Score},{Home Score}-{Away Score},{Away Score}-{Home Score})

But I keep getting an error, that my syntax is wrong.

After the above I’m running this:

IF({Points Difference Bet}={Actual Points Difference},“Bingo!”,IF({Actual Points Difference}-{Points Difference Bet}<=5,“Very Close”, “Way Off”))

But the points difference can actually be higher than 5, but I’d still get “Very Close”

Please help.

Thank you.

Best answer by JonathanBowen

You’re just missing a closing bracket for the outer IF statement. This works:

IF(
  AND({Home Score}, {Away Score}), 
  IF(
    {Home Score}>{Away Score},
    {Home Score}-{Away Score},
    {Away Score}-{Home Score}
  )
)

JB

View original
This topic has been closed for replies.

3 replies

Forum|alt.badge.img+1
  • Author
  • Participating Frequently
  • Dec 24, 2019 3:57 PM UTC

Guys, I’d really appreciate some help.
Thanks.


JonathanBowen
Forum|alt.badge.img+18
  • Inspiring
  • Answer
  • Dec 28, 2019 9:40 PM UTC

You’re just missing a closing bracket for the outer IF statement. This works:

IF(
  AND({Home Score}, {Away Score}), 
  IF(
    {Home Score}>{Away Score},
    {Home Score}-{Away Score},
    {Away Score}-{Home Score}
  )
)

JB


Forum|alt.badge.img+1
  • Author
  • Participating Frequently
  • Dec 28, 2019 9:47 PM UTC

You’re just missing a closing bracket for the outer IF statement. This works:

IF(
  AND({Home Score}, {Away Score}), 
  IF(
    {Home Score}>{Away Score},
    {Home Score}-{Away Score},
    {Away Score}-{Home Score}
  )
)

JB


Yep, figured it out myself :slightly_smiling_face: thanks anyway.