Results 1 to 4 of 4
  1. #1
    3 Star Lounger
    Join Date
    Jul 2002
    Location
    Ankeny, Iowa, USA
    Posts
    344
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Cut off last character in a cell (Excel 2007)

    Hi,
    I'm trying to come up with a formula that does as follows:
    If the last character in a cell is * then cut that asterik off and leave the rest of the characters as is. For example, if cell A1 has 12345* in it, then I'd like my formula in A2 to result in only the 12345. Please note that the number of characters will be different throughout the database, so I can't simply use the mid formula. Any ideas are always appreciated.
    Thanks!
    Lana

  2. #2
    3 Star Lounger
    Join Date
    Jul 2002
    Location
    Ankeny, Iowa, USA
    Posts
    344
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Re: Cut off last character in a cell (Excel 2007)

    Never mind... I just figured it out... for those interested, here is my formula.
    =LEFT(L751,(LEN(L751)-1))

    Thanks!!
    Lana

  3. #3
    2 Star Lounger
    Join Date
    Aug 2004
    Posts
    123
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Cut off last character in a cell (Excel 2007)

    Your formula will cut off all last character in a cell, even those the last character is not a *

    Try to use the following formula instead :

    =SUBSTITUTE(A1,"*","")

    Regards
    Bosco

  4. #4
    3 Star Lounger
    Join Date
    Jul 2002
    Location
    Ankeny, Iowa, USA
    Posts
    344
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Re: Cut off last character in a cell (Excel 2007)

    I like it...thanks!
    Lana

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •