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

½Õ¨ä¥L¤u§@ªí¸ê®Æ¿é¤J

½Õ¨ä¥L¤u§@ªí¸ê®Æ¿é¤J

¥»©«³Ì«á¥Ñ coafort ©ó 2023-4-4 10:34 ½s¿è

½Ð°Ý¦U¦ì¤j¤j
¦pªþ¥ó
»Ý¨D¡G¨Ì·Ó¤u§@ªí2ªº°Ó«~¥N½X°µ§PÂ_¥h½Õ¤u§@ªí1ªº°t®§©M°tªÑ¸ê®Æ¶ñ¤J¤u§@ªí2
¤ñ¤è
¤u§@ªí2ªºA3¸ê®Æ¬O2603
¤u§@ªí1ªº2603¦ì¸m¦b²Ä437¦C
¤u§@ªí2ªºE3·|½Õ¤u§@ªí1ªºC437¦Û°Ê¶ñ¤J70
¤u§@ªí2ªºG3·|½Õ¤u§@ªí1ªºE437¦Û°Ê¶ñ¤J0
»Ý§PÂ_ªºÄæ¦ì¬°¥H¤U³o¨Ç¡A¥¼¨ÓÁÙ·|ÂX¥R
E3~E52
G3~G52
M3~M32
O3~O32
U3~U52
W3~W52
«ô°U¦U¦ì¤j¤j
«D±`·PÁ¦U¦ì¤j¤j[attach]36081[/attach]

2.rar (225.37 KB)

VLOOKUP(A3&"",¤u§@ªí1!A:C,3,)
hcm19522 µoªí©ó 2023-4-6 15:07


§c~¤j¤j¤Ó±j¤F
³ºµM¥i¥H
¯u¬O¤Ó·PÁ¤j¤j:D

TOP

VLOOKUP(A3&"",¤u§@ªí1!A:C,3,)
google"EXCEL°g"  blog  ©Îgoogleºô§}:https://hcm19522.blogspot.com/

TOP

¦^´_  coafort


    ÁÂÁ«e½úµoªí¦¹¥DÃD»P½d¨Ò
«á¾ÇÂǦ¹©«½m²ßVBA°}¦C»y¦r¨å,¾Ç²ß¤è®×¦p¤U,½Ð«e½ú°Ñ¦Ò ...
Andy2483 µoªí©ó 2023-4-6 11:14


«D±`·PÁ¤j¤j
§¹¬ü¸Ñ¨M
:)

TOP

¦^´_ 1# coafort


    ÁÂÁ«e½úµoªí¦¹¥DÃD»P½d¨Ò
«á¾ÇÂǦ¹©«½m²ßVBA°}¦C»y¦r¨å,¾Ç²ß¤è®×¦p¤U,½Ð«e½ú°Ñ¦Ò

°õ¦æ«e:


°õ¦æµ²ªG:



Option Explicit
Sub TEST()
Dim Brr, Crr, Y, R&, C&, i&, T$, V$, Z$, Q$
Dim xR1 As Range, xR2 As Range, Sh1 As Worksheet, Sh2 As Worksheet
Set Y = CreateObject("Scripting.Dictionary")
Set Sh1 = Sheets("¤u§@ªí1"): Set Sh2 = Sheets("¤u§@ªí2")
Set xR1 = Sh1.UsedRange.Offset(1, 0): Brr = xR1
Set xR2 = Sh2.UsedRange.Offset(2, 0): Crr = xR2
For i = 1 To UBound(Brr)
   If Brr(i, 1) = "" Then GoTo i01 Else T = Brr(i, 1) & "|" & Brr(i, 2)
   Y(T & "/°t®§") = Brr(i, 3): Y(T & "/°tªÑ") = Brr(i, 5)
   
i01:
Next
For C = 1 To UBound(Crr, 2) Step 8
   For R = 1 To UBound(Crr)
      If Crr(R, C) = "" Then GoTo i02 Else T = Crr(R, C) & "|" & Crr(R, C + 1)
      Crr(R, C + 4) = Y(T & "/°t®§"): Crr(R, C + 6) = Y(T & "/°tªÑ")
      V = Replace(Cells(R + 2, C + 2).Address, "$", "")
      Z = Replace(Cells(R + 2, C + 4).Address, "$", "")
      Q = Replace(Cells(R + 2, C + 6).Address, "$", "")
      Crr(R, C + 5) = "=IF(" & Z & "," & Z & "*" & V & ","""")"
      Crr(R, C + 7) = "=IF(" & Q & "," & Q & "/10*" & V & ","""")"
   Next
   
i02:
Next
xR2 = Crr
Set Y = Nothing: Set xR1 = Nothing: Set xR2 = Nothing: Erase Brr, Crr
Set Sh1 = Nothing: Set Sh2 = Nothing
End Sub

ÁÂÁ½׾Â,ÁÂÁ¦U¦ì«e½ú
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

§Ú¥Î
=VLOOKUP(A3,'¤u§@ªí1'!A2:C1332,3,TRUE)
¦ý³£¥X²{n/A¿ù»~
¤£ª¾¹D¬O­þ¸Ì¦³°ÝÃD
«ô°U¦U¦ì¤j¤j
ÁÂÁÂ

TOP

        ÀR«ä¦Û¦b : ¤@­Ó¯Ê¤fªºªM¤l¡A¦pªG´«¤@­Ó¨¤«×¬Ý¥¦¡A¥¦¤´µM¬O¶êªº¡C
ªð¦^¦Cªí ¤W¤@¥DÃD