+ Reply to Thread
Results 1 to 5 of 5

Removal of additional commas

  1. #1
    Registered User
    Join Date
    02-10-2012
    Location
    West Midlands
    MS-Off Ver
    Excel 2007
    Posts
    10

    Removal of additional commas

    Hi all,

    I have a spreadsheet which looks like this:

    A1 = 1 B1 = C1 = =IF(ISTEXT(B1),A1,"")
    A2 = 2 B2 = Jonny C2 = =IF(ISTEXT(B2),A2,"")
    A3 = 3 B3 = C3 = =IF(ISTEXT(B3),A3,"")
    A4 = 4 B4 = Rich C4 = =IF(ISTEXT(B4),A4,"")
    A5 = 5 B5 = Dave C5 = =IF(ISTEXT(B5),A5,"")
    A6 = 6 B6 = C6 = =IF(ISTEXT(B6),A6,"")

    My formula at C7 is =CONCATENATE(C1, ", ",C2,",",C3,",",C4,",",C5,",",C6,)
    This returns the following: ,2,,4,5,
    How do I remove the double comma with a formula,

    Thanks in advance

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Removal of additional commas

    Try

    =SUBSTITUTE(TRIM(CONCATENATE(C1," ",C2," ",C3," ",C4," ",C5," ",C6))," ",",")

  3. #3
    Registered User
    Join Date
    02-10-2012
    Location
    West Midlands
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Removal of additional commas

    Will give it a bosh,
    Thanks

  4. #4
    Registered User
    Join Date
    02-10-2012
    Location
    West Midlands
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Removal of additional commas

    Quote Originally Posted by Jonmo1 View Post
    Try

    =SUBSTITUTE(TRIM(CONCATENATE(C1," ",C2," ",C3," ",C4," ",C5," ",C6))," ",",")
    Worked like a charm,
    Thanks a million.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Removal of additional commas

    You're welcome

+ 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: 1
    Last Post: 02-06-2014, 03:00 PM
  2. Replies: 5
    Last Post: 01-17-2014, 05:56 PM
  3. removal of a value
    By sdts in forum Excel General
    Replies: 5
    Last Post: 02-05-2011, 08:40 AM
  4. Replies: 0
    Last Post: 09-10-2007, 10:22 AM
  5. Add-in removal
    By Rob Hoffy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-07-2005, 11:06 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