Resolving a formula...

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
657
Office Version
  1. 2019
Platform
  1. Windows
Hello,
I'm trying to resolve a formula.
=IF(AND(($B2<0),($D2>$B2*-1)),"Yes", "")

When B2 & B3=pk (as below), its not recognized as a number.
How can I turn pk to 0 in the formula above?
I just want to see if the MOV (margin of victory) is > the spread (B:B).

Thank you.

Book1
ABCDEF
1TeamsATSCover %MOVATS +/-MOV > ATS
2INDpk75%125.1#VALUE!
3CLEpk50%0-1.2#VALUE!
4MIA8.050%-14.2 
5SF-8.050%92.6Yes
Sheet1
Cell Formulas
RangeFormula
C2:C5C2=IFERROR(VLOOKUP($A2,'[NFL.xlsm]ATS Trends'!$A$2:$F$43,4,0),"")
D2:D5D2=IFERROR(VLOOKUP($A2,'[NFL.xlsm]ATS Trends'!$A$2:$F$65,5,0),"")
E2:E5E2=IFERROR(VLOOKUP($A2,'[NFL.xlsm]ATS Trends'!$A$2:$F$44,6,0),"")
F2:F5F2=IF(AND(($B2<0),($D2>$B2*-1)),"Yes", "")
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
One way:
Excel Formula:
=IF(AND((IF(ISNUMBER($B2),$B2,0)<0),($D2>IF(ISNUMBER($B2),$B2,0)*-1)),"Yes", "")
 
Upvote 0
Solution
One way:
Excel Formula:
=IF(AND((IF(ISNUMBER($B2),$B2,0)<0),($D2>IF(ISNUMBER($B2),$B2,0)*-1)),"Yes", "")
Thank you for the formula.
Works perfectly.
 
Upvote 0
What about?

Excel Formula:
=IF(AND((N($B2)<0),($D2>N($B2)*-1)),"Yes", "")
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,557
Latest member
richa mishra

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