>, < not calculating correctly

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
660
Office Version
  1. 2019
Platform
  1. Windows
Hello,
Why is (AO) not calculating correctly? Looking at <, >.
Z:Z is formatted as "General".

Thank you.

NFL.xlsm
ABYZAO
4DAL5-3 TRUE
5TB-55.20.2FALSE
Weekly Picks
Cell Formulas
RangeFormula
Y4:Y5Y4=IFERROR(VLOOKUP($A4,'ATS Trends'!$A$2:$F$33,6,0),"")
Z4:Z5Z4=IFERROR(IF(B4>0,"",IF(AND($B4<0,$Y4<0),$B4+$Y4,IF(AND($B4<0,$Y4>0),$B4+$Y4,""))),"")
AO4AO4=Z4>Z5
AO5AO5=Z5>Z4
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
It is calculating correctly, text is greater than a number in Excel.
 
Upvote 0
=IFERROR(IF(B4>0,0,IF(AND($B4<0,$Y4<0),$B4+$Y4,IF(AND($B4<0,$Y4>0),$B4+$Y4,0))),0)
Try this in Z4 so you always get a 0 instead of a "" (text)
 
Upvote 0
It is calculating correctly, text is greater than a number in Excel.
I changed it to "ISNUMBER" and is working.
How can I determine if its >0?
Thank you.

NFL.xlsm
ABYZAO
4DAL5-3 TRUE
5TB-55.20.2TRUE
6PHI-10-3.5-13.5TRUE
7ATL101.2 FALSE
8PIT31.1 FALSE
9BUF-34.61.6TRUE
Weekly Picks
Cell Formulas
RangeFormula
Y4:Y9Y4=IFERROR(VLOOKUP($A4,'ATS Trends'!$A$2:$F$33,6,0),"")
Z4:Z9Z4=IFERROR(IF(B4>0,"",IF(AND($B4<0,$Y4<0),$B4+$Y4,IF(AND($B4<0,$Y4>0),$B4+$Y4,""))),"")
AO4:AO5AO4=X4>0
AO6:AO9AO6=ISNUMBER(Z6)
 
Upvote 0
How about
Excel Formula:
=AND(ISNUMBER(Z4),Z4>0)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,124
Messages
6,128,991
Members
449,480
Latest member
yesitisasport

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