Formula always returns the false response

honkin

Active Member
Joined
Mar 20, 2012
Messages
374
Office Version
  1. 2016
Platform
  1. MacOS
Any idea why this formula always returns the false, even if the result is true?

=IF(AND(K2>="2",N2="Under 1.5"),"W","L")

Predictology_Trading Template v3.1.xlsm
JKLMN
1FT AFT TotalResultMatchesBet Type
201L1Under 1.5
313L2Under 1.5
413L3Under 1.5
524L4Under 1.5
635L5Under 1.5
712L7Under 1.5
802L8Under 1.5
923L9Under 1.5
Maria Lay
Cell Formulas
RangeFormula
J2:J9J2=IFERROR(INDEX('Predictology Result File'!$J$2:$J$14608,MATCH(1,INDEX((A2='Predictology Result File'!$A$2:$A$14608)*(B2='Predictology Result File'!$B$2:$B$14608)*(C2='Predictology Result File'!$C$2:$C$14608),0,1),0)),"No")
K2:K9K2=IFERROR(INDEX('Predictology Result File'!$K$2:$K$14608,MATCH(1,INDEX((A2='Predictology Result File'!$A$2:$A$14608)*(B2='Predictology Result File'!$B$2:$B$14608)*(C2='Predictology Result File'!$C$2:$C$14608),0,1),0)),"No")
L2:L9L2=IF(AND(K2>="2",N2="Under 1.5"),"W","L")
N2:N9N2=IF(C2<>"","Under 1.5","")
M3:M9M3=IF(D3<>"",M2+1,"")


You can see that all bar the first row in K are >=2 and N is Under 1.5 in all of them, yet all the results come back as L

Any thoughts on what I have done wrong here?

cheers
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
2 is a number but "2" is text so remove the quotes from the 2

Excel Formula:
=IF(AND(K2>=2,N2="Under 1.5"),"W","L")
 
Upvote 0
Solution
Hi Honkin,

Column K looks numeric so try
Excel Formula:
=IF(AND(K2>=2,N2="Under 1.5"),"W","L")
 
Upvote 0
2 is a number but "2" is text so remove the quotes from the 2

Excel Formula:
=IF(AND(K2>=2,N2="Under 1.5"),"W","L")
cheers Peter but it still returns L all down that column.

Both column N and K are generated dynamically from other data, but that shouldn't matter, should it? I mean, the result in K and N should be all that matters, or could that be causing an issue?

cheers
 
Upvote 0
cheers Peter but it still returns L all down that column.

Both column N and K are generated dynamically from other data, but that shouldn't matter, should it? I mean, the result in K and N should be all that matters, or could that be causing an issue?

cheers
I just tried something to check if it made a difference, I typed 2 into K2 and typed Under 1.5 into N2, so no dynamic data there, but the response is still L

I'm kinda stuck

cheers
 
Upvote 0
I don't have your other worksheet to generate exactly what you have but with the values entered manually, it works for me.

21 11 10.xlsm
JKLMN
1FT AFT TotalResultMatchesBet Type
201L1Under 1.5
313W2Under 1.5
413W3Under 1.5
524W4Under 1.5
635W5Under 1.5
712W7Under 1.5
802W8Under 1.5
923W9Under 1.5
Sheet2 (2)
Cell Formulas
RangeFormula
L2:L9L2=IF(AND(K2>=2,N2="Under 1.5"),"W","L")


Also check that you calculation is set to Automatic: File -> Options -> Formulas

1636518964613.png
 
Upvote 0
I don't have your other worksheet to generate exactly what you have but with the values entered manually, it works for me.

21 11 10.xlsm
JKLMN
1FT AFT TotalResultMatchesBet Type
201L1Under 1.5
313W2Under 1.5
413W3Under 1.5
524W4Under 1.5
635W5Under 1.5
712W7Under 1.5
802W8Under 1.5
923W9Under 1.5
Sheet2 (2)
Cell Formulas
RangeFormula
L2:L9L2=IF(AND(K2>=2,N2="Under 1.5"),"W","L")


Also check that you calculation is set to Automatic: File -> Options -> Formulas

View attachment 50856
ah what a twit I was, Peter. I have an ongoing battle with the automatic setting, often disabling it when adding lots of results, as it slows things down. Flicked it back and fine

Thanks so much for your help and sorry for that rookie error

cheers
 
Upvote 0

Forum statistics

Threads
1,214,636
Messages
6,120,668
Members
448,977
Latest member
moonlight6

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top