+ Reply to Thread
Results 1 to 5 of 5

Remove characters from end of value IF the value contains a particular character

  1. #1
    Registered User
    Join Date
    02-28-2023
    Location
    Virginia, USA
    MS-Off Ver
    0365
    Posts
    5

    Remove characters from end of value IF the value contains a particular character

    I am looking to remove the last two character of a value if the second to last character is "-"

    Any ideas?!

    Thanks!!

    dlt.pngdlt.xlsx

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Remove characters from end of value IF the value contains a particular character

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Remove characters from end of value IF the value contains a particular character

    with Power Query

    Please Login or Register  to view this content.
    raw TBD
    3392-9 3392
    393 393
    299-410 299-410
    2424 2424
    2436-6 2436
    50-440 50-440
    504-41 504-41
    60446 60446
    7474-5 7474
    9525 9525
    3541-1 3541

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Remove characters from end of value IF the value contains a particular character

    Updated file.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-28-2023
    Location
    Virginia, USA
    MS-Off Ver
    0365
    Posts
    5

    Re: Remove characters from end of value IF the value contains a particular character

    This has been resolved, thank you everyone!

+ 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] Formula to remove all characters after a specific character
    By rrcrossman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-28-2021, 02:09 PM
  2. [SOLVED] Formula Remove slashes, insert X in front of first character and remove last to characters
    By Howardc1001 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-29-2020, 03:31 AM
  3. [SOLVED] VBA to remove text between to character (including those characters)
    By Hecky83150 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 03-13-2020, 12:41 PM
  4. [SOLVED] Create a formula to remove last two characters from a cell if the 2nd character is a space
    By SellMeTv2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-28-2019, 11:13 PM
  5. Macros to remove a special character and all the characters after that....
    By Umapathy kumar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-07-2013, 01:27 AM
  6. Replies: 5
    Last Post: 08-29-2005, 11:05 PM
  7. Replies: 1
    Last Post: 04-18-2005, 05:06 PM

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