- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 254
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-23
|
¥»©«³Ì«á¥Ñ Hsieh ©ó 2010-12-20 23:35 ½s¿è
E2=SUMPRODUCT((Sheet1!$A$2:$A$9=Sheet2!$A2)*(Sheet1!$B$2:$B$9=Sheet2!$B2)*(Sheet1!$C$2:$C$9=Sheet2!$C2)*Sheet1!D$2:D$9)
¦V¤U¦V¥k½Æ»s
VBA¤è¦¡- Sub Ex()
- Set d = CreateObject("Scripting.Dictionary")
- Set d1 = CreateObject("Scripting.Dictionary")
- Dim A As Range
- With Sheet1
- For Each A In .Range(.[A2], .[A2].End(xlDown))
- mystr = A & A.Offset(, 1) & A.Offset(, 2)
- d(mystr) = A.Offset(, 3).Value
- d1(mystr) = A.Offset(, 4).Value
- Next
- End With
- With Sheet2
- For Each A In .Range(.[A2], .[A2].End(xlDown))
- mystr = A & A.Offset(, 1) & A.Offset(, 2)
- A.Offset(, 4) = d(mystr)
- A.Offset(, 5) = d1(mystr)
- Next
- End With
- End Sub
½Æ»s¥N½X |
|