Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
shineboxnj
 
Posts: n/a
Default Finding a character type within a cell


Is there a find or search function that will return the position of the
first number character within a cell?

for example

A1= TEST PRODUCT M123

is there a formula i could write that will return "15" being that is
the posistion in the cell that the "1" is in? I dont want to look for
the "1" in particular, just the first number in the cell.

thanks!


--
shineboxnj
------------------------------------------------------------------------
shineboxnj's Profile: http://www.excelforum.com/member.php...o&userid=18106
View this thread: http://www.excelforum.com/showthread...hreadid=389217

  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

shineboxnj,

For your string in cell A1, the following array formula (entered using
Ctrl-Shift-Enter) will return 15:

=MIN(IF(ISERROR(1*(MID(A1,ROW(INDIRECT("A1:A"&LEN( A1))),1))),255,ROW(INDIRECT("A1:A"&LEN(A1)))))

All on one row.... watch any line breaks introduced by your newsreader.

HTH,
Bernie
MS Excel MVP

"shineboxnj" wrote
in message ...

Is there a find or search function that will return the position of the
first number character within a cell?

for example

A1= TEST PRODUCT M123

is there a formula i could write that will return "15" being that is
the posistion in the cell that the "1" is in? I dont want to look for
the "1" in particular, just the first number in the cell.

thanks!


--
shineboxnj
------------------------------------------------------------------------
shineboxnj's Profile:
http://www.excelforum.com/member.php...o&userid=18106
View this thread: http://www.excelforum.com/showthread...hreadid=389217



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 index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
bug - type 1-4531 in any cell - returned Jan-51 workaround is '1-. Paidi Excel Discussion (Misc queries) 6 March 24th 05 10:30 PM
number of character occurences in a cell Ron Excel Discussion (Misc queries) 1 March 21st 05 05:55 PM
Finding Cell References Zokess Excel Discussion (Misc queries) 2 February 4th 05 05:52 PM


All times are GMT +1. The time now is 10:22 PM.

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"