Board logo

¼ÐÃD: ¸óÄæ¹ï¤ñ [¥´¦L¥»­¶]

§@ªÌ: 198188    ®É¶¡: 2024-3-2 12:34     ¼ÐÃD: ¸óÄæ¹ï¤ñ

[attach]37534[/attach]
¦³¤T­Óªí®æ¡A¦bªí®æ¡§1¡¨°õ¦æ¡A
ªí®æ¡§1¡¨ ÄæB ©MÄæG ¨â¼Ë¤À§O¦bªí®æ¡§KP" & "KH" §ä´M¡A¦pªG§ä¨ì¬Û¦Pªº¼Æ¾Ú¡C

Á|¨Ò¡G
96089 & 5580 ²Õ¦X¦bKP ªíùاä¨ì
¡§1¡¨ªíªºÄæM (Project) ¶Ç¦^"KP"ªíªº "$A$1"
¡§1¡¨ªíªºÄæO (KP) ¶Ç¦^"KP"ªíªº "$C$1"

96183 & 4780 ²Õ¦X¦b KP & KH ªíùس£§ä¨ì
"1¡¨ªíªºÄæM (Project) ¶Ç¦^"KP"ªíªº "$H$1" & "KH" ªíªº¡§$H$1", ¨âªÌ³£¬O"BH" ¬Û¦P¡A©Ò¥HÅã¥Ü"BH"
"1¡¨ªíªºÄæN (KH) ¶Ç¦^"KH"ªíªº "$J$1"
"1¡¨ªíªºÄæO (KP) ¶Ç¦^"KP"ªíªº "$J$1"

94851 & 5370 ²Õ¦X¦b KH ªíùس£§ä¨ì
"1¡¨ªíªºÄæM (Project) ¶Ç¦^"KH"ªíªº "$A$1" &  "$H$1", ¨âªÌ¤£ ¬Û¦P¡A©Ò¥HÅã¥Ü"BF/BH"
"1¡¨ªíªºÄæN (KH) ¶Ç¦^"KH"ªíªº "$C$1" &  "$J$1", ¨âªÌ³£¬O¡§¼Qªo¡¨¬Û¦P¡A©Ò¥HÅã¥Ü¡§¼Qªo¡¨

96093 & 5260 ²Õ¦X¦b KH & KPªíùس£§ä¨ì
"1¡¨ªíªºÄæM (Project) ¶Ç¦^"KP"ªíªº"$A$1" & "$H$1" & "KH" ªíªº"$A$1" & "$H$1", ¥|³£¬O"BF/ BH/ BF/ BH" ¬Û¦P¡A¦]爲­«½Æ¡A©Ò¥HÅã¥Ü"BF/ BH"
"1¡¨ªíªºÄæN (KH) ¶Ç¦^"KH"ªíªº "$C$1" &  "$J$1", ¨âªÌ³£¬O¡§¼Qªo¡¨¬Û¦P¡A©Ò¥HÅã¥Ü¡§¼Qªo¡¨
"1¡¨ªíªºÄæO (KP) ¶Ç¦^"KP"ªíªº  "$C$1" &  "$J$1", ¨âªÌ³£¬O¡§¼Qªo¡¨¬Û¦P¡A©Ò¥HÅã¥Ü¡§¼Qªo¡¨
§@ªÌ: 198188    ®É¶¡: 2024-3-4 11:35

[attach]37543[/attach]¦^´_ 1# 198188


    ¹Ï¤ù¬O°õ¦æ«e¤Î°õ¦æ¦Z®ÄªG¡A¥H¤Î¨â­Ó¸ê®Æ®w KP & KH¡C
§@ªÌ: Andy2483    ®É¶¡: 2024-3-4 11:48

¦^´_ 2# 198188


    ÁÂÁ«e½úµoªí¦¹¥DÃD»P½d¨Ò
½Ð°Ý[M5]¸Ìªº BF/BH/BJ  ,³o BJ±q¦ó¨Ó?
§@ªÌ: 198188    ®É¶¡: 2024-3-4 12:06

¦^´_ 3# Andy2483


    KH ¸ê®Æªíªº H1 Àx¦s®æ
