Countdown timer in excel

Please post any questions regarding the program here.

Moderator: 2020vision

Countdown timer in excel

Postby Hmesser » Sun Sep 22, 2019 6:50 pm

I'm sure this must be an old chestnut, but not been able to come up with a solution despite searching and playing with Excel all afternoon.

I have markets linked into excel and want to trigger when the countdown timer for each market is 1min before start time. Doing an IF formula between specific values of the countdown timer fails as I think excel is converting the timer into decimal behind the scenes.

Any help gratefully received!
Hmesser
 
Posts: 5
Joined: Sun Sep 22, 2019 6:28 pm

Re: Countdown timer in excel

Postby MarkRussell » Mon Sep 23, 2019 3:27 pm

Hi,

Put the following formula in a spare cell:-

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,"-",""))))


Basically it converts the time until the off from cell D2 into seconds until the off.
So then you will be able to refer to this in your IF statement, i.e. it when it shows 60 or less

Regards,
Mark
User avatar
MarkRussell
Site Admin
 
Posts: 1787
Joined: Tue Feb 20, 2007 6:38 pm
Location: Birmingham

Re: Countdown timer in excel

Postby Hmesser » Mon Sep 23, 2019 5:49 pm

That's perfect!

Thank you so much for your help.
Hmesser
 
Posts: 5
Joined: Sun Sep 22, 2019 6:28 pm

Re: Countdown timer in excel

Postby Captain Sensible » Tue Sep 24, 2019 6:16 pm

You can use TIMEVALUE to refer to time within excel, like you've noticed excel treats times as numbers but simply displays them as a time in the formatting. TIMEVALUE allows you to input the time and it then gets converted to the decimal value.

The following would trigger between 00:01:00 and 00:00:50

Code: Select all

=IF(AND(D2<=TIMEVALUE("00:01:00"),D2>=TIMEVALUE("00:00:50")),"BET","DON'T BET")
User avatar
Captain Sensible
 
Posts: 2883
Joined: Sat Nov 19, 2005 2:29 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 100 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.