Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 383
Default Test left character is a number?

hi, have formula for whole cell to equal a number, but is it possible to test
only the left character to be a number. thanks.

have: =ISNUMBER(AD9)

sample of data: 1F
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Test left character is a number?

Try this:

=ISNUMBER(--LEFT(A1))

--
Biff
Microsoft Excel MVP


"nastech" wrote in message
...
hi, have formula for whole cell to equal a number, but is it possible to
test
only the left character to be a number. thanks.

have: =ISNUMBER(AD9)

sample of data: 1F



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Test left character is a number?

or even
=isnumber(-left(a1))

<vbg

"T. Valko" wrote:

Try this:

=ISNUMBER(--LEFT(A1))

--
Biff
Microsoft Excel MVP

"nastech" wrote in message
...
hi, have formula for whole cell to equal a number, but is it possible to
test
only the left character to be a number. thanks.

have: =ISNUMBER(AD9)

sample of data: 1F


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Test left character is a number?

=LEFT(A1)*1=0

"nastech" wrote:

hi, have formula for whole cell to equal a number, but is it possible to test
only the left character to be a number. thanks.

have: =ISNUMBER(AD9)

sample of data: 1F

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 383
Default Test left character is a number?

thanks..

"Dave Peterson" wrote:

or even
=isnumber(-left(a1))

<vbg

"T. Valko" wrote:

Try this:

=ISNUMBER(--LEFT(A1))

--
Biff
Microsoft Excel MVP

"nastech" wrote in message
...
hi, have formula for whole cell to equal a number, but is it possible to
test
only the left character to be a number. thanks.

have: =ISNUMBER(AD9)

sample of data: 1F


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default Test left character is a number?

Won't that generate an error if the first character is not a digit?

Rick


"Teethless mama" wrote in message
...
=LEFT(A1)*1=0

"nastech" wrote:

hi, have formula for whole cell to equal a number, but is it possible to
test
only the left character to be a number. thanks.

have: =ISNUMBER(AD9)

sample of data: 1F


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Test left character is a number?

You are correct. It generate an error when it's not a number. If it's a
number then it returns TRUE. Instead return TRUE/FALSE, my is return
TRUE/#VALUE!


"Rick Rothstein (MVP - VB)" wrote:

Won't that generate an error if the first character is not a digit?

Rick


"Teethless mama" wrote in message
...
=LEFT(A1)*1=0

"nastech" wrote:

hi, have formula for whole cell to equal a number, but is it possible to
test
only the left character to be a number. thanks.

have: =ISNUMBER(AD9)

sample of data: 1F



  #8   Report Post  
Junior Member
 
Posts: 2
Lightbulb

I know I'm raising a dead post back to life, but it's one of those useful answers

From Stackoverflow
ISNUMBER(--LEFT(B2,1))

also works with mid (and presumably right)

bc --LEFT(b2,1) returns #value and isnumber takes that to be non-numeric.
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
Returning left part of cell before a character Alan Excel Discussion (Misc queries) 6 April 4th 23 02:26 PM
Get characters on left of specified character in Excel Murugan Excel Discussion (Misc queries) 3 April 2nd 23 04:15 PM
Limit character count in cell from left BMF Excel Discussion (Misc queries) 5 July 12th 06 06:11 PM
How to edit column data so that all but left most character remain Max Prophet Excel Discussion (Misc queries) 1 June 29th 06 06:18 PM
Test for Single Character That is in an Array scallyte Excel Worksheet Functions 2 November 11th 04 04:47 PM


All times are GMT +1. The time now is 11:37 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"