+ Reply to Thread
Results 1 to 6 of 6

LEN function in XL97

  1. #1
    Brian
    Guest

    LEN function in XL97

    I use XL97 and Windows 2000. Try this:

    In cell A1, put 13547.
    In cell B1, put =LEN(A1). It returns 5, which I would expect.
    In cell C1, put =RIGHT(A1,LEN(A1-2)). This returns 13547, which I would
    NOT expect.

    Why doesn't it return 547?

  2. #2
    Zone
    Guest

    Re: LEN function in XL97

    It's a misplaced parenthesis. Try
    =RIGHT(A1,LEN(A1)-2)
    James


  3. #3
    Registered User
    Join Date
    06-10-2004
    MS-Off Ver
    Office 2003
    Posts
    70
    It's all about brackets!

    Try this..

    =RIGHT(A1,(LEN(A1)-2))

    Colin

  4. #4
    Tim M
    Guest

    RE: LEN function in XL97

    Try this: =RIGHT(A1,LEN(A1)-2)

    you need to put the -2 outside of the LEN bracket


    "Brian" wrote:

    > I use XL97 and Windows 2000. Try this:
    >
    > In cell A1, put 13547.
    > In cell B1, put =LEN(A1). It returns 5, which I would expect.
    > In cell C1, put =RIGHT(A1,LEN(A1-2)). This returns 13547, which I would
    > NOT expect.
    >
    > Why doesn't it return 547?
    >


  5. #5
    Barb Reinhardt
    Guest

    RE: LEN function in XL97

    Wouldn't you want

    =RIGHT(A1,LEN(A1)-2).

    "Brian" wrote:

    > I use XL97 and Windows 2000. Try this:
    >
    > In cell A1, put 13547.
    > In cell B1, put =LEN(A1). It returns 5, which I would expect.
    > In cell C1, put =RIGHT(A1,LEN(A1-2)). This returns 13547, which I would
    > NOT expect.
    >
    > Why doesn't it return 547?
    >


  6. #6
    Brian
    Guest

    Re: LEN function in XL97

    Zone wrote:
    > It's a misplaced parenthesis. Try
    > =RIGHT(A1,LEN(A1)-2)
    > James
    >

    Thanks to everybody. This is my Homer Simpson moment for today (I hope).


+ 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