Question about using the right or left formula

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do you get excel to recognize the data as a number when using the right
or left formula? For example, cell L73 has the following formula:

=RIGHT(D3,5)
The data this equation produces is +137. I have another cell that has a
formula that says =IF(ISNUMBER(L73),L73,"NO"). The answer I get is NO. I
should get +173. I have formatted cell L73 to be a number.

How do I fix this formula? Thanks
 
Being a text function, the right function will return text.
To cause Excel to perform an implicit type change from text to numeric try
one of these:
=--RIGHT(D3,5)
=RIGHT(D3,5)*1


Does that help?
 
You can convert the text string +173 into a numeric value like this:
=VALUE(RIGHT(D3,5))

When I did this, tho, the number 173 appeared without the plus sign.
Is that critical? If it is, this custom format
+#,##0_);-#,##0
will show a pos or neg sign.
 
the --RIGHT(D3,5) works perfect. Thanks

Ron Coderre said:
Being a text function, the right function will return text.
To cause Excel to perform an implicit type change from text to numeric try
one of these:
=--RIGHT(D3,5)
=RIGHT(D3,5)*1


Does that help?
 
=IF(ISNUMBER(VALUE(L73)),VALUE(L73),"NO")

This should also work. If you want the output to include "+", you will have
to change the format.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

IF statement 6
VBA problem 7
Begging for VBA Help ASAP! 6
relative sheet referencing - what's the secret? 1
relative sheet referencing 1
LEFT formula 7
Excel Formula 2
Formula Assistance 7

Back
Top