- ©«¤l
- 2839
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2895
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2025-2-15
|
ÁÙ¬O¦³ÂI¬Ý¤£À´¡A¤j¬ù¤]¼g¤@Ó¡G
- Function GetLoseVal(xRng As Range, xInd%)
- Dim Arr, xMin, i&, j&, k%, N%, xD
- xMin = "": GetLoseVal = "": Arr = xRng.Value
- Set xD = CreateObject("Scripting.Dictionary")
- For i = 1 To UBound(Arr)
- For j = i + 1 To UBound(Arr)
- If Arr(j, 1) >= Arr(i, 1) Then Exit For
- If Arr(j, 1) < xMin Then k = j: xMin = Arr(j, 1)
- Next
- If xMin <> "" Then N = N + 1: xD(N) = xMin - Arr(i, 1): i = k: xMin = ""
- Next
- If xInd <= N Then GetLoseVal = Application.Small(xD.items, xInd)
- End Function
½Æ»s¥N½X
¢Ò¢¶¤½¦¡¡G=GetLoseVal(D$20:D$34,ROW(A1))¡@¥k©Ô¤U©Ô
¡@
¡@ |
|