+ Reply to Thread
Results 1 to 3 of 3

Remove numerous trailing commas from text string that contains commas

  1. #1
    Registered User
    Join Date
    05-23-2016
    Location
    Chicago, Illinois
    MS-Off Ver
    2010
    Posts
    3

    Remove numerous trailing commas from text string that contains commas

    I am trying to get a formula or macro that will remove all the trailing commas from a single row while leave the ones in the string as is. Excel 2010

    Ex;

    2-Way Ball Valves, 2-Way Flow Valves, Ball Valves, CPVC Ball Valves, Shutoff Valves, , , s/b

    2-Way Ball Valves, 2-Way Flow Valves, Ball Valves, CPVC Ball Valves, Shutoff Valves

    The amount of text in each row varies (could be more/less terms)

    This formula has been suggested; but I still see the commas when i drag down

    =LEFT(B2,LEN(B2)-1)&SUBSTITUTE(RIGHT(B2), ",", "")

    Any help is very much appreciated! Thank you!!

  2. #2
    Registered User
    Join Date
    05-23-2016
    Location
    Chicago, Illinois
    MS-Off Ver
    2010
    Posts
    3

    Re: Remove numerous trailing commas from text string that contains commas

    I actually found this and it seems to be working! Thanks to kalak:
    Please Login or Register  to view this content.
    Last edited by 6StringJazzer; 05-23-2016 at 10:18 PM. Reason: Add thanks to user kalak; code tags -6SJ

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Remove numerous trailing commas from text string that contains commas

    Welcome to the Forum JenSven1!

    Please take the time to review our rules. There aren't many, and they are all important. Rule #3 requires code tags. I have added them for you this time because you are a new member.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Replies: 9
    Last Post: 11-23-2016, 12:22 PM
  2. Remove trailing commas
    By danallamas in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-23-2016, 11:04 AM
  3. Replies: 5
    Last Post: 01-17-2014, 05:56 PM
  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. Concatenate cell Title and remove trailing commas using Excel VB
    By missit in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-23-2013, 12:36 AM
  6. [SOLVED] can't remove commas at the end of a string
    By dschmitt in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-26-2013, 04:49 AM
  7. Extra trailing commas in exported CSV
    By lucidr in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-25-2006, 08:40 AM

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