Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default determine wheter string has a number in it?

Is there an easy formula that will look at a cell and determine whether a
number 0-9 is in that cell?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default determine wheter string has a number in it?

Let me clarify -- formula looks in A1 to determine whether or not a number is
in the string that is in A1.

For example

A1 = asfkajsf4asdf --- TRUE
A1 = asdlfksdfa ---- FALSE

"Ted Metro" wrote:

Is there an easy formula that will look at a cell and determine whether a
number 0-9 is in that cell?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 698
Default determine wheter string has a number in it?

With
A1 containing a value that may contain a number or be blank

This formula returns TRUE if A1 contains a number:
=MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789") )<=LEN(A1)

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Ted Metro" wrote:

Let me clarify -- formula looks in A1 to determine whether or not a number is
in the string that is in A1.

For example

A1 = asfkajsf4asdf --- TRUE
A1 = asdlfksdfa ---- FALSE

"Ted Metro" wrote:

Is there an easy formula that will look at a cell and determine whether a
number 0-9 is in that cell?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default determine wheter string has a number in it?

Try this:

=ISNUMBER(--MID(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"01234567 89")),1))

Biff

"Ted Metro" wrote in message
...
Is there an easy formula that will look at a cell and determine whether a
number 0-9 is in that cell?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default determine wheter string has a number in it?

Very much so Mr. C.

Thank you much!

"Ron Coderre" wrote:

With
A1 containing a value that may contain a number or be blank

This formula returns TRUE if A1 contains a number:
=MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789") )<=LEN(A1)

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Ted Metro" wrote:

Let me clarify -- formula looks in A1 to determine whether or not a number is
in the string that is in A1.

For example

A1 = asfkajsf4asdf --- TRUE
A1 = asdlfksdfa ---- FALSE

"Ted Metro" wrote:

Is there an easy formula that will look at a cell and determine whether a
number 0-9 is in that cell?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 698
Default determine wheter string has a number in it?

I'm glad that worked for you.....and thanks for the feedback (much appreciated)


***********
Regards,
Ron

XL2002, WinXP


"Ted Metro" wrote:

Very much so Mr. C.

Thank you much!

"Ron Coderre" wrote:

With
A1 containing a value that may contain a number or be blank

This formula returns TRUE if A1 contains a number:
=MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789") )<=LEN(A1)

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Ted Metro" wrote:

Let me clarify -- formula looks in A1 to determine whether or not a number is
in the string that is in A1.

For example

A1 = asfkajsf4asdf --- TRUE
A1 = asdlfksdfa ---- FALSE

"Ted Metro" wrote:

Is there an easy formula that will look at a cell and determine whether a
number 0-9 is in that cell?

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
counting the number of instances of a string within another string Keith R Excel Worksheet Functions 3 March 5th 07 06:54 PM
How to determine the number in excel? Eric Excel Discussion (Misc queries) 1 March 13th 06 06:32 AM
How to determine the number of units? Eric Excel Discussion (Misc queries) 8 March 11th 06 05:30 PM
Splitting a text string into string and number mcambrose Excel Discussion (Misc queries) 4 February 21st 06 03:47 PM
Determine number of days Jack Excel Worksheet Functions 1 January 10th 06 01:34 PM


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