ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Cannot get VALUE function to work with cell references (https://www.excelbanter.com/excel-worksheet-functions/107298-cannot-get-value-function-work-cell-references.html)

Michael Plog

Cannot get VALUE function to work with cell references
 
I have a spreadsheet that has numbers entered as text. (I don't know
why they did it!) I want to convert these to numeric values so I can
sort properly, add, etc. When I use =value(L2) I get an error. Can
anyone help?

Thanks,
Michael Plog




Franz Verga

Cannot get VALUE function to work with cell references
 
Michael Plog wrote:
I have a spreadsheet that has numbers entered as text. (I don't know
why they did it!) I want to convert these to numeric values so I can
sort properly, add, etc. When I use =value(L2) I get an error. Can
anyone help?

Thanks,
Michael Plog


Hi Michael,

Try with:

=value(trim(clean(L2)))

--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy



Michael Plog

Cannot get VALUE function to work with cell references
 
Franz,
Thanks for the advice. I checked out the functions and this formula
did not work. The following, however, did:
=value(left(l2,len(l2)-1))

I think what happened is when they entered data into the system, it
comes in as text, then gets a space put behind it to go into the table
that builds the Excel spreadsheet. Anyway, I was trying (as possibly
you were) for an equal sign or unprintable character. Since the space
is printable, AND doesn't show depending on position within cell, I
was off. I was also spending a lot of time on the RIGHT() function
instead of the LEFT.

Again, thanks--you got me pointed in the right direction.



"Franz Verga" wrote in message
...
Michael Plog wrote:
I have a spreadsheet that has numbers entered as text. (I don't

know
why they did it!) I want to convert these to numeric values so I

can
sort properly, add, etc. When I use =value(L2) I get an error.

Can
anyone help?

Thanks,
Michael Plog


Hi Michael,

Try with:

=value(trim(clean(L2)))

--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy






All times are GMT +1. The time now is 02:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com