if alpha character

  • Thread starter Thread starter samuel
  • Start date Start date
S

samuel

The following cells:

00000000000A
00000000000B
00000000005


if right(a1)=alpha character then everything left of the character, else the
entire field.

How do I code this?
 
One way using a formula in another cell:
=IF(ISNUMBER(-RIGHT(A1,1)),A1,LEFT(A1,LEN(A1)-1))

or to return a number (not text):
=--(IF(ISNUMBER(-RIGHT(A1,1)),A1,LEFT(A1,LEN(A1)-1)))

Not exactly what you asked, but probably sufficient????
 

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

Back
Top