+ Reply to Thread
Results 1 to 2 of 2

Need to keep 18 characters and delete res

  1. #1
    Registered User
    Join Date
    06-11-2014
    Posts
    1

    Red face Need to keep 18 characters and delete res

    Good Morning

    I need help,

    I need to keep 18 & more characters in a excel column and delete any thing less than that

    Example:
    RB-CEM-231-VLV-037 - keep
    RB-CHM - Delete
    RB-CHM-111 - Delete

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Need to keep 18 characters and delete res

    You have two options formula or VBA code.

    Assuming you have string in A1, then in B1 try this...

    Please Login or Register  to view this content.
    And if you don't want to populate col. B and want to delete or keep the values in col. A itself, try this code......
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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. Need to keep 18 characters and delete res
    By Rochell in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 06-12-2014, 09:43 AM
  2. [SOLVED] Delete first 2 characters characters
    By jhalsall80 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-30-2014, 11:36 AM
  3. how to delete characters before and after
    By moomeacow in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-19-2014, 04:28 PM
  4. [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
  5. [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