- ©«¤l
- 976
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 1018
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-4-19
- ³Ì«áµn¿ý
- 2024-10-30
|
¦^´_ 24# BV7BW
½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ
Sub tt3()
Dim Arr
With Sheets("¤u§@ªí4")
With .Range(.[k1], .[a65536].End(3))
Arr = .Value '¸ê®Æ¸Ë¤JArr
For i = 2 To UBound(Arr)
If InStr(Arr(i, 2), "S") Then '½s¸¹¦³ S
Arr(i, 11) = Int(Mid(Arr(i, 2), 4, 3)) & "s" '½s¸¹S¡A¨ú-¥H«á3½X¾ã¼Æ+S¡A¼ÆȸˤJArr(i,11)
Else
Arr(i, 11) = Int(Right(Arr(i, 2), 3)) '°£¤F½s¸¹S¥H¥~¡A¨ú³Ì«á3½Xªº¾ã¼Æ¡A¼ÆȸˤJArr(i,11)
End If
Next
.Value = Arr 'ArrȶK¦^excel
.Sort Key1:=.Item(11), Order1:=1, Header:=1 '¥HKÄæ±Æ§Ç
End With
.Range("k1:k" & UBound(Arr)) = "" '²M°£KÄæ¼ÆÈ
End With
End Sub |
|