+ Reply to Thread
Results 1 to 3 of 3

LEFT and RIGHT functions

  1. #1
    Registered User
    Join Date
    01-04-2005
    Posts
    5

    Arrow LEFT and RIGHT functions

    I know it is possible to use the LEFT and RIGHT function to select text that is a number of digits away from the left or right but is it possible to do this to the first < charachther from the left and the first > from the right.

    ie

    i have a piece of text like this in a cell A3

    TEXT TEXTEXXAMPLELEFT<NL>EXAMPLE TEXT RIGHTTEST TEST

    in cell A1 I want everything on the left of the <NL>
    in cell B1 I want everything to the right of the <NL>

    and i would like to do it without the text import wizard as i need this text to stay in A3 aswell.

    thanks

    Shane

  2. #2
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    Use:
    =LEFT(A1,FIND("<nl>",A1)-1)
    and
    =RIGHT(A1,LEN(A1)-(FIND("<nl>",A1)-1)-4)

    A1 contains your text. 4 in the formula represents the length of the seperator, in this case it is <NL> which has 4 characters.

    - Mangesh

  3. #3
    Registered User
    Join Date
    01-04-2005
    Posts
    5

    Red face

    brilliant that thanks very much for the speedy reply

+ 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