¨ú³Ì¤pÈ«á®Ú¾Ú¤ë¥÷³sÄò¶ñº¡Àx¦s®æ
- ©«¤l
- 40
- ¥DÃD
- 11
- ºëµØ
- 0
- ¿n¤À
- 89
- ÂI¦W
- 0
- §@·~¨t²Î
- window 7
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taiwan
- µù¥U®É¶¡
- 2010-11-23
- ³Ì«áµn¿ý
- 2016-10-7
|
¨ú³Ì¤pÈ«á®Ú¾Ú¤ë¥÷³sÄò¶ñº¡Àx¦s®æ
Dear all,
§Úªº°ÝÃD¦pªþ¥ó.§Ú·Q¸Õ¸Õ¬Ý¥i¤£¥i¥H¥Î¤½¦¡¸Ñ¨MIÄ檺°ÝÃD.IÄ檺¼Æ¦r»Ý¥Ñ¤Uºô¤W«ö·Ó¤é´Á(¦C)¬Ý,¨úB¨ìGÄæ³Ì¤pªºÈ,¤]´N¬OHÄ檺¼Æ¦r(HÄ椣¤@©wn¦s¦b)
¦A®Ú¾Ú¸Ó¦C³Ì¤pȹïÀ³¨ìB¨ìGÄæ²Ä¤@¦Cªº¼Æ¦r(1,2,3,6,9,and 12)©¹¤W±NIÄæÀx¦s®æ¶ñº¡.¤§«á¥H¦¹Ãþ±À.
Á|¨Ò¨Ó»¡,I13ªº1.51%¨ú¦ÛB13-G13ªº³Ì¤pÈ(C13),¤]´N¬OH13,¦A®Ú¾ÚC13©¹¤W¹ïÀ³¨ìC1ªº¼Æ¦r(2),¦ÛI13©¹¤W¶ñ2®æ(I13©MI12).¨ä¥L³£¬O¥H¦¹Ãþ±À....
½u¦AªºIÄæ¨ä¹ê§Ú¤w¸g¤â°Ê½Õ¾ã¹L¤F,¦ý¬O¦]¬°¸ê®Æ¼Æ¶qÃe¤j,§Æ±æ¦U¦ì¤j¤j¥i¥HÀ°§Ú·QÓ²³æªº¿ìªk.·P¿E¤£ºÉ
Book1.rar (4.37 KB)
|
|
Jeffrey Chen
|
|
|
|
|
- ©«¤l
- 40
- ¥DÃD
- 11
- ºëµØ
- 0
- ¿n¤À
- 89
- ÂI¦W
- 0
- §@·~¨t²Î
- window 7
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taiwan
- µù¥U®É¶¡
- 2010-11-23
- ³Ì«áµn¿ý
- 2016-10-7
|
§Ú»Ýn¤@ÂI®É¶¡®ø¤Æ¤@¤U,«D±`ÁÂÁ±zªº®É¶¡©M¤À¨É. |
|
Jeffrey Chen
|
|
|
|
|
- ©«¤l
- 40
- ¥DÃD
- 11
- ºëµØ
- 0
- ¿n¤À
- 89
- ÂI¦W
- 0
- §@·~¨t²Î
- window 7
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taiwan
- µù¥U®É¶¡
- 2010-11-23
- ³Ì«áµn¿ý
- 2016-10-7
|
¥»©«³Ì«á¥Ñ Hsieh ©ó 2011-10-21 16:21 ½s¿è
ÁÂÁ±zªº¦^µª.©Ò¥H±zªº·N«ä¬O§Ú³oÓ°ÝÃD§Y¨Ï®M¥Î±z¤§«eªº»²§UÄæ¦ì¤]µLªk¥Î¤½¦¡¸Ñ¤F¶Ü?
¦ýVBA§Ú¹ê¦b§¹¥þ¤£À´,¥i§_³Â·Ð±z¸ÑÄÀ¤@¤U¤U¦C»yªk? ¦]¬°¤£À´VBA,©Ò¥H¤~·|·Q»¡¬Ý¥i¤£¥i¥H¥Î¤½¦¡¸Ñµª,§Æ±æ¥i¥H¤F¸Ñ¤½¦¡©Î»yªk¹Lµ{,ÁÂÁ±z¤F
Function MyMin(Rng As Range, k%)'Rng¬Oªí®æ½d³ò¡Ak¥Nªí¨ú²Ä´XÓ¼ÆÈ
Dim Ar()'«Å§i°ÊºA°}¦C
i = 2'±qªí®æ²Ä¤G¦C¬°ªì©l¦C
Do Until s >= Rng.Rows.Count'¶i¦æ°j°éª½¨ì°}¦C¤j¤p¤j©óµ¥©óªí®æªº¦C¼Æ
Set x = Rng.Rows(i)'³]ªí®æªºi¦C¬°ÅܼÆxªº½d³ò
n = Application.Min(x)'¨ú³Ì¤pÈ
j = Application.Index(Rng.Rows(1), , Application.Match(n, x, 0))'¨ú³Ì¤pȹïÀ³¨ìªí®æ²Ä¤@¦CªºÈ
For x = 1 To j '°µj¦¸ªº°j°é
ReDim Preserve Ar(s) '«·s¥¬¸m°}¦C
Ar(s) = n '±N³Ì¤pȽᤩ°}¦C
s = s + 1 '¹w³ÆÂX®i°}¦C
Next
i = i + j '¦C¼Æ¥[¤W«e¦C³Ì¤pȹïÀ³¦¸¼Æ¬°¤U¤@¦^°éªº¦C
Loop '¸õ²æ°j°é
MyMin = Ar(k - 1) '±N°}¦Cªº²Äk-1Ó¤¸¯À§@¬°µª®×(¦]¬°°}¦Cªº¯Á¤Þȱq¹s¶}©l¡A©Ò¥H¥²¶·´î1)
End Function |
|
Jeffrey Chen
|
|
|
|
|
- ©«¤l
- 40
- ¥DÃD
- 11
- ºëµØ
- 0
- ¿n¤À
- 89
- ÂI¦W
- 0
- §@·~¨t²Î
- window 7
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taiwan
- µù¥U®É¶¡
- 2010-11-23
- ³Ì«áµn¿ý
- 2016-10-7
|
·P¿EÁ¤jªº¦^ÂÐ,³oÓ¤½¦¡ÅÞ¿èÀ³¸Ó¬O¹ïªº,¦ý§Ú¤â°Ê¶ñ¤Wªºµ²ªG¦ü¥G»P¤½¦¡ªºµ²ªG¤£§¹¥þ¤@P,¥i¯à¬O§Ú»¡©ú©Î¤@¶}©lªºÀɮצ³»~,§Ú¤â°Ê©Ô¤F¤@Äæ¼Æ¦r(J),¥i§_½ÐÁ¤j¦A¬Ý¤@¤U?
¥t¥~»²§UÄæ¥~ªº³¡¤À§Ú¹ê¦b¬Ý¤£¤ÓÀ´,KÄ檺³¡¤ÀÀ³¸Ó¬O¥Î¨Ó»²§ULÄ檺,¦ý¬O¬°¦ón¦bK1©ñ¤W1,¨ä¾l¦U¦C¦A¥[¤W«e¤@¦Cªº¼ÆÈ? L Ä檺lookup value¬°¦ó¬O¥Îrow (a1)¶}©l?, result vector ¥Îrow(($1:$13) ªº·N¸q¤S¦bþ¸Ì©O?
¥H¤W¥i§_½Ð¤j¤jÀ°§Ú¸ÑÄÀ¤@¤U ,¦A¥t¥~ªþ¤W§tJÄ檺¼Æ¦r¥H¨Ñ°Ñ¦Ò,ÁÂÁÂ
³Ì¤pÈ.rar (4.69 KB)
|
|
Jeffrey Chen
|
|
|
|
|