Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I need to determine whether first character in a cell is either a text or
numeric value. How can I do this using a function command? |
#2
![]() |
|||
|
|||
![]()
=if(isnumber(-left(a1,1)),"Number","not number")
MarcusA wrote: I need to determine whether first character in a cell is either a text or numeric value. How can I do this using a function command? -- Dave Peterson |
#3
![]() |
|||
|
|||
![]()
Function:
=ISNUMBER(VALUE(LEFT(A1))) Will return TRUE if first character in cell is numeric value, otherwise returns false. Another way (gives you "Text"/"Number" output): =IF(OR(LEFT(A1)="0",LEFT(A1)="1",LEFT(A1)="2",LEFT (A1)="3",LEFT(A1)="4",LEFT(A1)="5",LEFT(A1)="6",LE FT(A1)="7",LEFT(A1)="8",LEFT(A1)="9"),"Number","Te xt") "MarcusA" wrote in message ... I need to determine whether first character in a cell is either a text or numeric value. How can I do this using a function command? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cell color based upon cell value | Excel Discussion (Misc queries) | |||
cell color index comparison | New Users to Excel | |||
Cell Change Color - Need Help | New Users to Excel | |||
Function syntax to compare cell contents | Excel Worksheet Functions | |||
VLookup resulting in a blank cell... | Excel Worksheet Functions |