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

¥X¶Ô¨Æ¥Ñ¼Ð¥Ü¤Î²Î­p

¥X¶Ô¨Æ¥Ñ¼Ð¥Ü¤Î²Î­p

½Ð°Ý¥ý¶i¡A¤p§Ì¦³¤@²Î­pªí¡A²Î­p¨C¤H¨C¤ë¥X¶Ôª¬ªp¡A¸Õ¹L¦h­Ó¤½¦¡¤´¦³§xÃø¡A¤×¨ä¤@¤H¦³¦h­Ó¨Æ¥Ñ®É¡A¸Ô¦pªþÀɤº»¡©ú¡A·Ð½Ð¥ý¶i«ü±Ð¡AÁÂÁ¡I °_¤î¤Ñ¼Æ­pºâ.zip (7.52 KB)

D4:
=LOOKUP("z",IF({1,0},"",LOOKUP(1,0/($C4=$AN$1:$AN$14)/(D$3>=$AO$1:$AO$14)/(D$3<=$AQ$1:$AQ$14),$AS:$AS)))

AI4:
=COUNTIF(D4:AH4,"><")

TOP

¦^´_ 2# ­ã´£³¡ªL


    ­ã¤j¦n¡A¤½¦¡¸g´ú¸ÕªGµM¦¨¥\¦n¥Î¡A¤×¨ä¬O D4 ªº¤½¦¡­n¬ã¨s¬Ý¬Ý¥H«áªºÀ³¥Î¡AÁÂÁ­ã¤j¤F¡I

TOP

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


°õ¦æµ²ªG:



Option Explicit
Sub TEST()
Dim Arr, Brr, Crr, Z, i&, j%, R
'¡ô«Å§iÅܼÆ
Set Z = CreateObject("Scripting.Dictionary")
'¡ô¥OZÅܼƬO ¦r¨å
R = Application.Match("¤p­p", [A:A], 0)
'¡ô¥ORÅܼƬO ªí®æ¨ç¼ÆMatch()ªº¦^¶Ç­È
If IsError(R) Then Exit Sub Else R = R - 1
'¡ô¦pªGRÅܼƬO¿ù»~­È? True´Nµ²§ôµ{¦¡°õ¦æ,§_«h¥OR-1
Brr = Range([AS5], [AN65536].End(3))
'¡ô¥OBrrÅܼƬO ²±¸Ë¸ê®Æ®æ­Èªº¤Gºû°}¦C
Crr = Range([A1], Cells(R, "AH"))
'¡ô¥OCrrÅܼƬO ²±¸Ë¾ã­Óµ²ªG®æ­Èªº¤Gºû°}¦C
ReDim Arr(4 To R, 4 To UBound(Crr, 2))
'¡ô¥OArrÅܼƬOµ²ªG¥Ø¼Ð®æ½d³òªºªÅ°}¦C
For i = 4 To R
'¡ô³]¶¶°j°é!i±q4¨ì RÅܼÆ
   If Trim(Crr(i, 3)) <> "" Then Z(Trim(Crr(i, 3))) = i
   '¡ô¦pªGi°j°é¦C/©m¦WÄæCrr°}¦C­È¤£¬OªÅªº?
   'True´N¥O©m¦W¬°key,item¬O¦C¸¹¯Ç¤JZ¦r¨å¤¤

Next
For i = 1 To UBound(Brr)
'¡ô³]¶¶°j°é!i±q1¨ì Brr°}¦CÁa¦V³Ì¤j¯Á¤Þ¸¹¦C(°j°é¶]¸ê®Æ°}¦C)
   If Z(Trim(Brr(i, 1)) & "") = 0 Then GoTo i02
   '¡ô¦pªG¸ê®Æ°}¦Ci°j°é¦C/©m¦WÄæ¬OªÅªº´N ¸õ¨ì¼Ð¥Üi02¦ì¸mÄ~Äò°õ¦æ
   For j = Val(Brr(i, 2)) + 3 To Val(Brr(i, 4)) + 3
      Arr(Z(Trim(Brr(i, 1)) & ""), j) = Brr(i, 6)
   Next
   '¡ô³]¶¶°j°é±N¥N½X¶ñ¤Jµ²ªG¥Ø¼Ð°}¦C¤¤
i02: Next
[D4].Resize(UBound(Arr) - 3, UBound(Arr, 2) - 3) = Arr
'¡ô¥Oµ²ªG¥Ø¼Ð®æ¶ñ¤JArr°}¦C­È
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

        ÀR«ä¦Û¦b : ¦a¤WºØ¤Fµæ¡A´N¤£©öªø¯ó¡F¤ß¤¤¦³µ½¡A´N¤£©ö¥Í´c¡C
ªð¦^¦Cªí ¤W¤@¥DÃD