+ Reply to Thread
Results 1 to 4 of 4

How remove characters to the right of a delineator for variable length field

  1. #1
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Boston
    MS-Off Ver
    MS 365
    Posts
    225

    How remove characters to the right of a delineator for variable length field

    I have a column of a 100 rows populated by variable length field comprised of alpha and numbers. The field contains part numbers. Every part number has ; towards the end of the field which is followed by 1,2, or 3 characters. I want to delete anything to the right of the ; including the ;. For instance part number ABC-1234-56;X4 I would like to only be ABC-1234-56.

    Any direction appreciated (not an expert)

    -j

  2. #2
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,573

    Re: How remove characters to the right of a delineator for variable length field

    Try this:

    =LEFT(A1,FIND(";",A1)-1)
    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.

  3. #3
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Boston
    MS-Off Ver
    MS 365
    Posts
    225

    Re: How remove characters to the right of a delineator for variable length field

    PERFECT! Thanks so much!

  4. #4
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,573

    Re: How remove characters to the right of a delineator for variable length field

    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. [SOLVED] I'd like to return text below a set of characters that repeats after a variable length
    By davidfields1985 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-01-2016, 08:49 AM
  2. Replies: 7
    Last Post: 12-17-2015, 05:14 PM
  3. Cell length formula to remove any characters over 31 in length
    By tehkayd in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-02-2015, 11:45 AM
  4. [SOLVED] Help: Need VBA script to remove rows if a column field doesn't match a certain length.
    By rmconard in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-08-2013, 04:04 PM
  5. Excel 2007 : Variable Field Length, lose last 8 digits
    By allispam in forum Excel General
    Replies: 2
    Last Post: 03-22-2012, 08:58 AM
  6. MID Function w/ Variable Field Length and Spaces
    By crew696 in forum Excel General
    Replies: 7
    Last Post: 02-14-2011, 10:08 AM
  7. Passing Variable length Space Characters to Variables
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-07-2006, 07:40 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