Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
MarcusA
 
Posts: n/a
Default Testing positions in a cell

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   Report Post  
Dave Peterson
 
Posts: n/a
Default Testing positions in a cell

=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   Report Post  
Mladen_Dj
 
Posts: n/a
Default Testing positions in a cell

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
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
Cell color based upon cell value My View Excel Discussion (Misc queries) 11 July 6th 05 03:59 AM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Cell Change Color - Need Help alani New Users to Excel 3 June 29th 05 03:50 PM
Function syntax to compare cell contents ES Excel Worksheet Functions 2 May 18th 05 03:53 PM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


All times are GMT +1. The time now is 07:27 AM.

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"