+ Reply to Thread
Results 1 to 6 of 6

Is there an Excel Function that is the Reverse of RIGHT()

  1. #1
    Registered User
    Join Date
    05-30-2012
    Location
    Dayton, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    3

    Is there an Excel Function that is the Reverse of RIGHT()

    Hi all, my first post here and I'm looking for some help.

    I need to copy data from cell A1 to cell B1 "Except" for the last 4 characters. I'm looking for a function that can do this and drag down for the entire column B. I can't use LEFT() because the length of the left changes, but the RIGHT 4 will always be the same.

    Example
    Column A
    Apple-90T
    Banana-90T
    Lime-90T

    Output I would like in column B
    Apple
    Banana
    Lime

    Which I think is basically the reverse of RIGHT(A1,4)

    Any help is very much appreciated.

  2. #2
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: Is there an Excel Function that is the Reverse of RIGHT()

    Please Login or Register  to view this content.
    Ron
    Knowledge is knowing that a tomato and pepper are fruits. Wisdom is knowing whether to put these in a fruit salad

    Kindly

    [1] Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks
    [2] Mark your post [SOLVED] if it has been answered satisfactorily by editing your original post in advanced mode.
    [3] Thank (using the little scale) those that provided useful help; its nice and its very well appreciated

  3. #3
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094

    Re: Is there an Excel Function that is the Reverse of RIGHT()

    Hi,

    The LEFT function is what you need in conjunction with the FIND function to determine the number of characters to return.

    =LEFT(A1,FIND("-",A1,1)-1)

    HTH

    Steve

  4. #4
    Registered User
    Join Date
    05-30-2012
    Location
    Dayton, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Is there an Excel Function that is the Reverse of RIGHT()

    Thank you Ron & Steve,
    Both answers work perfectly.

  5. #5
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Is there an Excel Function that is the Reverse of RIGHT()

    if the last four characters are always the same, this will work too:

    =SUBSTITUTE(A1,"-90T","")
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  6. #6
    Registered User
    Join Date
    05-30-2012
    Location
    Dayton, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Is there an Excel Function that is the Reverse of RIGHT()

    Thank you Ice, that works as well.

    The solution I have used in the past was adding columns and splitting it on the dash with text to columns. Then copy&pasting data back. In this case I needed to append some additional information so these solutions are perfect.

    Thanks again all 3

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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