I suspect your text cells have some nonprinting characters, probably
the non-breaking space (HTML -- ASCII 160).
For details, refer to
http://office.microsoft.com/en-us/excel-help/remove-spaces-from-the-beginni=
ng-and-end-of-a-cell-HP003056131.aspx.
But the following might resolve both problems:
=3D1*SUBSTITUTE(A1,CHAR(160),"")
Since you had problems viewing my previous response, I will spell that
out:
equal one times SUBSTITUTE left-parenthesis A1 comma CHAR(160) comma
double-quote double-quote right-parenthesis.
If that does not resolve your problem, I suggest that you make your
Excel file -- or an example file that demonstrates the problem --
available. Two ways to do that:
1. Upload it to a file-sharing web site and post the URL here. Be
sure to explain where to look for the problem in the Excel file. The
following is a list of free file-sharing web sites that people have
suggested elsewhere.
Windows Live Skydrive:
http://skydrive.live.com
MediaFire:
http://www.mediafire.com
FileFactory:
http://www.filefactory.com
FileSavr:
http://www.filesavr.com
FileDropper:
http://www.filedropper.com
RapidShare:
http://www.rapidshare.com
Box.Net:
http://www.box.net/files
Or....
2. Send the Excel file to me directly. Send to joeu2004 "at"
hotmatil.com.
PS: For broader participation, you might want to post future
inquiries using the MS Answers Forums at
http://social.answers.microsoft.com/Forums/en-US/category/officeexcel.
It's not that I like that forum. It's just that MS has ceased to
support the Usenet newsgroups. Hence, participation here is limited
to the sites that share a common newsgroup mirror, which is no longer
centralized at MS.