ReneeHansen
4 years agoQrew Member
"
I'm trying to create a formula to calculate a prize payout.
I'm getting an error at the end with the parenthesis - it says "Expecting bool, number"
I'm not sure what that means. Is anyone availab...
Ok changing the [place]="1" worked, however, I'm still getting the "expecting book, number" error at the end with the first parenthesis.
and I don't know what "nesting the IF's" means :)
Floor(If([# OF PLAYERS FOR EVENT 06-19]<=4 and [Place]="1",([EVENT - PRIZE POOL 06-19]*0.6),
If([# OF PLAYERS FOR EVENT 06-19]<=4 and [Place]="2", ([EVENT - PRIZE POOL 06-19]*0.4),
If([# OF PLAYERS FOR EVENT 06-19]<=10 and [# OF PLAYERS FOR EVENT 06-19] >=5 and [Place]="1",([EVENT - PRIZE POOL 06-19]*0.4),
If([# OF PLAYERS FOR EVENT 06-19]<=10 and [# OF PLAYERS FOR EVENT 06-19] >=5 and [Place]="2",([EVENT - PRIZE POOL 06-19]*0.3),
If([# OF PLAYERS FOR EVENT 06-19]<=10 and [# OF PLAYERS FOR EVENT 06-19]>=5 and [Place]="3",([EVENT - PRIZE POOL 06-19]*0.2),
If([# OF PLAYERS FOR EVENT 06-19]<=10 and [# OF PLAYERS FOR EVENT 06-19]>=5 and [Place]="4",([EVENT - PRIZE POOL 06-19]*0.1),
If([# OF PLAYERS FOR EVENT 06-19]<=15 and [# OF PLAYERS FOR EVENT 06-19] >=11 and [Place]="1",([EVENT - PRIZE POOL 06-19]*0.3),
If([# OF PLAYERS FOR EVENT 06-19]<=15 and [# OF PLAYERS FOR EVENT 06-19] >=11 and [Place]="2",([EVENT - PRIZE POOL 06-19]*0.25),
If([# OF PLAYERS FOR EVENT 06-19]<=15 and [# OF PLAYERS FOR EVENT 06-19] >=11 and [Place]="3",([EVENT - PRIZE POOL 06-19]*0.2),
If([# OF PLAYERS FOR EVENT 06-19]<=15 and [# OF PLAYERS FOR EVENT 06-19] >=11 and [Place]="4",([EVENT - PRIZE POOL 06-19]*0.15),
If([# OF PLAYERS FOR EVENT 06-19]<=15 and [# OF PLAYERS FOR EVENT 06-19] >=11 and [Place]="5",([EVENT - PRIZE POOL 06-19]*0.1),
If([# OF PLAYERS FOR EVENT 06-19]<=20 and [# OF PLAYERS FOR EVENT 06-19] >=16 and [Place]="1",([EVENT - PRIZE POOL 06-19]*0.29),
If([# OF PLAYERS FOR EVENT 06-19]<=20 and [# OF PLAYERS FOR EVENT 06-19] >=16 and [Place]="2",([EVENT - PRIZE POOL 06-19]*0.24),
If([# OF PLAYERS FOR EVENT 06-19]<=20 and [# OF PLAYERS FOR EVENT 06-19] >=16 and [Place]="3",([EVENT - PRIZE POOL 06-19]*0.19),
If([# OF PLAYERS FOR EVENT 06-19]<=20 and [# OF PLAYERS FOR EVENT 06-19]>=16 and [Place]="4",([EVENT - PRIZE POOL 06-19]*0.14),
If([# OF PLAYERS FOR EVENT 06-19]<=20 and [# OF PLAYERS FOR EVENT 06-19] >=16 and [Place]="5",([EVENT - PRIZE POOL 06-19]*0.09),
If([# OF PLAYERS FOR EVENT 06-19]<=20 and [# OF PLAYERS FOR EVENT 06-19] >=16 and [Place]="6",([EVENT - PRIZE POOL 06-19]*0.05),
)))))))))))))))))))))))
when I click save it gives me a syntax error:
I've checked all the parenthesis and stuff. not sure what it could be.