Help with Function in Excel Pleeeeez

Please post any questions regarding the program here.

Moderator: 2020vision

Help with Function in Excel Pleeeeez

Postby Morpheus2004 » Fri Jul 07, 2006 1:21 am

Hi Folks,

I want to do some analysis of the price movements within the race build up and need the following:

I will be running BA and have say Workbook1 logging the prices.....

To clarify exactly what I am looking for:
I want the formula below in 'workable' Excel format

A1="" This is where I wish to have a Message showing when a condition has been met.
A2="1" A default value for the spreadsheet
D1=(BACK PRICE 1)

"IF D1>A2 THEN PRINT "YES" IN A1 - Now I can write a conditional formula with =IF(D1>A1 ...... but the problem is that the formula is running all the time and I wish it to stop once the condition has been met! Otherwise, when the condition is met, it will show "YES" but then the moment the condition is no longer TRUE, it will then show "FALSE" and when I then view the sheet after the race, I cannot tell if the condition was ever met :(
I know how to run a formula/condition ONCE but not to have it run continually UNTIL a condition is met?????



Thanx in advance for any help ;-)
Morpheus2004
 
Posts: 1
Joined: Fri Jul 07, 2006 1:13 am

Postby The Gambling Monkey » Fri Jul 07, 2006 9:32 am

Hello,

I don't know how you'd do that in an excel formula but I do something similar using VBA.

Code: Select all
Option Explicit

Public RunWhen As Double
Public Const cRunIntervalSeconds = 15
Public Const cRunWhat = "CopyData"

Sub StartTimer()    'Chip Pearson

    RunWhen = Now + TimeSerial(0, 0, cRunIntervalSeconds)
    Application.OnTime earliesttime:=RunWhen, procedure:=cRunWhat, schedule:=True
   
End Sub

Sub StopTimer() 'Chip Pearson

    On Error Resume Next
    Application.OnTime earliesttime:=RunWhen, procedure:=cRunWhat, schedule:=False

End Sub


Sub CopyData()
   If Range("A1").Value = "YES" Then Range("A1").Value = "YES"
End Sub


I don't know how much VBA you know, so any questions just ask, there are a lot of knowledgeable people on this forum.

Scott
The Gambling Monkey
 
Posts: 39
Joined: Fri Nov 18, 2005 9:22 pm
Location: St. Albans


Return to Help

Who is online

Users browsing this forum: Google [Bot] and 33 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.