LEN function in XL97

  • Thread starter Thread starter Brian
  • Start date Start date
B

Brian

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?
 
Try this: =RIGHT(A1,LEN(A1)-2)

you need to put the -2 outside of the LEN bracket
 
Zone said:
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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Max Length in a row 1
RT- error 1004 3
Len function returns bigger number 10
if then formula 1
Formula to pull last name error (Excel 07) 1
if then formula 2
Conundrum 7
How to change the year digit? 4

Back
Top