- ©«¤l
- 976
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 1018
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-4-19
- ³Ì«áµn¿ý
- 2024-10-30
|
¦^´_ 1# lilizzzz
Sub TEST_Vlookup()
Dim Arr, Brr, xD, i&
Set xD = CreateObject("Scripting.Dictionary")
j = 2
For sh = 2 To 1 Step -1
With Sheets(sh)
j = j + 1
Arr = .Range(.[A1], .[D65536].End(xlUp))
For i = 1 To UBound(Arr)
xD(Arr(i, 1)) = Arr(i, j)
Next
End With
Next
Brr = Range([¤u§@ªí1!B2], [¤u§@ªí1!C65536].End(xlUp))
For i = 1 To UBound(Brr)
Brr(i, 1) = xD(Brr(i, 1))
Next
[¤u§@ªí1!D2].Resize(UBound(Brr), 1) = Brr
End Sub
§ó·s D2 =IFERROR(VLOOKUP(B2,'3P-COPPPROD'!A:D,3,0),VLOOKUP(B2,'2P-COPPPROD'!A:D,4,0)) |
|