• Cut off last character in a cell (Excel 2007)

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Cut off last character in a cell (Excel 2007)

    Author
    Topic
    #457606

    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

    Viewing 1 reply thread
    Author
    Replies
    • #1147874

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

      Thanks!!
      Lana

    • #1148111

      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

    Viewing 1 reply thread
    Reply To: Cut off last character in a cell (Excel 2007)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: