+ Reply to Thread
Results 1 to 7 of 7

Remove spaces in each cells

  1. #1
    Forum Contributor
    Join Date
    10-16-2010
    Location
    bangalore
    MS-Off Ver
    Excel 2019
    Posts
    288

    Remove spaces in each cells

    Hi All,

    i have a huge data in my excel file from A1 to A12000. In each cells the data has some spaces (it might be single space, double space or triple space). I tried removing these spaces by doing Ctr H by replacing with space, with trim formula, substitute fromula and TRIM(SUBSTITUTE(A1,CHAR(160),"")) but its not working out. Can anyone please help me how to remove these spaces. Thanks.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Remove spaces in each cells

    Suggest you post a small sample of your data.

    See the yellow banner at the top of the page.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    10-16-2010
    Location
    bangalore
    MS-Off Ver
    Excel 2019
    Posts
    288
    Quote Originally Posted by TMS View Post
    Suggest you post a small sample of your data.

    See the yellow banner at the top of the page.
    I am not able to attach the file due to restrictions in my laptop... But i have given the clear explanation.. Please help if possible... Thanks

  4. #4
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: Remove spaces in each cells

    Just guessing...

    =SUBSTITUTE(SUBSTITUTE(A1,CHAR(160),"")," ","")

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Remove spaces in each cells

    … But i have given the clear explanation.
    No, you have described how much data you have, what you want to do, what you have tried, and what has failed. That IS clear. What is not clear is the underlying data/character(s) that cause the problem.

    Let's hope Rick's guess is correct. If not, that's all we have, a guessing game.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Remove spaces in each cells

    I agree with TMS. However, you HAVE uploaded sample sheets MANY times in the past. So, please do so again. Until we see what the problems actually are, we're just playing guessing games. That is a waste of everybody's time.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    Forum Contributor
    Join Date
    10-16-2010
    Location
    bangalore
    MS-Off Ver
    Excel 2019
    Posts
    288

    Re: Remove spaces in each cells

    Even I agree that I have uploaded samples many times, but there was no restrictions in my laptop earlier.. Just check when was the last time I uploaded sample..it's long time back.. Now if I needed to upload I have to go to cyber cafe which is not possible due to covid.. I will just check Rick's formula tomorrow and update the status.. Thanks

+ 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. [SOLVED] How Can I: Remove Spaces from Empty Cells, When Concatenating?
    By Sandcastle in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-06-2016, 03:22 PM
  2. [SOLVED] How to remove spaces between characters and numbers within cells in Excel?
    By Edgars.Aronietis in forum Excel General
    Replies: 8
    Last Post: 08-26-2015, 07:42 AM
  3. [SOLVED] Remove trailing spaces of all cells in an entire column
    By MariaPap in forum Excel General
    Replies: 2
    Last Post: 03-19-2015, 09:26 AM
  4. Remove White Spaces from all cells
    By modest_16081982 in forum Excel General
    Replies: 18
    Last Post: 05-03-2013, 07:22 AM
  5. Replies: 1
    Last Post: 05-03-2012, 05:28 PM
  6. remove spaces in cells
    By lbullen in forum Excel General
    Replies: 4
    Last Post: 09-11-2009, 07:16 AM
  7. Formatting cells to remove spaces
    By adamwelch in forum Excel General
    Replies: 3
    Last Post: 08-09-2007, 07:46 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