§@ªÌ: Andy2483    ®É¶¡: 2024-3-4 15:24

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2024-3-4 16:03 ½s¿è

¦^´_ 1# 198188


Option Explicit
Sub TEST()
Dim Arr, Brr, Crr, V$, Z, i&, T$, TT$, A, xA As Range, N%
Set Z = CreateObject("Scripting.Dictionary")
Set xA = Range([1!G1], [1!A65536].End(3))
xA.Offset(1, 12).ClearContents:  Brr = xA
For i = 2 To UBound(Brr)
   T = Format(Trim(Brr(i, 2)), "0000000"): V = Format(Val(Brr(i, 7)), "0000000"): TT = T & "/" & V
   Z(TT) = i
Next
Arr = [1!M1].Resize(UBound(Brr), 3)
A = Array(Range([KH!C1], [KH!A65536].End(3)), Range([KH!J1], [KH!H65536].End(3)), Range([KP!C1], [KP!A65536].End(3)), Range([KP!K1], [KP!I65536].End(3)))
For Each Crr In A
   Crr = Crr: N = N + 1
   For i = 3 To UBound(Crr)
      T = Format(Trim(Crr(i, 1)), "0000000"): V = Format(Val(Crr(i, 2)), "0000000"): TT = T & "/" & V
      If Z.Exists(TT) Then
         If Arr(Z(TT), 1) = "" Then
            Arr(Z(TT), 1) = Crr(1, 1)
            ElseIf InStr("/" & Arr(Z(TT), 1) & "/", "/" & Crr(1, 1) & "/") = 0 Then
            Arr(Z(TT), 1) = Arr(Z(TT), 1) & "/" & Crr(1, 1)
         End If
         Arr(Z(TT), N \ 3 + 2) = Crr(1, 3)
      End If
   Next
Next
[1!M1].Resize(UBound(Brr), 3) = Arr
End Sub
§@ªÌ: 198188    ®É¶¡: 2024-3-4 16:23

¦^´_ 5# Andy2483


[attach]37545[/attach]
    ¹B¦æVBA¦Z¡AKP内¬O H- J Äæ¨S¦³Åª¨ú¥X¨Ó¡A¥H¦Ü¶À¦â³¡¤À¤£¥¿½T¡C
KP & KH ¨â­Óªí®æùØ¡A³£¦³¤À§O¦³¨â¥÷¸ê®Æ¡AÄæ A - C   & Äæ H - J
§@ªÌ: Andy2483    ®É¶¡: 2024-3-4 16:40

¦^´_ 6# 198188


    «e½ú¦Û¤v´ú¸Õªº½d¨Ò»P1#ªº½d¨Ò¤£¦P,«á¾Ç²q¿ù»Ý¨D,½Ð¤W¶Ç¯u¥¿ªº»Ý¨D½d¨Ò
§@ªÌ: 198188    ®É¶¡: 2024-3-4 18:18

¥»©«³Ì«á¥Ñ 198188 ©ó 2024-3-4 18:20 ½s¿è

[attach]37547[/attach]¦^´_ 7# Andy2483



³W«h¬O¤@¼Ëªº¡A¤£¹L²Ä¤@½d¨Ò¥i¯à¬Ý¨ì®ÄªG¨S¦³¨º麽²M·¡¡A©Ò¥H¤W¸ü²Ä¤G½d¨Ò¡A½Ð¥H³o­Ó¦^´_ªº¹Ï¤ù爲¨Ò
§@ªÌ: Andy2483    ®É¶¡: 2024-3-4 18:25

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2024-3-4 19:12 ½s¿è

¦^´_ 8# 198188


    ÁÂÁ «e½ú«ü¾É
­ì½d¨ÒKP¬OIJKÄæ¡A½Ð«e½ú¸Õ¤F¸Ñ¸Õ§ï¬Ý¬Ý
Range([KP!K1], [KP!I65536].End(3))
§ï¬°
Range([KP!J1], [KP!H65536].End(3))
§@ªÌ: Andy2483    ®É¶¡: 2024-3-5 08:34

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2024-3-5 08:41 ½s¿è

