The following Excel formula can be used to provide a countdown to the official off in seconds
- Code: Select all
=IF(LEFT(D2)<>"-",(HOUR(D2)*3600)+(MINUTE(D2)*60)+SECOND(D2),-((HOUR(SUBSTITUTE(D2,"-",""))*3600)+(MINUTE(SUBSTITUTE(D2,"-",""))*60)+SECOND(SUBSTITUTE(D2,"-",""))))
You can then use something similar to
- Code: Select all
=if(AND(cond1=true, cond2=true,cond3=true),"BACK","")
cond1 checks no existing bets have been placed
cond2 checks time to off <=10
cond3+ is anything else you want to include