![]() |
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? |
LEN function in XL97
It's a misplaced parenthesis. Try
=RIGHT(A1,LEN(A1)-2) James |
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? |
LEN function in XL97
It's all about brackets! Try this.. =RIGHT(A1,(LEN(A1)-2)) Colin -- Colin Vicary ------------------------------------------------------------------------ Colin Vicary's Profile: http://www.excelforum.com/member.php...o&userid=10472 View this thread: http://www.excelforum.com/showthread...hreadid=543789 |
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? |
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). |
All times are GMT +1. The time now is 04:29 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com