+ Reply to Thread
Results 1 to 4 of 4

Delete characters

  1. #1
    Registered User
    Join Date
    03-01-2016
    Location
    Phoenix, AZ
    MS-Off Ver
    MS Office 2013
    Posts
    94

    Delete characters

    I just need a code or function that will delete unnecessary characters.

    I have a list of part numbers in a column that should be in the form of XX-XXX-XX...for some reason the database sometimes adds characters to the end. I just want to trim off any characters once you get past XX-XXX-XX (9 characters)

  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
    53,048

    Re: Delete characters

    Maybe in a helper column...
    =left(a2,9)
    copied down
    This assumes you want the 1st 9 characters
    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
    Registered User
    Join Date
    03-01-2016
    Location
    Phoenix, AZ
    MS-Off Ver
    MS Office 2013
    Posts
    94

    Re: Delete characters

    Perfect thanks!

  4. #4
    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
    53,048

    Re: Delete characters

    Happy to help and thanks for the feedback

+ 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] Macro to delete characters between 2 characters.
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 09-29-2014, 08:48 AM
  2. Need to keep 18 characters and delete res
    By Rochell in forum Excel General
    Replies: 1
    Last Post: 06-11-2014, 02:18 AM
  3. [SOLVED] Delete first 2 characters characters
    By jhalsall80 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-30-2014, 11:36 AM
  4. how to delete characters before and after
    By moomeacow in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-19-2014, 04:28 PM
  5. [SOLVED] Delete characters and add * in front and last characters in ACCESS QUERY
    By LALTIZER in forum Access Tables & Databases
    Replies: 9
    Last Post: 02-01-2013, 02:06 PM
  6. Delete some characters
    By Anto_BT in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-20-2012, 11:44 AM
  7. [SOLVED] Characters.delete only works with less than 255 characters?
    By mexindian in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-26-2012, 11:57 AM

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