Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() =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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() 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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reading Cell Function??? | Excel Worksheet Functions | |||
IF Function to test formula in a cell | Excel Worksheet Functions | |||
How do I copy a function with a called cell constant? | Excel Worksheet Functions | |||
copying the function contained within a cell to anouther cell. | Excel Worksheet Functions | |||
Function syntax to compare cell contents | Excel Worksheet Functions |