Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Excel field has three spaces I need to remove from collumn.

Excel field has three spaces I need to remove from collumn.

Excel field has three spaces I need to remove from collumn.

I have 700 records withe the following fields.

sample all different numbers but same format.
I use this to convert: =LEFT(A1,9)&" "&MID(A2,10,11)
   3000 324
I need the following
3000 324
in other word I need to delete the 3 leading spaces.
Does anyone know the change I need to make to the formula.

RE: Excel field has three spaces I need to remove from collumn.

One simple answer is that the TRIM function should strip off extra spaces.

However, your explanation of the problem is a bit puzzling. You say the data are 'numbers' yet LEFT(A1,9) only extracts 4 digits. This would only be true if the data were a string with 5 leading blanks. But if that were the case, you wouldn't end up with 3 extra spaces in the result, you'd have 5.

With all that in mind, are you sure you're getting leading 'spaces' and not just that the alignment is set to center or right instead of left?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close