我有一个列,我想找到一个包含数字的第一行(从顶部开始),数字可以是-0.0001或10或0.123。
知道怎么写吗?
由于
答案 0 :(得分:0)
也许:
<强> = MATCH(TRUE,INDEX(ISNUMBER(A1:A100),0),0)强>
在VBA中,如果只有第一个数字以上的空白,那么:
Sub luxation()
MsgBox Range("A1").End(xlDown).Row
End Sub
在VBA中,如果第一个数字上方有文字,则:
Sub NumberSearch()
For i = 1 To Rows.Count
If IsNumeric(Cells(i, "A").Value) And Cells(i, "A").Value <> "" Then
MsgBox i
Exit Sub
End If
Next i
End Sub