ÁÂÁ½׾Â,ÁÂÁ¦U¦ì«e½ú
«á¾ÇÂǦ¹©«½Æ²ß¤F¤@¤U,¤è®×µù¸Ñ¦p¤U,½Ð¦U¦ì«e½ú«ü±Ð

Option Explicit
Sub TEST()
Dim Arr, Brr, Crr, V$, Z, i&, T$, TT$, A, xA As Range, N%
'¡ô«Å§iÅܼÆ:&¬Oªø¾ã¼Æ,%¬Oµu¾ã¼Æ,$¬O¦r¦êÅܼÆ
Set Z = CreateObject("Scripting.Dictionary")
'¡ô¥OZÅܼƬO ¦r¨å
Set xA = Range([1!G1], [1!A65536].End(3))
'¡ô¥OxAÅܼƬO°Ï°ìÀx¦s®æ(¤u§@ªí "1"¸ÌªºG1Àx¦s®æ¨ì AÄæ³Ì«á¦³¤º®eÀx¦s®æ)
xA.Offset(1, 12).ClearContents:  Brr = xA
'¡ô¥OxAÀx¦s®æ°¾²¾¤U1¦C¥k12Ä檺°Ï°ìÀx¦s®æ¤º®e²M°£,¥OBrrÅܼƬO¥HxAÀx¦s®æ­È±a¤Jªº¤Gºû°}¦C
For i = 2 To UBound(Brr)
'¡ô³]¶¶°j°é!¥Oi±q2 ¨ìBrr°}¦CÁa¦V³Ì¤j¯Á¤Þ¦C¸¹
   T = Format(Trim(Brr(i, 2)), "0000000"): V = Format(Val(Brr(i, 7)), "0000000"): TT = T & "/" & V
   '¡ô¥OTÅܼƬOi°j°é¦C2ÄæBrr°}¦C­È¥h°£ÀY§ÀªÅ¥Õ¦r¤¸«á,Âà¤Æ¬°7½X¼Æ­Èªº¦r¦ê,¦pªG¤£¨¬7½X«h¥ª°¼¥H0 ¸É¨¬
   '¡ô¥OVÅܼƬOi°j°é¦C7ÄæBrr°}¦C­ÈÂà¤Æ¬°¼Æ­È«á,¦AÂà¤Æ¬°7½X¼Æ­Èªº¦r¦ê,¦pªG¤£¨¬7½X«h¥ª°¼¥H0 ¸É¨¬
   '¡ô¥OTTÅܼƥH"/"²Å¸¹³s±µT»PVÅܼƩҲզ¨ªº·s¦r¦ê

   Z(TT) = i
   '¡ô¥O¥HTTÅܼƬ°key,item¬OiÅܼÆ(¦C¸¹)¯Ç¤JZ¦r¨å¤¤
