ItalianPlatinum
Well-known Member
- Joined
- Mar 23, 2017
- Messages
- 857
- Office Version
- 365
- 2019
- Platform
- Windows
[TABLE="width: 500"]
<tbody>[TR]
[TD]Class
[/TD]
[TD]Amount
[/TD]
[TD]Yes (Formula Below)
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]-100
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]200
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Hello,
I am having considerable trouble trying to get a combo of all three to function as intended. A very simplistic explanation. If 1 class is greater than 0 and 1 class is less than 0 then take the class with the greater ABS.
My Formula:=IF(OR(AND(B2<0,B3>0,B2>0,B3<0),AND(ABS(B2)<ABS(B3))),"Yes","No")
Formula works, but breaks down if cell B2 is positive 100 it also gives me a value of yes. Anyone able to help
<tbody>[TR]
[TD]Class
[/TD]
[TD]Amount
[/TD]
[TD]Yes (Formula Below)
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]-100
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]200
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Hello,
I am having considerable trouble trying to get a combo of all three to function as intended. A very simplistic explanation. If 1 class is greater than 0 and 1 class is less than 0 then take the class with the greater ABS.
My Formula:=IF(OR(AND(B2<0,B3>0,B2>0,B3<0),AND(ABS(B2)<ABS(B3))),"Yes","No")
Formula works, but breaks down if cell B2 is positive 100 it also gives me a value of yes. Anyone able to help