Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

excel

Status
Not open for further replies.

ahazaras

Programmer
Feb 4, 2005
9
CA
I am trying to clean an excel field. I get the field from and html screen. The field is volume. It is coming across to excel with two spaces on the end. I have tried the function, find and replace but that doesn't work. I can't change the field to a number using format cell. Can anyone help. Field looks like this "5000 ". Without the quotes.

I need this field to be a number before I take it into access.

Thanks
 
Hmm... now that I think about it, you really should use
=VALUE(LEFT(A1,LEN(A1)-2)) This way it converts straight to a number.

PJ
 
Hi
I am sure PJFry has the best method, but have you tried find and replace using Alt + 255 (hold down Alt and type 255)? This is an askii character that looks like a space and is often what comes across from the net.
 
I've yet to come across a bit of data that Dave's Trimall macro can't fix in a nano second.

Regards
Ken..........

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]
----------------------------------------------------------------------------
 
Since both Trim, Left and most other functions returns a string value. Could it be so easy that you can take whichever of those solutions, and wrap a =VALUE(...) around it...?

// Patrik
______________________________

To the optimist, the glass is half full. To the pessimist, the glass is half empty. To the IT Professional, the glass is twice as big as it needs to be.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top