I have this in Cell M9 (odds):
=IF(L9="BACK";G9;IF(L9="LAY";H9;""))
Depending the previous conditions, "BACK" or "LAY" appeared automatically in L9, so I think that´s not the problem.
What I´m doing wrong? Why the bet is not launched?
I appreciate your comments.
Why it doesn´t work?
- OnGoldWires
- Posts: 49
- Joined: Mon Jul 20, 2009 7:07 pm
You do not include the formula you are using in L9, but one thing you can check is that you are not putting "BACK " and "LAY " in the cells, because Excel differentiates between "BACK " and "BACK", etc.
Hi again,
Here is the sheet if any of you want to take a look.
It has several things:
- VB in Sheet 2 to copy odds 10 min. before the event + the table you can see.
- The rest of things are in the Bet Angel Sheet.
If there is something I´m missing or doing wrong, please provide me some guidance.
Thanks in advance.
Here is the sheet if any of you want to take a look.
It has several things:
- VB in Sheet 2 to copy odds 10 min. before the event + the table you can see.
- The rest of things are in the Bet Angel Sheet.
If there is something I´m missing or doing wrong, please provide me some guidance.
Thanks in advance.
You do not have the required permissions to view the files attached to this post.
If I type BACK or LAY in L9, the odds do appear in M9.
If I type BACK in I3 and put =I3 in L9 it also works.
Your use of the AND function in I3 looks incorrect to me. I would put =IF(AND(Sheet2!D4<50000,(Sheet2!D4>0) etc.) But if I do that and put E7 in Sheet 2 to say 3.6 (to satisfy condition), although BACK appears in L9 there is no price in M9. I think it's because of your use of &" "& in the middle of the formula. If I truncate it to just =IF(AND(Sheet2!D4<50000,Sheet2!D4>0),IF(Sheet2!E7>Sheet2!C7*1.02,"BACK","")) it works fine. I think you would need to include your LAY condition as a nested IF within the main body.
If I type BACK in I3 and put =I3 in L9 it also works.
Your use of the AND function in I3 looks incorrect to me. I would put =IF(AND(Sheet2!D4<50000,(Sheet2!D4>0) etc.) But if I do that and put E7 in Sheet 2 to say 3.6 (to satisfy condition), although BACK appears in L9 there is no price in M9. I think it's because of your use of &" "& in the middle of the formula. If I truncate it to just =IF(AND(Sheet2!D4<50000,Sheet2!D4>0),IF(Sheet2!E7>Sheet2!C7*1.02,"BACK","")) it works fine. I think you would need to include your LAY condition as a nested IF within the main body.
Hi Wyndon,
Here is the VB, I tried several options but this one is the only that worked:
Private Sub Worksheet_Calculate()
If Range("D4") = Range("F4") Then
Range("E7:F8").Select
Selection.Copy
Range("C7").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End If
End Sub
I´m not able to make it works even using yours:
=IF(AND(Sheet2!D4<50000,Sheet2!D4>0),IF(Sheet2!E7>Sheet2!C7*1.02,"BACK","")) Of course I adapt it to European format.
How you would you write the entire instruction? (when you talk about "I think you would need to include your LAY condition as a nested IF within the main body"
Thanks for your time on this.
Here is the VB, I tried several options but this one is the only that worked:
Private Sub Worksheet_Calculate()
If Range("D4") = Range("F4") Then
Range("E7:F8").Select
Selection.Copy
Range("C7").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End If
End Sub
I´m not able to make it works even using yours:
=IF(AND(Sheet2!D4<50000,Sheet2!D4>0),IF(Sheet2!E7>Sheet2!C7*1.02,"BACK","")) Of course I adapt it to European format.
How you would you write the entire instruction? (when you talk about "I think you would need to include your LAY condition as a nested IF within the main body"
Thanks for your time on this.
Hi cjbr,
Thanks for the code.
I think the problem must be in using European format.
I put E7 on Sheet 2 to 3.6 and then copied the formula in your reply to I3 and it worked.
Perhaps you can show it in European format and someone with knowledge of that can comment.
Thanks for the code.
I think the problem must be in using European format.
I put E7 on Sheet 2 to 3.6 and then copied the formula in your reply to I3 and it worked.
Perhaps you can show it in European format and someone with knowledge of that can comment.