Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

excel

ResolvedVersion 2007

Faye has attended:
Excel Pivot Tables course

Excel

I often copy data into spreadsheet and sometimes i find there is a space before the word in the cell?
How can i get rid of this in mass?

RE: Excel

Hi Faye

Thanks for getting in touch. This is a common problem. To fix this you will need a spare column where you can enter a new formula to remove the excess spaces.

In the spare column, use the TRIM function to clean up the cell. Assuming your piece of data is in cell A1, it will look like this:

=TRIM(A1)

The cleaned-up result will be left in the cell. Now of course you can fill the formula down the rest of your data.

To tidy it up you will probably want to Copy and Paste Special > Values to be left with the result rather than the formula.

Kind regards

Gary Fenn
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Excel tip:

Stop Formula Returning A "#DIV/0" Error

If a formula returns a #DIV/0 error message there is a way to avoid such results.

For example the formula =A1/B1 will return a #DIV/0 if B1 is empty or a zero.

If you protect your formulas with the ISERROR function, the formula will then look like this:

=IF(ISERROR(A1/B1),0,A1/B1)

In plain English: should the result of A1 divided by B1 be an error change the result to 0 else show the result of A1/B1.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.