+ Reply to Thread
Results 1 to 5 of 5

How to remove leading spaces

  1. #1
    Registered User
    Join Date
    06-02-2015
    Location
    India
    MS-Off Ver
    2010, 2013
    Posts
    91

    How to remove leading spaces

    Hi,

    I have data in Excel, in which in a column I have 300 and more words. Every cell have extra spaces and I need to delete extra spaces from the data. So I am using Trim function to delete the extra spaces but the result I am getting same as before it was.

    Please help me to delete the extra spaces from the data.

    Thanks

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: How to remove leading spaces

    This could be the result of several causes. Why don't you post some sample data so we can have a look?

    BSB

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to remove leading spaces

    The macro at this website will remove all leading/trailing
    and multiple interspersed char 32 space characters.
    It will also remove and/or convert char 160 non breaking
    spaces into standard char 32 space characters. It will
    work on text or numbers and the numbers will be
    converted to true numeric numbers.

    I use this macro dozens of times every single day!
    It's a real time saver.

    http://www.mvps.org/dmcritchie/excel/join.htm#trimall
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How to remove leading spaces

    Thanks for the link. Very slick.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to remove leading spaces

    ------

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to Remove Leading Spaces in excel
    By kisanvikas2015 in forum Excel General
    Replies: 5
    Last Post: 05-21-2015, 09:40 AM
  2. [SOLVED] Remove leading and tariling spaces
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-06-2015, 01:53 PM
  3. Remove Leading Spaces
    By edwardpestian in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-22-2006, 10:34 AM
  4. [SOLVED] VBA help please - remove leading spaces
    By Scott Wagner in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-24-2006, 04:20 PM
  5. Remove Leading Spaces
    By Kirk P. in forum Excel General
    Replies: 6
    Last Post: 03-09-2005, 12:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1