select the formulas and choose edit / replace
in the find what box press your space bar
leave the replace with box empty
press Replace All
NOTE: when trying something new like this it is always a good idea to do it
on a copy of your workbook first ... just to ensure that the results you get
are the results you expect.
Hi,
Not sure what you mean by a space at the beginning of a formula.
To remove a leading space from the contents of a cell, use the TRIM function.
If A1 contains (space)ABC, then, if you enter =TRIM(A1) in cell B2, the
contents of B2 will be ABC.
If you have a space before the equal sign in the formula
that you want to eliminate so the formula can function
you can use the TrimALL macro found on my page http://www.mvps.org/dmcritchie/excel/join.htm#trimall
Would be okay if the only spaces are unwanted
spaces before the the equal sign, but it would be
better to replace space equal sign by equal sign.
so as not to destroy embedded spaces as in
i.e. = A1 & " " & B1
The TrimAll macro on my join.htm page will convert
CHAR(128) to spaces first and then TRIM. Used all the
time as a fixup for bad typing introducing spaces and for
copying tables from web pages where the spaces are
really (nonbreaking spaces).
Hi Ken,
If you use the TRIM Worksheet Function, you will remove the
leading space, but it will be your TRIM formula that is in use
and it will be text. Converting the formula to values would
have a text value that looks like a formula, you would then have
to hit F2 and Enter for each cell or run a macro that does reenters
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.