#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default if alpha character

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?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default if alpha character

=IF(ISNUMBER(--RIGHT(A1,1)),A1,LEFT(A1,LEN(A1)-1))

--
Gary''s Student - gsnu200820


"samuel" wrote:

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?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default if alpha character

=IF(CODE(RIGHT(A1))=65,LEFT(A1,LEN(A1)-1),A1)
--
David Biddulph

"samuel" wrote in message
...
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?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default if alpha character

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????

samuel wrote:

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?


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default if alpha character

Another one...

Doesn't account for empty cells:

=LEFT(A1,LEN(A1)-ISERR(-RIGHT(A1)))

--
Biff
Microsoft Excel MVP


"samuel" wrote in message
...
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?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PICTURE RECOGNITION AS A ALPHA-NUMERIC CHARACTER Gautam Mandal Excel Worksheet Functions 0 March 28th 07 02:03 AM
PICTURE RECOGNITION AS A ALPHA-NUMERIC CHARACTER Greg Wilson Excel Worksheet Functions 0 March 28th 07 01:56 AM
PICTURE RECOGNITION AS A ALPHA-NUMERIC CHARACTER Greg Wilson Excel Worksheet Functions 0 March 28th 07 12:15 AM
Parsing a alpha character out of a cell Lram Excel Worksheet Functions 7 October 17th 05 10:56 PM
Numerical grade to Alpha character capecrusader Excel Discussion (Misc queries) 6 August 20th 05 02:02 PM


All times are GMT +1. The time now is 06:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"