Excel wrong comparison after numbers extraction with if(right(

exbuddy

New Member
Joined
Oct 9, 2014
Messages
2
What I am doing wrong here? does value 0814 greater than 2000? I need result {z} in cell B1.
all cells are with general formatting
a1
590_310814

b1
=IF(RIGHT(A1,4)>2000,"x")

result in B1
x

abcde
1590_310814=IF(RIGHT(A1,4)>2000,"x","z")
2

<tbody>
</tbody>
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
issue solved. Thanks Comfy and VoG. Both examples are valid.



abcde
1590_310814=IF(VALUE(RIGHT(A1,4))>2000,"x","z")
and
=IF(RIGHT(A1,4)+0>2000,"x","z")
2

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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