+ Reply to Thread
Results 1 to 5 of 5

Removing leading space

  1. #1
    Registered User
    Join Date
    03-18-2014
    Location
    burlington, nj
    MS-Off Ver
    Excel 365
    Posts
    71

    Removing leading space

    For some reason, i am not able to remove leading space from excel cells. I tried Find & Replace (Ctrl+H) and TRIM formula. Also tried changing different format. See attached file
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Removing leading space

    Please try

    =SUBSTITUTE(A2,CHAR(160),)

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,950

    Re: Removing leading space

    Employing Power Query, I brought your table into the PQ Editor. Applied the Trim function in the PQ Editor and then closed and loaded back to Excel.

    Here is the Mcode for that

    Please Login or Register  to view this content.
    Power Query is also called Get & Transform. It is located on the data tab of the ribbon.

    Review PQ
    In the attached file
    Click on any cell in the new table
    On the Data Tab, click on Queries & Connections
    In the right window, double click to open Query
    Review PQ steps
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    03-18-2014
    Location
    burlington, nj
    MS-Off Ver
    Excel 365
    Posts
    71

    Re: Removing leading space

    This substitute formula provided by Bo_RY worked. Thank You so much
    Last edited by vani2004; 05-20-2020 at 02:12 PM.

  5. #5
    Registered User
    Join Date
    03-18-2014
    Location
    burlington, nj
    MS-Off Ver
    Excel 365
    Posts
    71

    Re: Removing leading space

    For some reason it wont' let me open the attached file. however, BO-RY was able to help with substitute formula. Thank you very much for your help.

+ 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. Remove leading space
    By kisanvikas2015 in forum Excel General
    Replies: 1
    Last Post: 06-08-2015, 03:26 AM
  2. [SOLVED] Remove leading space
    By Karidre in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-05-2015, 12:18 AM
  3. Removing a leading space in VB script
    By FkRndmLttrs in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-18-2012, 10:33 AM
  4. Delete leading space
    By VBisgreat in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-06-2011, 12:33 PM
  5. Removing leading numbers, letters, full stop, and space
    By Hambone70 in forum Excel General
    Replies: 2
    Last Post: 02-16-2011, 01:09 PM
  6. eliminating leading space
    By tdvy31 in forum Excel General
    Replies: 10
    Last Post: 12-07-2007, 03:39 PM
  7. Remove Leading Space
    By edwardpestian in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2006, 10:23 PM

Tags for this Thread

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