+ Reply to Thread
Results 1 to 3 of 3

Removes ALL spaces and commas from a text string

  1. #1
    Registered User
    Join Date
    04-21-2014
    Location
    Hong Kong
    MS-Off Ver
    Excel 2007
    Posts
    9

    Removes ALL spaces and commas from a text string

    For example, the text string as below, there are 23 characters in a text string,
    ********** 888,000

    Request : just need a string of number ie. 888000

    Thanks for your helping in advance!

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Removes ALL spaces and commas from a text string

    May be:

    =SUBSTITUTE(MID(A1,LOOKUP(100,SEARCH({0,1,2,3,4,5,6,7,8,9},A1)),100),",","")+0
    Quang PT

  3. #3
    Registered User
    Join Date
    04-21-2014
    Location
    Hong Kong
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Removes ALL spaces and commas from a text string

    Thanks bebo021999, you really are an expert, problem solved instantly!!

+ 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 numerous trailing commas from text string that contains commas
    By JenSven1 in forum Outlook Programming / VBA / Macros
    Replies: 2
    Last Post: 05-23-2016, 10:19 PM
  2. Replies: 1
    Last Post: 05-23-2016, 11:05 AM
  3. Importing text file in excel using VBA that removes headers and spaces
    By chfinja in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-15-2014, 10:14 AM
  4. [SOLVED] Search Text String separated by Commas and do a Vlookup based on results
    By Rschwar23 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-15-2013, 01:45 PM
  5. [SOLVED] Opening CSV File & It Removes Spaces From Date Columns?
    By Philb1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2013, 04:20 AM
  6. Replies: 4
    Last Post: 06-21-2012, 08:17 PM
  7. number-to-text conversion removes commas
    By wildcatherder in forum Excel General
    Replies: 3
    Last Post: 12-28-2010, 05:41 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