+ Reply to Thread
Results 1 to 4 of 4

Select From right to left untill character is hit

  1. #1
    Registered User
    Join Date
    11-08-2016
    Location
    england
    MS-Off Ver
    365
    Posts
    2

    Select From right to left untill character is hit

    I need to Select from the right all characters untill i hit a certain one.

    example data is:
    "Kitchens >> Appliances >> CDA Appliances >> Extractor Accessories" The result i want is "Extractor Accessories"

    I have tried
    "=RIGHT(CR3,LEN(CR3)-FIND(">>",CR3))"

    but it does all characters untill the last occurence of > is found (or its actually finding the first occurence and checking from left to right)

    This possible?

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,188

    Re: Select From right to left untill character is hit

    Try:

    =TRIM(RIGHT(SUBSTITUTE(CR3,">>",REPT(" ",250)),250))

  3. #3
    Registered User
    Join Date
    11-08-2016
    Location
    england
    MS-Off Ver
    365
    Posts
    2

    Re: Select From right to left untill character is hit

    Quote Originally Posted by Phuocam View Post
    Try:

    =TRIM(RIGHT(SUBSTITUTE(CR3,">>",REPT(" ",250)),250))
    Works perfect thankyou

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,188

    Re: Select From right to left untill character is hit

    You are welcome!

+ 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. [SOLVED] How to use LEFT and RIGHT to delete last character
    By nicolaivinther in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-06-2014, 09:53 AM
  2. Replies: 2
    Last Post: 06-16-2014, 06:17 AM
  3. Select cells untill no data anymore with empty rows
    By keis386 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2013, 12:01 PM
  4. High select Column A-I untill A coulumn has Specific Data
    By harsha_manjula in forum Excel General
    Replies: 0
    Last Post: 02-25-2013, 07:08 AM
  5. Replies: 3
    Last Post: 11-20-2012, 10:03 PM
  6. [SOLVED] Sum numbers left of a character from within a string
    By BarryTSL in forum Excel General
    Replies: 14
    Last Post: 04-17-2012, 01:11 PM
  7. Replies: 2
    Last Post: 08-19-2008, 07:18 AM

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