Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / August 2006

Tip: Looking for answers? Try searching our database.

Wildcard for finding the first numeric digit in a cell?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lovemuch - 17 Aug 2006 21:15 GMT
In word this is referred to "any digit" and the text you use to find it is
"^#". Is there something similar in Excel?

Thanks!

Cynthia
Bob Phillips - 17 Aug 2006 22:31 GMT
=IF(MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},D1&"0123456789"))>LEN(D1),0,MIN(SEARCH(
{0,1,2,3,4,5,6,7,8,9},D1&"0123456789")))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

Signature

HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

> In word this is referred to "any digit" and the text you use to find it is
> "^#". Is there something similar in Excel?
>
> Thanks!
>
> Cynthia
Harlan Grove - 17 Aug 2006 23:55 GMT
lovemuch wrote...
>In word this is referred to "any digit" and the text you use to find it is
>"^#". Is there something similar in Excel?

If you need to do this often, define a name like seq referring to

=ROW(INDEX($1:$65536,1,1):INDEX($1:$65536,1024,1))

then use the array formula

=MIN(IF(ISNUMBER(-MID(x,seq,1)),seq))

to find the first decimal numeral in x. It returns 0 if there are none.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.