+ Reply to Thread
Results 1 to 9 of 9

Does anyone know how to remove a semicolon from a cell?

  1. #1
    Registered User
    Join Date
    06-23-2021
    Location
    US
    MS-Off Ver
    365
    Posts
    16

    Does anyone know how to remove a semicolon from a cell?

    In a cell is different names separated by a space and semicolon, at the last name in the cell there is a semicolon. I am trying to find some way to remove the semicolon that comes after the very last name in the cell. I want to keep the other semicolons that are in the cell and only want to remove the semicolon that comes after the last name.

    Example of list of names- Adam; Apple; Bob; Brad; John; Kendra Sam; Tad; Tom;

    I want to find a way to remove the semicolon that is at the end of the last name which is Tom.

    I have attached an example of the excel sheet.

    Thanks in advance.

    Jumper23
    Attached Files Attached Files
    Last edited by Jumper23; 06-24-2021 at 04:21 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Does anyone know how to remove a semicolon from a cell?

    In B1
    =LEFT(A1, LEN(A1)-1)
    Then you can copy and paste special > Values back over column A
    Is that what you need?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    06-23-2021
    Location
    US
    MS-Off Ver
    365
    Posts
    16

    Re: Does anyone know how to remove a semicolon from a cell?

    Hello ChemistB,

    I don't think my last message got posted.

    I have run into a problem, I only want to remove the last semicolon after the last name. This function here is removing the last text but I only what to remove the last semicolon. I have some cells that do not have a semicolon at the end and this function removes the last text which is the last letter of the name. Is there some way to correct this?
    I have attached an excel sheet as an example.
    Thank you for the fast reply.

    Jumper23
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Does anyone know how to remove a semicolon from a cell?

    PHP Code: 
    =left(a1len(a1)-(right(a1,1)=";")) 
    Messages have been translated from Dutch to English by means of google translate.

  5. #5
    Registered User
    Join Date
    06-23-2021
    Location
    US
    MS-Off Ver
    365
    Posts
    16

    Re: Does anyone know how to remove a semicolon from a cell?

    Hello Vraag en antwoord,

    Thank you for this it really did work.

    Jumper23

  6. #6
    Registered User
    Join Date
    06-23-2021
    Location
    US
    MS-Off Ver
    365
    Posts
    16

    Re: Does anyone know how to remove a semicolon from a cell?

    deleted no need
    Last edited by Jumper23; 06-25-2021 at 01:25 AM.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,777

    Re: Does anyone know how to remove a semicolon from a cell?

    You've started a new thread for this and I have already explained it. Don't duplicate queries, please.

    RIGHT(A5,1)=";"

    evaluates to TRUE if there is a semi-colon at the end of A5 and FALSE if not. Excel sees TRUE as 1 and FALSE as 0.

    LEN(A5) returns the number of characters in A5. The result of the RIGHT statement is then deducted from this.

    =LEFT(A5,...)

    This returns the number of characters at the left of A5 determined by the calculation explained above, so one fewer than LEN(A5) if there is a semi-colon at the end, and the same as LEN(A5) if not.

    Evaluate Formula on the Formulas ribbon with help you with this sort of formula analysis.
    Last edited by AliGW; 06-25-2021 at 12:58 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,777

    Re: Does anyone know how to remove a semicolon from a cell?

    So, did this help at all??? Some feedback would have been nice ...

  9. #9
    Registered User
    Join Date
    06-23-2021
    Location
    US
    MS-Off Ver
    365
    Posts
    16

    Re: Does anyone know how to remove a semicolon from a cell?

    Hello AliGW,

    This has been helpful thank you very much for you time and skills with this issue.

    Jumper23

+ 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. [SOLVED] If cell starts with semicolon, remove semicolon
    By ngenova in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-05-2020, 05:16 PM
  2. [SOLVED] Remove Every data from Specific Columns before First Semicolon from Left Side
    By hjaspaul in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-11-2017, 05:22 AM
  3. [SOLVED] Keep first word in each line, separate by semicolon and remove everything else
    By adh2 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-14-2015, 12:58 PM
  4. [SOLVED] Remove test beween space and semicolon in a cell
    By Niclal in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-04-2014, 09:56 AM
  5. Replies: 4
    Last Post: 05-11-2013, 10:47 PM
  6. [SOLVED] how do i make a semicolon appear in every cell
    By paul in forum Excel General
    Replies: 2
    Last Post: 08-10-2006, 06:00 PM
  7. semicolon delimiter in a cell
    By coco in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-02-2005, 06:05 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