+ Reply to Thread
Results 1 to 4 of 4

Formula to remove the comma sign at end of names

  1. #1
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Mauritius
    MS-Off Ver
    Excel 2010
    Posts
    116

    Formula to remove the comma sign at end of names

    Hi all,

    I'm using Excel 2010 and I'm working on a worksheet where I need to perform a VLookup on a specific column (say Col. B) that contains a long list of names. Problem is some of the names in that list end with a comma. Since the lookup table have the names without the commas, I'm having a real headache going through the list to eliminate the commas!

    Is there a formula that can help me to remove the commas in those names?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Formula to remove the comma sign at end of names

    2 ways i can think of off-hand to do this....
    =vlookup(left(B2,len(B2)-1),the=rest=of=your=vlookup-formula)
    use a helper column in the lookup table, use =left(a1,len(a1)-1) to remove the comma, and then use vlookup() IF you put the helper to the far left of the data - or index/match if you add it to the right
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Formula to remove the comma sign at end of names

    You could hightlight the column list that has the commas and use the replace text. Crtl H - put the comma in the "Find What" box and leave Replace with blank

    If you don't have any text within the list with duplicate text you can use VLOOKUP with wildcards

    =VLOOKUP("*"&A1&"*",$G$1:$H$3,2,0)
    Excel Guru in the making

    <----------If the question has been answered to your satisfication please click the Add Repuation star to the left

  4. #4
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Mauritius
    MS-Off Ver
    Excel 2010
    Posts
    116

    Re: Formula to remove the comma sign at end of names

    Thank you FDibbins and The Cman81 for your help! I'll give both solutions a try and report back.

+ 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. Find and remove all text to the left of last comma (including comma) in a cell
    By Excelrookie_1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-05-2013, 08:47 AM
  2. Replies: 4
    Last Post: 01-17-2013, 03:54 PM
  3. Formula to remove entries after comma
    By Damian84 in forum Excel General
    Replies: 4
    Last Post: 03-16-2012, 09:43 AM
  4. Change comma sign for textbox inputting
    By gandrinno in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-26-2009, 06:18 PM
  5. [SOLVED] Removing every second instance of comma sign
    By Triple7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-14-2005, 04:06 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