IF Function help

Discussion regarding the spreadsheet functionality of Bet Angel.
Post Reply
RonObvious
Posts: 198
Joined: Mon Dec 09, 2013 4:12 pm

Hi,

Wondering if somebody can help me with a problem.

I'm trying to create a formula within the BetAngel_1.xls spreadsheet where if there is less than £500 in a particular cell a Back or Lay bet is fired in but I'm having trouble writing it.

So for example if cell G10 has less than £500 place a Lay bet =IF(G10<500,"LAY","")

I don't know how to input the currency so that the formula will work.


On a different note is there a way to change the spreadsheet so it shows the first 5 prices in the market instead of the first 3?

Thanks
LinusP
Posts: 1918
Joined: Mon Jul 02, 2012 10:45 pm

What trouble are you having as that formula will work fine, no need to adjust for currency.

As far as excel goes you are limited to the top 3.
Wyndon
Posts: 237
Joined: Sun Nov 13, 2011 10:14 am

Does the word Lay not appear? What cell is the formula in?
RonObvious
Posts: 198
Joined: Mon Dec 09, 2013 4:12 pm

Yeah sorry I see the mistake I was making now, I didn't have the odds field filled in! :oops:

One last question though is there a way of putting 2 conditions, both a back and a lay condition in on the same line?

So =If(G10<500,"LAY","") & =If(H10<500,"BACK","")

The idea behind it is to be able to fire orders in on both sides of the book if conditions are met. I've tried but just get the text FALSE.

And so not to bother you all everytime I have a question If I wanted to create a spreadsheet from scratch what videos should I be looking at?

Excel is Fun on youtube seems pretty comprehensive but I'd have no idea where to start! VBA, Macros etc....

Thanks again
LinusP
Posts: 1918
Joined: Mon Jul 02, 2012 10:45 pm

=If(G10<500,"LAY","BACK")

Will display LAY if true and BACK if false.


The above code will work, have a read up on if statements and just play around as its the best way to learn.
RonObvious
Posts: 198
Joined: Mon Dec 09, 2013 4:12 pm

Hi Linus,

Sorry I probably didn't explain it right.

=If(G10<500,"LAY","BACK") would work for one cell on one side of the book but I want the Lay for cell G10 and the back for cell H10 if the conditions are met so both sides of the book are covered if the conditions are met
leesnose
Posts: 24
Joined: Wed Aug 28, 2013 10:06 am

Hello Ron,

This should do it:

=IF(G10<500,"LAY",(IF(H10<500,"BACK","")))

It's called a nested IF function and will look for the 2nd function if the first is not true - ie. priority is given to the lay bet if they are both true.

I am self-taught on excel from google, you should find that it is pretty intuitive and after a while you just treat each new thing that you want to do as a puzzle.
RonObvious
Posts: 198
Joined: Mon Dec 09, 2013 4:12 pm

Many thanks Lee,

The formula is perfect but what should I put in the odds cell?

G10 is the amount so I'd want a lay bet fired in at whatever the odds are in G9 but because there's the odds on the back side as well (cell H9) how could I put both in the value cell?

I've tried G9:H9 but the cell just says #VALUE!
LinusP
Posts: 1918
Joined: Mon Jul 02, 2012 10:45 pm

Assuming you want G9 if its a back bet and H9 if its a lay bet use the following....


=IF(L9="BACK",G9,IF(L9="LAY",H9,""),"")
RonObvious
Posts: 198
Joined: Mon Dec 09, 2013 4:12 pm

Great thanks Linus
Post Reply

Return to “Bet Angel - Spreadsheet / Excel chat”