- ©«¤l
- 605
- ¥DÃD
- 92
- ºëµØ
- 0
- ¿n¤À
- 648
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- macau
- µù¥U®É¶¡
- 2013-4-5
- ³Ì«áµn¿ý
- 2019-2-10
|
¦^´_ 17# gong
·PÁ gong ¤j¤j, ¤S¾Ç¨ì¤@ºØ¤èªk.
¤£¹L¥Î°ÊºA½d³òn¤ñ¥Î MAX §ó¦³®Ä²v.
¼Æ¾Ú¦bAÄæ
¥[»²§UÄæI, J
I2 =COUNTIF(OFFSET($A2,,,COUNTA(A:A)-1,),A2)
J1 = 0
J2 =MATCH(1,OFFSET($I$2,J1,,COUNTA(A:A)-1,),0)+J1
¤U©Ô
¤£«ÂмƾÚ
K2 = IFERROR(INDEX(A:A,J2+1),"")
¤U©Ô
====================================
¥Î¦r¨åªk¼g¤FVBA Function UNIQUEp
N2=IFERROR(UNIQUEp(A:A,ROW()),"")
¤U©Ô
¤£ª¾þ¦ì¤j¤j¥i§_¼g¤@¬qcode¨Ópºâ¤@¤U¦UºØ¤èªk©Ò»Ýªºpºâ®É¶¡- Function UNIQUEp(source As Range, num As Integer)
- Dim newArray, myArray As Variant
- rows_num = source.Rows.Count
- 'myArray = Range(Cells(source.Row, source.Column), Cells(source.Row + rows_num - 1, source.Column)).Value
- myArray = Sheets(source.Parent.Name).Range(source.Address).Value
-
- Set Dic = CreateObject("scripting.dictionary")
- For i = 1 To rows_num
- If myArray(i, 1) <> "" Then
- Dic((myArray(i, 1))) = ""
- End If
- Next
-
- arr = Dic.Keys
-
- UNIQUEp = arr(num - 1)
- End Function
½Æ»s¥N½X
¤£«½Æ²M³æ Sonny.rar (20.05 KB)
|
|