+ Reply to Thread
Results 1 to 5 of 5

VBA to remove the blank space in the cell

  1. #1
    Registered User
    Join Date
    12-05-2013
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    25

    VBA to remove the blank space in the cell

    Hi buddies,

    i would like to have a script as follows

    i have a n number of cells in column A

    each cell contains some data as attached file.. now i need to do the following

    step1: remove the space in the end of the string in each row

    for example

    abi, sara;bali, Joe

    in the above data theres is space after the string Joe... i need to remove that

    step2:

    arange them in descending order

    step3:

    remove duplicates in the column A

    could u please assist with me on this as i am new to VBA

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: VBA to remove the blank space in the cell

    Quote Originally Posted by saranyabi View Post
    each cell contains some data as attached file
    Where did you attach?

  3. #3
    Registered User
    Join Date
    12-05-2013
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    25

    Red face Re: VBA to remove the blank space in the cell

    sample data.xlsxHi Jindon,

    i have attached a sample data .. please have a look.. thanks a lot..

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: VBA to remove the blank space in the cell

    Try:

    Please Login or Register  to view this content.
    Adapt to suit.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: VBA to remove the blank space in the cell

    Order in result is bit different, but it is follwing the logic you described.
    Please Login or Register  to view this content.

+ 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 space and blank
    By lassaad.toukabri in forum Excel General
    Replies: 5
    Last Post: 11-22-2013, 12:27 PM
  2. [SOLVED] If Cell Starts with a Space, remove that space
    By Ocean Zhang in forum Excel General
    Replies: 2
    Last Post: 09-29-2012, 01:52 PM
  3. Remove Blank Space at end of the txt
    By tek9step in forum Excel General
    Replies: 6
    Last Post: 02-26-2010, 05:42 AM
  4. remove blank space in cell?
    By gunsmokegirl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2008, 02:26 PM
  5. Remove Space From Cell
    By rishi in forum Excel General
    Replies: 5
    Last Post: 05-27-2008, 09:00 PM

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