Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default search string for number value

I have several cells

text text 232
text more text 80908

I want a formula to find the location of the first occurance of a number.

something like find(#,a1)
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default search string for number value

Assuming every cell will contain a number:

=MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))

--
Biff
Microsoft Excel MVP


"samuel" wrote in message
...
I have several cells

text text 232
text more text 80908

I want a formula to find the location of the first occurance of a number.

something like find(#,a1)



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 320
Default search string for number value

Ctrl/Shift/Enter this:
=MATCH(FALSE,ISERROR(1*MID(A1,ROW(1:100),1)),0)
In your example this returns 11.

HTH
Bob Umlas
Excel MVP

"samuel" wrote:

I have several cells

text text 232
text more text 80908

I want a formula to find the location of the first occurance of a number.

something like find(#,a1)

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default search string for number value

On Tue, 13 May 2008 13:19:03 -0700, samuel
wrote:

I have several cells

text text 232
text more text 80908

I want a formula to find the location of the first occurance of a number.

something like find(#,a1)



=MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789") )

And, if you want to return that number:

=LOOKUP(9.9E+307,--MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"
0123456789")),ROW(INDIRECT("1:"&LEN(A1)))))
--ron
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
Change 3 letter text string to a number string Pete Excel Discussion (Misc queries) 3 December 31st 07 07:47 PM
How to search a string from the right ? EuroMaverick Setting up and Configuration of Excel 2 March 28th 07 09:20 PM
counting the number of instances of a string within another string Keith R Excel Worksheet Functions 3 March 5th 07 06:54 PM
to search for a string and affect data if it finds the string? Shwaman Excel Worksheet Functions 1 January 11th 06 12:56 AM
Q: search in string JIM.H. Excel Discussion (Misc queries) 5 January 5th 05 10:24 PM


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