ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

­pºâ¦¸¼Æ

­pºâ¦¸¼Æ



½Ð°Ý·s«È¤á¼Æªº¤½¦¡¦p¦ó¥N¤J©O¡H¥H·~°È¤H­û°Ï¤À¡A¬Ý¬O§_¬°·s«È¤á¡A¤£­«½Æ­pºâ«È¤á½s¸¹¡A³Â·Ð¤j®aÀ°À°¦£
¥X²{µ²ªG¡G
s001¡G0
s002¡G1
s003¡G3

°õ¦æ¦p¤U¸Õ¸Õ

Sub ·~¥N«È¤á½s¸¹·s«È¤á()
Application.Run "¤£­«ÂÐ"
Application.Run "·~¥N«È¤á½s¸¹·s«È¤á1"
Application.Run "·~¥N«È¤á½s¸¹·s«È¤á2"
Application.Run "·~¥N«È¤á½s¸¹·s«È¤á3"
End Sub
Sub ¤£­«ÂÐ()
Sheet1.[P265536].ClearContents
Columns("B:B").AdvancedFilter xlFilterCopy, CopyToRange:=[P1], Unique:=True
End Sub
Sub ·~¥N«È¤á½s¸¹·s«È¤á1()
Sheet1.[X2:Y65536].ClearContents
X = Sheet1.[B65536].End(xlUp).Row
For M = 2 To X
Sheet1.Cells(M, 24) = Sheet1.Cells(M, 2) & Sheet1.Cells(M, 3) & Sheet1.Cells(M, 12)
Next
Columns("X:X").AdvancedFilter xlFilterCopy, CopyToRange:=[Y1], Unique:=True
End Sub

Sub ·~¥N«È¤á½s¸¹·s«È¤á2()
Sheet1.[Z2:Z65536].ClearContents
X = Sheet1.[Y65536].End(xlUp).Row
For M = 2 To X
If Sheet1.Cells(M, 25) Like "*·s«È¤á*" Then
Sheet1.Cells(M, 26) = Mid(Sheet1.Cells(M, 25), 1, 4)
End If
Next
End Sub

Sub ·~¥N«È¤á½s¸¹·s«È¤á3()
Sheet1.[Q265536].ClearContents
X = Sheet1.[P65536].End(xlUp).Row
For M = 2 To X
Sheet1.Cells(M, 17) = Application.CountIf(Sheet1.Range("Z:Z"), Sheet1.Cells(M, 16))
Next
End Sub
ù

TOP

=SUMPRODUCT((MATCH($C$2:$C$20,$C$2:$C$20,)=ROW(C$2:C$20)-1)*(B$2:B$20=P2)*(L$2:L$20="·s«È¤á"))

TOP

¥»©«³Ì«á¥Ñ ­ã´£³¡ªL ©ó 2015-12-10 13:14 ½s¿è

¢Ó¤j¡A
¢ÑÄæ­Y¦³ªÅ¥Õ¡AMATCH·|¦³#N/A¡A
¬Û¹ïµLªk¨Ï¥ÎSUMPRODUCT¡ã¡ã¥Î1/COUNTIF(~~)¤]¦P²z¡ã¡ã
¥i¥ÎCOUNT­p¼Æ¡A¦ý¸ê®Æ¤@¦h¡A«Ü¥d¡ã¡ã

¨S¦³ÀɮסA¦ù¤£¤F¤â¡ã¡ã
¸Õ¸Õ¡D°}¦C¤½¦¡¡G
=COUNT(0/IF(B$2:B$120&L$2:L$120=P2&"·s«È¤á",MATCH(C$2:C$120,C$2:C$120,)=ROW(C$2:C$120)-1))

B$2:B$120&L$2:L$120=P2&"·s«È¤á"¡@¡@±ø¥ó¦¨¥ß¡A¦A¥hMATCH°}¦C¡A®Ä²v¥i¯à¦n¨Ç¡ã¡ã
¡@

TOP

        ÀR«ä¦Û¦b : ¶¢¤HµL¼Ö½ì¡A¦£¤HµL¬O«D¡C
ªð¦^¦Cªí ¤W¤@¥DÃD