作者:乔山办公网日期:
返回目录:excel表格制作
见截图
=SUMIF(B3:B13,"掘政园",C2:C13)
使用绝对引用;
例:取固定单元格A1中的数?
方法:在B1中输入=$A$1,然后下拉,如图:
亲,不用想了,VBA编程吧。请提供数据区域的截图,截图务必带上行号和列标。
在表格里,按ALT+F11,插入-模块,复制下列语句
Function SplitNumEng(str As String, sty As Byte)
Dim StrA As String
Dim StrB As String
Dim StrC As String
Dim i As Integer
Dim SigS As String
For i = 1 To Len(str)
SigS = Mid(str, i, 1)
If SigS Like "[a-zA-Z]" Then
StrA = StrA & SigS
ElseIf SigS Like "#" Then
StrB = StrB & SigS
Else
StrC = StrC & SigS
End If
Next i
Select Case sty
Case 1
SplitNumEng = StrA
Case 2
SplitNumEng = StrB
Case Else
SplitNumEng = StrC
End Select
End Function
比如你的数据在A1
B2=SplitNumEng(A1,1) 表示提7a686964616fe78988e69d83339取字母
B1=SplitNumEng(A1,2) 表示提取数字
B3=SplitNumEng(A1,3) 表示提取中文