Next
Arr = [1!M1].Resize(UBound(Brr), 3)
'¡ô¥OArrÅܼƬO ¤u§@ªí "1"ªºM1Àx¦s®æÂX®i¦V¤U/¦V¥k°Ï°ìÀx¦s®æ­È±a¤Jªº¤Gºû°}¦C
A = Array(Range([KH!C1], [KH!A65536].End(3)), Range([KH!J1], [KH!H65536].End(3)), Range([KP!C1], [KP!A65536].End(3)), Range([KP!K1], [KP!I65536].End(3)))
'¡ô¥OAÅܼƬO 4­Ó°Ï°ìÀx¦s®æªº¤@ºû°}¦C
For Each Crr In A
'¡ô³]³v¶µ°j°é!¥OCrrÅܼƬO A°}¦C¸Ìªº°}¦C­È(°Ï°ìÀx¦s®æ)
   Crr = Crr: N = N + 1
   '¡ô¥OCrrÅܼÆÂàÅܬ° ¥HCrr°Ï°ìÀx¦s®æ­È±a¤Jªº¤Gºû°}¦C (PS:CrrÅܼƫŧi¬O³q¥Î«¬ÅܼÆ,©Ò¥H¥i¥H¥ÑÀx¦s®æÅܬ°¤Gºû°}¦C)
   For i = 3 To UBound(Crr)
   '¡ô³]¶¶°j°é!¥Oi±q3¨ìCrr°}¦CÁa¦V³Ì¤j¯Á¤Þ¦C¸¹
      T = Format(Trim(Crr(i, 1)), "0000000"): V = Format(Val(Crr(i, 2)), "0000000"): TT = T & "/" & V
      '¡ô¦¹¼Ðªº¬°Crr°}¦C,T.V.TTÅܼƷN¸q¦P¤W
      If Z.Exists(TT) Then
      '¡ô¦pªGZ¦r¨å¸Ì¦³ TTÅܼƪºkey?
         If Arr(Z(TT), 1) = "" Then
         '¡ô¤S¦pªGArr°}¦C¸Ì(Z¦r¨å©Ò°O¾Ðªº¦C¸¹1Äæ)°}¦C­È¬OªÅ¦r¤¸?
            Arr(Z(TT), 1) = Crr(1, 1)
            '¡ô¥O¸Ó°}¦C­È¥H 1¦C1ÄæCrr°}¦C­È¼g¤J
            ElseIf InStr("/" & Arr(Z(TT), 1) & "/", "/" & Crr(1, 1) & "/") = 0 Then
            '¡ô§_«h¦pªG¸Ó°}¦C­È¨S¦³ 1¦C1ÄæCrr°}¦C­È
            Arr(Z(TT), 1) = Arr(Z(TT), 1) & "/" & Crr(1, 1)
            '¡ô¥O¸Ó°}¦C­È¬O¥H ¦Û¨­¦r¦ê³s±µ 1¦C1ÄæCrr°}¦C­È©Ò²Õ¦¨ªº·s¦r¦ê
         End If
         Arr(Z(TT), N \ 3 + 2) = Crr(1, 3)
         '¡ô¥O¦bArr°}¦C¸Ì¼g¤J 1¦C3ÄæCrr°}¦C­È
      End If
   Next
Next
[1!M1].Resize(UBound(Brr), 3) = Arr
'¡ô¥O¤u§@ªí "1"ªºM1Àx¦s®æÂX®iªº½d³ò¸Ì¼g¤JArr°}¦C­È
End Sub
§@ªÌ: 198188    ®É¶¡: 2024-3-5 08:45

¦^´_ 10# Andy2483


xA.Offset(1, 12).ClearContents:  Brr = xA
'¡ô¥OxAÀx¦s®æ°¾²¾¤U1¦C¥k12Ä檺°Ï°ìÀx¦s®æ¤º®e²M°£,¥OBrrÅܼƬO¥HxAÀx¦s®æ­È±a¤Jªº¤Gºû°}¦C

³o¥y²M°£内®e¡A¥¦¬O±q²Ä13Äæ(ÄæM) ¨ì ²Ä19Äæ (ÄæS) ªº内®e²M°£¡A§Ú»Ý­nªº¥u¬O ²Ä13ÄæÄæM - ²Ä15ÄæÄæO, §Ú»Ý­n«ç¼Ë­×¥¿¡A¤~¯àÅý¥L¤£§âÄæP - ÄæSªº¸ê®Æ²M°£¡H
§@ªÌ: Andy2483    ®É¶¡: 2024-3-5 08:52

¦^´_ 11# 198188

Intersect([1!M:O], xA.Offset(1, 12)).ClearContents
'¡ô¥OxAÀx¦s®æ°¾²¾¤U1¦C¥k12Äæ½d³ò»P M:OÄæ¥æ¶°ªº°Ï°ìÀx¦s®æ¤º®e²M°£
§@ªÌ: 198188    ®É¶¡: 2024-3-5 08:58

¦^´_ 12# Andy2483


    ¥i¥H¤F¡AÁÂÁ¡I

Set xA = Range([1!G1], [1!A65536].End(3))
Intersect([1!M:O], xA.Offset(1, 12)).ClearContents: Brr = xA
Arr = [1!M1].Resize(UBound(Brr), 3)
[1!M1].Resize(UBound(Brr), 3) = Arr
¥t¥~¦pªG§Ú°õ¦æªº¤u§@ªí¤£©T©w¦WºÙ¡A«ç¼Ë­×§ï¬°¥Îactivesheet?
§@ªÌ: shuo1125    ®É¶¡: 2024-3-5 09:04

