by osknows » Sat Nov 07, 2009 3:50 pm
I think you will need to use VBA to do this; logic would be
1. create a new column in excel for cumulative stake (or as variable in VBA)
2. Use VBA to write matched bet stake into new column 1. above and clear out triggers and bet refs (eg, bet placed = £7, clear refs and add £7+£0 = £7)
2. Adjust formula for your current stake column to minus value in cumulative stake 1. above (eg normal stake equals £10, cumulative stake equals £7, new stake £10-£7 = £3)
3. Only trigger when calculated stake >0
4. Reset cumulative stake column to zero on new market selection