+ Reply to Thread
Results 1 to 6 of 6

How to remove the last 4 characters from a string

  1. #1
    Registered User
    Join Date
    03-24-2010
    Location
    USA
    MS-Off Ver
    MS Office Professional 2010
    Posts
    33

    How to remove the last 4 characters from a string

    Basically I want to find & list only those cells that do not contain "(MP3)" at the end. I'm using Office 2010.

    edit: I realize this can be done quite easily by utilizing Excel's filter feature to weed out all the cells containing (MP3) at the end but in this particular case, I'm interested in a formula only. Thanks.

    edit: nevermind. I'll work on this on my own.
    Last edited by AliGW; 06-14-2024 at 12:58 AM. Reason: Please do NOT delete parts of posts. Post restored.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,962

    Re: How to remove the last 4 characters from a string

    No sample file, huh?
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Ben Van Johnson

  3. #3
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2503 and WPS V2024(12.1.0.18543)
    Posts
    3,952

    Re: How to remove the last 4 characters from a string

    pls try this formula , Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-24-2010
    Location
    USA
    MS-Off Ver
    MS Office Professional 2010
    Posts
    33

    Re: How to remove the last 4 characters from a string

    Quote Originally Posted by protonLeah View Post
    No sample file, huh?
    I received your private message. What good does a sample file achieve in a situation like this? You already know what my data in column A looks like. Some cells have (MP3) at the end and some do not.
    I've already provided the criteria above: to list only those cells without the (MP3) at the end. If I did this would it have helped?

    Something 1 (MP3)
    Something 2 (MP3)
    Something 3 (MP3)
    Something 4 (MP3)
    Something 5 (MP3)
    Something 6 (MP3)
    Something 2 (MP3)
    Something 8 (MP3)
    Something 10 (MP3)
    Something 22 (MP3)
    Something 16 (MP3)

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,882

    Re: How to remove the last 4 characters from a string

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2503 and WPS V2024(12.1.0.18543)
    Posts
    3,952

    Re: How to remove the last 4 characters from a string

    A variable question , The requirements for POST # 1 at the top are completely different from those for POST # 4
    Even the title topic thread and requirements have been changed

    ANS. POST#4

    Cell B1 formula , Drag down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by wk9128; 06-14-2024 at 01:16 AM.

+ 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] Remove certain characters from end of string
    By dicko222 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-15-2019, 07:38 AM
  2. [SOLVED] Remove characters from string from the right after 4 characters
    By dlemley in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-10-2017, 08:47 AM
  3. VBA to remove characters from a string
    By ed67 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-06-2015, 12:46 PM
  4. [SOLVED] VBA, remove all characters within a string, except numerical characters and full stops
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-25-2015, 09:24 PM
  5. [SOLVED] VBA Remove First 10 Characters From string
    By hobbiton73 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-16-2013, 08:22 AM
  6. Remove characters in a string.
    By jncswe in forum Excel General
    Replies: 2
    Last Post: 09-10-2010, 07:26 AM
  7. Remove Characters From Right of String
    By milagros in forum Excel General
    Replies: 11
    Last Post: 12-26-2009, 12:01 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