¦^´_ 12# Andy2483
·PÁÂAndy¤j¼ö±¡¥B±M·~~
¤]´£¨Ñ­ÓxA.Offset(1, 12).Resize(, 3).ClearContents
§@ªÌ: Andy2483    ®É¶¡: 2024-3-5 09:09

¦^´_ 13# 198188

1.Set xA = Range([1!G1], [1!A65536].End(3))  §ï¬°
Set xA = Range(ActiveSheet.[G1], ActiveSheet.[A65536].End(3))

2.¥N½X¸Ì­±¦³[1!   ªº³£­n§ï
§@ªÌ: 198188    ®É¶¡: 2024-3-5 09:13

¦^´_ 15# Andy2483


    ©ú¥Õ¡AÁÂÁÂ
§@ªÌ: Andy2483    ®É¶¡: 2024-3-5 09:15

¦^´_ 14# shuo1125

ÁÂÁ«ü±Ð,³o¤èªk¨S¥Î¹L,¤S¾Ç¨ì¤@©Û,¤§«e³£¥u·|¥Îintersect
§@ªÌ: 198188    ®É¶¡: 2024-3-5 11:35

¦^´_ 17# Andy2483

­è­è§Ú´ú¸Õ¤F´X¦¸¡A¤£ª¾¹D¬O«ç麽¦^¨Æ¡A¦³ªº¼Æ¾ÚŪ¤£¥X¨Ó¡C¥i§_À°§Ú¬Ý¬Ýªþ¥ó¡A¬O§_®æ¦¡¸òVBA ¦³½Ä¬ð¡H
§@ªÌ: Andy2483    ®É¶¡: 2024-3-5 12:28

¦^´_ 18# 198188

Option Explicit
Sub TEST()
Dim Arr, Brr, Crr, V$, Z, i&, T$, TT$, A, xA As Range, N%
Set Z = CreateObject("Scripting.Dictionary")
Set xA = Range(ActiveSheet.[G1], ActiveSheet.[A65536].End(3))
xA.Offset(1, 12).Resize(, 3).ClearContents:  Brr = xA
For i = 2 To UBound(Brr)
   T = Format(Trim(Brr(i, 2)), "0000000"): V = Format(Val(Brr(i, 7)), "0000000"): TT = T & "/" & V
   Z(TT) = i
Next
Arr = ActiveSheet.[M1].Resize(UBound(Brr), 3)
A = Array(Range([KH!C1], [KH!A65536].End(3)), Range([KH!J1], [KH!H65536].End(3)), Range([KP!C1], [KP!A65536].End(3)), Range([KP!J1], [KP!H65536].End(3)))
For Each Crr In A
   Crr = Crr: N = N + 1
   For i = 3 To UBound(Crr)
      T = Format(Trim(Crr(i, 1)), "0000000"): V = Format(Val(Crr(i, 2)), "0000000"): TT = T & "/" & V
      If Z.Exists(TT) Then
         If Arr(Z(TT), 1) = "" Then
            Arr(Z(TT), 1) = Crr(1, 1)
            ElseIf InStr("/" & Arr(Z(TT), 1) & "/", "/" & Crr(1, 1) & "/") = 0 Then
            Arr(Z(TT), 1) = Arr(Z(TT), 1) & "/" & Crr(1, 1)
         End If
         Arr(Z(TT), N \ 3 + 2) = Crr(1, 3)
      End If
   Next
Next
ActiveSheet.[M1].Resize(UBound(Brr), 3) = Arr
End Sub
§@ªÌ: 198188    ®É¶¡: 2024-3-5 12:36

¦^´_ 19# Andy2483


    ¤£¦n·N«ä¡A§Ú¤W¸ü¿ù¤F¤å¥ó¡A³o­Ó¤~¹ï¡C
³¡¤À¦a¤èµLªkŪ¨ú¸ê®Æ¡C
§@ªÌ: Andy2483    ®É¶¡: 2024-3-5 13:21

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2024-3-5 13:35 ½s¿è

¦^´_ 20# 198188

§Ç¸¹Äæ­ì¥»¨S¦³¦X¨ÖÀx¦s®æ,°ò©ó¸ê®Æªº§¹¾ã©Ê,§Ç¸¹³£¤@©w·|¦³,©Ò¥H¥HAÄæ³Ì«á¦³¤º®eÀx¦s®æ¨Ó§PÂ_¨äÁa¦V½d³ò,
¦p¤µ¦pªG§ï¬°¦³¦X¨ÖÀx¦s®æ,¥i¥H¥H¼Ò¸¹ÄæBÄæ§PÂ_Áa¦V½d³ò
­ì¥»  Set xA = Range(ActiveSheet.[G1], ActiveSheet.[A65536].End(3))
§ï¬°  Set xA = Range(ActiveSheet.[G1], ActiveSheet.[B65536].End(3)(1, 0))
§@ªÌ: ­ã´£³¡ªL    ®É¶¡: 2024-3-5 13:30

¦^´_ 20# 198188

¼Ò号..."©T©w"¥u¦bA¤ÎHÄæ?? ¨ä¥¦Äæ¦ì¨S¦³?
¤u§@¶µ¥Ø...¥u¦³"¼Qªo"???
§@ªÌ: 198188    ®É¶¡: 2024-3-5 14:04

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


    ©Ò¦³¦ì¸m©T©wÄæ¦ì¡A¥u¦³°õ¦æªº¤u§@ªí¦WºÙ·|¦³¤£¦P¡C
§@ªÌ: 198188    ®É¶¡: 2024-3-5 14:09

¦^´_ 21# Andy2483


    §ï¤F¡A¤£¹LÁÙ¬O¤@¼Ë¡C
´Nºâ¤£¬O¦X¦}ªºÀx¦s®æ¤]µo¥Í¤£¯àŪ¨úªº°ÝÃD¡C
§A¬Ý¬Ýªþ¥ó¡A§Ú§ï§¹¦Z¡A¹B¦æ¤F¡A¤]¬O¥X²{³o­Ó°ÝÃD¡C
§@ªÌ: 198188    ®É¶¡: 2024-3-5 14:13

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


    ¥t¥~¦]爲VBAùØ­±¥Î¤¤¤å·|¦³¶Ã½X¡A©Ò¥H ¡¨¼Qªo¡§ ¨â¦r¤~¦w±ÆŪ¨ú KP & KH Àx¦s®æªº" ¼Qªo"
