+ Reply to Thread
Results 1 to 4 of 4

[SOLVED]Order Code has 1 letter added need function to delete said letter

  1. #1
    Forum Contributor
    Join Date
    06-24-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    114

    [SOLVED]Order Code has 1 letter added need function to delete said letter

    I have an order code that has a letter at the end i need to clear

    JUN123456A

    to make

    JUN123456

    =MID(B5,SEARCH("JUN",B5,1)+0,9)

    That works perfect, but I come across

    MAY123456A

    So I need to have function to do both MAY and JUN

    =MID(B5,SEARCH("JUN""MAY",B5,1)+0,9)

    I guessed this, doesnt work.

    Suggestions
    Last edited by king10001; 08-23-2013 at 01:25 PM.

  2. #2
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Order Code has 1 letter added need function to delete said letter

    Just use this:

    =LEFT(B5,LEN(B5)-1)
    When I say semicolon, u say comma!

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Order Code has 1 letter added need function to delete said letter

    How about

    =MID(B5,LEN(B5)-9,9)

  4. #4
    Forum Contributor
    Join Date
    06-24-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    114

    Re: Order Code has 1 letter added need function to delete said letter

    =LEFT(B5,LEN(B5)-1)

    actually did

    =LEFT(B5,LEN(B5)-2)

    worked perfect

+ 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. Replies: 5
    Last Post: 07-13-2006, 12:15 AM
  2. [SOLVED] Default Capital letter for 1st letter of a word
    By Jeff in forum Excel General
    Replies: 6
    Last Post: 07-10-2006, 03:39 AM
  3. Replies: 6
    Last Post: 10-13-2005, 05:05 AM
  4. [SOLVED] How to replace column letter in refferences with a function using the old column letter?
    By Dmitry Kopnichev in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-13-2005, 05:05 AM
  5. Replies: 2
    Last Post: 05-09-2005, 04: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