Function HasNumber(w$) As Boolean
Dim p%
While Not HasNumber And p < Len(w)
p = p + 1
If Mid(w, p, 1) >= "0" And Mid(w, p, 1) <= "9" Then HasNumber = True
Wend
End Function
Here's another one...I would appreciate help on a formula that would return 'TRUE' if the string contains a number. Example below. Using Excel 2007.
One Part Order 123456 for shortage items shipping to US/TX-USA
Thanks,
tech2
And a good one it is!Here's another one...
=COUNT(FIND({0,1,2,3,4,5,6,7,8,9},A1))>0
Nice little formula.Here's another one...
=COUNT(FIND({0,1,2,3,4,5,6,7,8,9},A1))>0