Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mickbarry
 
Posts: n/a
Default Cell function required


Hi all,
I need a function which tells me if a cell contains
an alpha character.
That is if cell contains "g" then True
if cell contains 7 then False

Regards Mick Barry

There are never enough hours in the day, but always too many days
before Saturday.


--
mickbarry
------------------------------------------------------------------------
mickbarry's Profile: http://www.excelforum.com/member.php...o&userid=31028
View this thread: http://www.excelforum.com/showthread...hreadid=509582

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Cell function required

=ISNUMBER(A1)

tests for a number, but that will also pass 123

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"mickbarry" wrote
in message ...

Hi all,
I need a function which tells me if a cell contains
an alpha character.
That is if cell contains "g" then True
if cell contains 7 then False

Regards Mick Barry

There are never enough hours in the day, but always too many days
before Saturday.


--
mickbarry
------------------------------------------------------------------------
mickbarry's Profile:

http://www.excelforum.com/member.php...o&userid=31028
View this thread: http://www.excelforum.com/showthread...hreadid=509582



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default Cell function required


=ISTEXT(A1)

although you can have 7 in a cell formatted as text and this will
return TRUE


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=509582

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Cell function required

Hi!

Try this:

=ISERROR(A1*1)

You could use:

=ISTEXT(A1)

However, if cell A1 is formatted as TEXT and contains the entry: 7,
ISTEXT(A1) will return TRUE. Using the ISERROR method accounts for that.

Biff

"mickbarry" wrote
in message ...

Hi all,
I need a function which tells me if a cell contains
an alpha character.
That is if cell contains "g" then True
if cell contains 7 then False

Regards Mick Barry

There are never enough hours in the day, but always too many days
before Saturday.


--
mickbarry
------------------------------------------------------------------------
mickbarry's Profile:
http://www.excelforum.com/member.php...o&userid=31028
View this thread: http://www.excelforum.com/showthread...hreadid=509582



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JE McGimpsey
 
Posts: n/a
Default Cell function required

One way:

If a particular alpha character:

=A1="g"

If any alpha character:

=AND(A1="a",A1<="z")

or perhaps


=AND(A1="a",A1<="z",LEN(A1)=1)

to prevent "a123" from returning TRUE


Or, if you just want to make sure the entry isn't numeric:

=NOT(ISNUMBER(A1))



In article ,
mickbarry
wrote:

I need a function which tells me if a cell contains
an alpha character.
That is if cell contains "g" then True
if cell contains 7 then False



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mickbarry
 
Posts: n/a
Default Cell function required


Thanks Bob,
The function "Code" looks at the ASCII list (computer character
set)
The formula =IF(AND(CODE(C1)64,CODE(C1)<123),TRUE,FALSE)
does a pretty good job, however there are a few exceptions
eg "/,],[,^" will also produce a True.

Regards Mick Barry

Anyway, like I was sayin', wabbit is the fruit of the land. You can
barbecue it, boil it, broil it, bake it, saute it. Dey's uh,
wabbit-kabobs, wabbit creole, wabbit gumbo. Pan fried, deep fried,
stir-fried. There's pineapple wabbit, lemon wabbit, coconut wabbit,
pepper wabbit, wabbit soup, wabbit stew, wabbit salad, wabbit and
potatoes, wabbit burger, wabbit sandwich. That- that's about it.


--
mickbarry
------------------------------------------------------------------------
mickbarry's Profile: http://www.excelforum.com/member.php...o&userid=31028
View this thread: http://www.excelforum.com/showthread...hreadid=509582

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mickbarry
 
Posts: n/a
Default Cell function required


Nice one Mr McGimpsey
I'll go with your suggestion.
It even gives the OK to Scandinavian alpha.

Regards Mick Barry

"My world my country" rather than "My country my world"


--
mickbarry
------------------------------------------------------------------------
mickbarry's Profile: http://www.excelforum.com/member.php...o&userid=31028
View this thread: http://www.excelforum.com/showthread...hreadid=509582

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
Reading Cell Function??? roy.okinawa Excel Worksheet Functions 2 December 1st 05 11:29 PM
IF Function to test formula in a cell Fred Holmes Excel Worksheet Functions 5 November 18th 05 12:04 AM
How do I copy a function with a called cell constant? MitchCarter1957 Excel Worksheet Functions 1 September 6th 05 05:26 PM
copying the function contained within a cell to anouther cell. DMB Excel Worksheet Functions 2 September 1st 05 05:49 PM
Function syntax to compare cell contents ES Excel Worksheet Functions 2 May 18th 05 03:53 PM


All times are GMT +1. The time now is 07:08 PM.

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

About Us

"It's about Microsoft Excel"