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

½Ð°Ý¦³¼Æµ§¤£¦P­Èªº¦Ò¸Õ¤À¼Æ¡I¦p¦ó³]©w¨ç¼Æ§ä¥X³Ì±µªñ50¤Àªº¤H¦W©O¡I

½Ð°Ý¦³¼Æµ§¤£¦P­Èªº¦Ò¸Õ¤À¼Æ¡I¦p¦ó³]©w¨ç¼Æ§ä¥X³Ì±µªñ50¤Àªº¤H¦W©O¡I

Book1.rar (1.49 KB) ½Ð°Ý¦³¼Æµ§¤£¦P­Èªº¦Ò¸Õ¤À¼Æ¡I¦p¦ó³]©w¨ç¼Æ§ä¥X³Ì±µªñ50¤Àªº¤H¦W©O¡I½Ð¦U¦ì¤j¤jÀ°¦£¡IÁÂÁÂ

ÁÂÁ½׾Â,ÁÂÁ¦U¦ì«e½ú
«á¾ÇÂǦ¹©«½m²ßVBA°}¦C»P¦r¨å,¾Ç²ß¤è®×¦p¤U,½Ð¦U¦ì«e½ú«ü±Ð

°õ¦æµ²ªG:



Option Explicit
Sub TEST()
Dim Brr, Y, i&, b#
'¡ô«Å§iÅܼÆ
Set Y = CreateObject("Scripting.Dictionary")
'¡ô¥OYÅܼƬO ¦r¨å
Brr = Range([B1], Cells(Rows.Count, 1).End(3))
'¡ô¥OBrrÅܼƬO ¤Gºû°}¦C,¥HÀx¦s®æ­È±a¤J
For i = 1 To UBound(Brr)
'¡ô³]¶¶°j°é!
   b = Abs(50 - Brr(i, 2))
   '¡ô¥ObÅܼƬO 50´î Brr²Ä2Äæ°}¦C­È«á,Abs()Âର¥¿­È
   Y(b) = Trim(Y(b) & " " & Brr(i, 1) & "(" & Brr(i, 2) & ")")
   '¡ô¥O¥HbÅܼƷíkey,item¬O¦Û¨­³s±µBrr°}¦C²Ä1.2Äæ°}¦C­È
Next
MsgBox Y(Application.Min(Y.KEYS))
'¡ô¥O¸õ¥X´£¥Üµ¡ Åã¥Ü: ¥HY¦r¨å¸Ì³Ì¤pªºkey­È¦^¶Çªºitem­È
Set Y = Nothing: Erase Brr
'¡ô¥OÄÀ©ñÅܼÆ
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¥»©«³Ì«á¥Ñ oobird ©ó 2010-10-2 07:38 ½s¿è

¦ý¡K¥¿¦p¼Ó¤W¦W¦r«ÜÃø°áªº¤¯¥S©Ò¨¥¡A­n¥Î°}¦C¿é¤J¤~¯à¦¨¥\§r¡I
¦pªG¥Î°}¦C¤½¦¡¡A³o¸Ìlookup´N¥¢¥hÀu¶Õ¤F¡C

TOP

ABS¤´¥i¹F¨ì¬Û¦P®ÄªG°Ú!
=LOOKUP(2,1/((MIN(ABS(50-B1:B11)))=ABS(50-B1:B11)),A1:A11)
1/((MIN(ABS(50-B1:B11)))=ABS(50-B1:B11))
¶Ç¦^¬O1/FALSE©Î1/TRUEªº°}¦C
´N¶Ç¦^#DIV/0!©Î1ªº°}¦C
¥u­n²Ä1­Ó°Ñ¼Æ¤j©ó1´N¯à§ä¨ì³Ì«á¤@­Ó1ªº¹ïÀ³­È
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 16# oobird


ABS¤]¦æ¡A¥u¶·¿é¤J¬°°}¦C¤½¦¡..

TOP

ÁÂÁ¡A¥ÎABSÓý¤£¯à±o¨ì¬Û¦P®ÄªG¡A­ì¦]¦w¦b¡H

TOP

¥¿¥¿±o¥¿
­t­t±o¥¿
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦­¥ý¹ïlookupªº»{ÃÑ¡A¥u¯à§@¨Ç³æ¯Âªº¹Bºâ¡A¥\¯à¬Æ¦Ü¤ñ¤£¤Wvlookup¡C
¤j¬ù5¡B6¦~«e¡A·s¥[©YªºBosco_yip±È°_¤F¤@°}lookupªº±´°Q±Û­·¡A¨Ïlookup¥Î¦b§ó°ª¶¥ªº¥\¯à¤W¡C
¥i±¤·í®É¾K¤ß©óauto cad,¹ïexcel§N¤F¤U¨Ó¡AµL¤ßÃöª`¡A²{¦b¤j®a·|ªº§Ú³£¤£·|¤F¡I
¦¹¨Ò¬°¦ó­n^2¡H¨S¦³^2´N¤£¯à±o¨ì¥¿½Tµª®×¡A¦³ªB¤Í¼·¤¾¬°§Ú»¡©ú¤@¤U¶Ü¡H

TOP

¤£¦P¤H¦³¤£¦Pªº¤èªk¡I¦ý³£¬O¦n¤èªk¡I·PÁ¦U¦ì¤j¤j¸Ñ¨M¤p§Ìªº°ÝÃD¡IÁÂÁÂ

TOP

¦^´_ 10# Hsieh


·PÁª©¥Dªº¸Ô²Ó¤ÀÄæ¹Ï¸Ñ
¦b¸Ñ»¡»P¹Ï¸Ñ¨â¬Û¹ï·Ó¤U
²×©ó§Ë©ú¥Õ¤F
¥H«á¤]¥i¥H±Ä¥Î³oºØ¤è¦¡¥h²z¸Ñ¤½¦¡
·P®¦..

TOP

        ÀR«ä¦Û¦b : ¯àµ½¥Î®É¶¡ªº¤H¡A¥²¯à´x´¤¦Û¤v§V¤Oªº¤è¦V¡C
ªð¦^¦Cªí ¤W¤@¥DÃD