+ Reply to Thread
Results 1 to 6 of 6

Need to remove some contents of a cell.

  1. #1
    Registered User
    Join Date
    01-10-2008
    Posts
    11

    Need to remove some contents of a cell.

    In a nutshell I need the following accomplished:

    Cell A1: MK-ISO-L-63P2155-3-R6321-A -- Cell B1: MK-ISO-L-63P2155-3-A

    I need to remove the 'R6321' from the tag, only problem is, the number of characters of the tags are not alway's the same nor is the 'R6321' it changes too (there are roughly 1500 variations of this alpha numeric).

    One thing that DOES stay the same is the format with the dashes. It always goes: MK-ISO-L-WWW-X-YYYYY-Z.

    The number of 'W's changes, the number of 'X's changes and the number of Y's change, I think a formula that looks at dashes to remove the Y's would work...but cannot figure out how to do it.

    PLEASE HELP...THE BOSS IS LEANING ON ME PRETTY GOOD TO GET THIS TASK DONE!

  2. #2
    Registered User
    Join Date
    01-10-2008
    Posts
    11
    Here is an example of what cell's I have now, and what I need to see.

    PLEASE HELP

    Thank you in advance for your time.
    Attached Files Attached Files

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    If a VBA solution is OK, try this UDF:
    Please Login or Register  to view this content.
    Usage for you would be

    =RemoveToken(A2, 6)

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    or
    =LEFT(A1,FIND("/",SUBSTITUTE(A1,"-","/",5))-1)&RIGHT(A1,2)

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Much simpler, Martin.

  6. #6
    Registered User
    Join Date
    01-10-2008
    Posts
    11
    Worked like a charm. Thanks guy's.

+ 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 Help testing if a cells contents match that of a cell in another column
    By jmherbert in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-26-2008, 03:56 PM
  2. Excel formulas for checking contents within a cell.?
    By Aubbie in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-02-2008, 03:22 PM
  3. Using only Excel to reverse the contents of the cell.
    By all4excel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-21-2007, 07:53 AM
  4. cell contents in footer
    By David Obeid in forum Excel General
    Replies: 3
    Last Post: 11-13-2007, 05:20 AM
  5. Remove text after an '&' symbol in a cell
    By Badvgood in forum Excel General
    Replies: 3
    Last Post: 05-13-2007, 03:06 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