- 168
- 0
- 约1.01千字
- 约 4页
- 2020-09-23 发布于辽宁
- 举报
excel中一个单元格中有文字 字母字符和数字如何能把数字单独提取出来?
2011-04-13 11:25 匿名?|?分类:办公软件?|?浏览1375次 如A1中A本月电费收入(美兰供电所)(对帐标志:2010.01.07) 想在B中表示最好能教一个方法十分感谢
我有更好的答案
按默认排序|按时间排序
2条回答
检举 | 2011-04-13 11:32 Mrpine| 十五级
在EXEC理,按ALT+F11插入-模块,复制下列语句
Fun ction SplitNumE ng(str As Stri ng, sty As Byte)
Dim StrA As Stri ng
Dim StrB As Stri ng
Dim StrC As Stri ng
Dim i As In teger
Dim SigS As Stri ng
For i = 1 To Len( str)
SigS = Mid(str, i, 1)
If SigS Like [a-zA-Z] The n
StrA = StrA SigS
Elself SigS Like # The n
StrB = StrB SigS
Else
StrC = StrC SigS
End If
Next i
Select Case sty
Case 1
SplitNumE ng = StrA
Case 2
原创力文档

文档评论(0)