§@ªÌ: Andy2483    ®É¶¡: 2024-3-5 14:17

¦^´_ 24# 198188


    ­þ¤@µ§ µo¥Í¤£¯àŪ¨úªº°ÝÃD??
§@ªÌ: 198188    ®É¶¡: 2024-3-5 14:29

[attach]37552[/attach][attach]37553[/attach][attach]37554[/attach]¦^´_ 26# Andy2483


    ¹Ï¤ù¬O¥þ³¡µ²ªG¡A²Ä2-79¦æ¤w¸g¨S¦³¸ê®Æ¡A²Ä80¦æ¦³¡A²Ä81 -84¦æ¨S¦³¡A ²Ä85¦æ¦³¡C
§@ªÌ: Andy2483    ®É¶¡: 2024-3-5 14:32

¦^´_  Andy2483


    ¥i¥H¤F¡AÁÂÁ¡I

Set xA = Range([1!G1], [1!A65536].End(3))
Intersect([1!M ...
198188 µoªí©ó 2024-3-5 08:58


­×§ï¬°¥Îactivesheet´N­n¦bªí "1"¤U°õ¦æ,§_«h·|§ì¤£¨ì¸ê®Æ,
¦pªG¦b¤u§@ªí¤£§ó´«¶¶§Çªº«e´£¤U¥i¥H¥Î¤u§@ªí¯Á¤Þ¸¹

Option Explicit
Sub TEST()
Dim Arr, Brr, Crr, V$, Z, i&, T$, TT$, A, xA As Range, N%
Set Z = CreateObject("Scripting.Dictionary")
Set xA = Range(Sheets(1).[G1], Sheets(1).[B65536].End(3)(1, 0))
xA.Offset(1, 12).Resize(, 3).ClearContents:  Brr = xA
For i = 2 To UBound(Brr)
   T = Format(Trim(Brr(i, 2)), "0000000"): V = Format(Val(Brr(i, 7)), "0000000"): TT = T & "/" & V
   Z(TT) = i
Next
Arr = Sheets(1).[M1].Resize(UBound(Brr), 3)
A = Array(Range([KH!C1], [KH!A65536].End(3)), Range([KH!J1], [KH!H65536].End(3)), Range([KP!C1], [KP!A65536].End(3)), Range([KP!J1], [KP!H65536].End(3)))
For Each Crr In A
   Crr = Crr: N = N + 1
   For i = 3 To UBound(Crr)
      T = Format(Trim(Crr(i, 1)), "0000000"): V = Format(Val(Crr(i, 2)), "0000000"): TT = T & "/" & V
      If Z.Exists(TT) Then
         If Arr(Z(TT), 1) = "" Then
            Arr(Z(TT), 1) = Crr(1, 1)
            ElseIf InStr("/" & Arr(Z(TT), 1) & "/", "/" & Crr(1, 1) & "/") = 0 Then
            Arr(Z(TT), 1) = Arr(Z(TT), 1) & "/" & Crr(1, 1)
         End If
         Arr(Z(TT), N \ 3 + 2) = Crr(1, 3)
      End If
   Next
Next
Sheets(1).[M1].Resize(UBound(Brr), 3) = Arr
End Sub
§@ªÌ: 198188    ®É¶¡: 2024-3-5 14:36

¦^´_ 28# Andy2483


    ¥Î¤F³o­Óµ{¦¡¡A¹B¦æ¦Z¡Aµ²ªG¤]¸ò¤§«e¤@¼Ë¡C²Ä2-79¦æ¨S¦³¸ê®Æ¡A²Ä80¦æ¦³¡A²Ä81-84¦æ¨S¦³¸ê®Æ
§@ªÌ: Andy2483    ®É¶¡: 2024-3-5 14:46

¦^´_ 29# 198188


    ¸ê®Æ¸Ì¥i¯à¦³¬Ý¤£¨£ªº¯S®í²Å¸¹
§@ªÌ: 198188    ®É¶¡: 2024-3-5 15:00

¦^´_ 30# Andy2483


    «e½ú«ü­þ­Ó¸ê®Æ¡H KP & KH ÁÙ¬O°õ¦æªº¤u§@ªí¡H
¤T­Óªíùتº¤å¦r³£¬O¼Æ¦r¡A¨S¦³²Å¸¹¡C
§@ªÌ: Andy2483    ®É¶¡: 2024-3-5 15:11

¦^´_ 31# 198188


    ¤µ¤Ñ¤~¬d¨ì2¦C»P137¦CÃöÁä¦r¬Û¦P,«á¾Ç¤£¹î,©êºp
§@ªÌ: ­ã´£³¡ªL    ®É¶¡: 2024-3-5 15:15

¦^´_ 25# 198188


¬O°Ý:°£¤F¼Qªo, ÁÙ¦³¨S¦³¨ä¥¦? ¨Ò¦p:¤W½¤??
§Y¦P¤@Áä­È, ¦³¤£¦P¤u§@¤º®e???

BF/BH  ¼Qªo/¤W½¤~~~
§@ªÌ: 198188    ®É¶¡: 2024-3-5 15:16

¥»©«³Ì«á¥Ñ 198188 ©ó 2024-3-5 15:20 ½s¿è

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


Project ¦WºÙ ¡]BH / BF) ³o¨Ç·|¸g±`ÅÜ°Ê¡A
KH / KP ÄæùØ¥u¦³¼Qªo¡A¨S¦³¨ä¥L¤F
§@ªÌ: 198188    ®É¶¡: 2024-3-5 15:19

¦^´_ 32# Andy2483


    °õ¦æ¤u§@ªíùØ­±ªº¸ê®Æ (SECTION & LENGTH) ²Õ¦X·|¦³­«½Æ©Êªº¡A¦]爲¬O¥]¸Ë¤£¦PªºNOùØ¡A©Ò¥H(SECTION & LENGTH) ²Õ¦X¤£·|¬O°ß¤@
§@ªÌ: Andy2483    ®É¶¡: 2024-3-5 15:42

¦^´_ 35# 198188
ÁÂÁ«e½ú«ü¾É,½Ð¦A¸Õ¸Õ¬Ý
Option Explicit
Sub TEST()
Dim Arr, Brr, Crr, V$, Z, Q, i&, T$, TT$, A, xA As Range, N%, C%
Set Z = CreateObject("Scripting.Dictionary")
Set xA = Range(ActiveSheet.[G1], ActiveSheet.[B65536].End(3)(1, 0))
xA.Offset(1, 12).Resize(, 3).ClearContents:  Brr = xA
For i = 2 To UBound(Brr)
   T = Format(Trim(Brr(i, 2)), "0000000"): V = Format(Val(Brr(i, 7)), "0000000"): TT = T & "/" & V
   Z(TT) = Z(TT) & "/" & i
Next
Arr = ActiveSheet.[M1].Resize(UBound(Brr), 3)
A = Array(Range([KH!C1], [KH!A65536].End(3)), Range([KH!J1], [KH!H65536].End(3)), Range([KP!C1], [KP!A65536].End(3)), Range([KP!J1], [KP!H65536].End(3)))
For Each Crr In A
   Crr = Crr: N = N + 1
   For i = 3 To UBound(Crr)
      T = Format(Trim(Crr(i, 1)), "0000000"): V = Format(Val(Crr(i, 2)), "0000000"): TT = T & "/" & V
      If Z.Exists(TT) Then
         Q = Split(Z(TT) & "/", "/")
         For C = 1 To UBound(Q) - 1
            If Arr(Q(C), 1) = "" Then
               Arr(Q(C), 1) = Crr(1, 1)
               ElseIf InStr("/" & Arr(Q(C), 1) & "/", "/" & Crr(1, 1) & "/") = 0 Then
               Arr(Q(C), 1) = Arr(Q(C), 1) & "/" & Crr(1, 1)
            End If
            Arr(Q(C), N \ 3 + 2) = Crr(1, 3)
         Next
      End If
   Next
Next
ActiveSheet.[M1].Resize(UBound(Brr), 3) = Arr
End Sub
§@ªÌ: 198188    ®É¶¡: 2024-3-5 17:55

[attach]37555[/attach]¦^´_ 36# Andy2483


    ´ú¸Õ¹L¡Aµª®×¨S¦³°ÝÃD¡C
¥t¥~¦³­Ó°ÝÃD¡A½Ð°Ý "¼Qªo" ¬OŪ¨ú KP & KH  ¤u§@ªí内 C1 & J1 ªºÀx¦s®æ¶Ü¡H §Ú´ú¸Õ¹L¦n¹³¤£¬O¡A½Ð°Ýµ{¦¡­þ­Ó¦ì¸m¬O¾Þ§@³o­Óªº¡H
¦]爲¦³¨âºØ¿ï¾Ü ¡§ ¼Qªo¡¨ ©M ¡§¤£¼Qªo¡¨¡A§Ú·Q¬Ý¬Ý¯à¤£¯à¦Û¤v­×§ï¤@¤U¡C
©ÎªÌ¯à§_¹³©«¤lùتº¹Ï¤ù¡A²Ä¤@Äæ¼Ò¸¹¡A²Ä¤GÄæªø«×¡A²Ä¤TÄæ ¡§¼Qªo¡¨ ©ÎªÌ ªÅ¥Õ¡AµM«áª½±µÅª¨ú²Ä¤TÄ檺¼Æ¾Ú¡C
§@ªÌ: Andy2483    ®É¶¡: 2024-3-5 18:38

¦^´_ 37# 198188

Crr(1, 3)  §ï¬° Crr(i, 3). ¸Õ¸Õ¬Ý




Åwªï¥úÁ{ ³Â»¶®a±Ú°Q½×ª©ª© (http://forum.twbts.com/)