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

[µo°Ý] ¦p¦ó¦h­Ó±ø¥ó·j´M?

[µo°Ý] ¦p¦ó¦h­Ó±ø¥ó·j´M?

¦pªþÀÉ¡AÁÂÁ¤j¤j! Book21.rar (6.28 KB)

¥»©«³Ì«á¥Ñ 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¤è¦¡
  1. Sub Ex()
  2. Set d = CreateObject("Scripting.Dictionary")
  3. Set d1 = CreateObject("Scripting.Dictionary")
  4. Dim A As Range
  5. With Sheet1
  6. For Each A In .Range(.[A2], .[A2].End(xlDown))
  7.   mystr = A & A.Offset(, 1) & A.Offset(, 2)
  8.   d(mystr) = A.Offset(, 3).Value
  9.   d1(mystr) = A.Offset(, 4).Value
  10. Next
  11. End With
  12. With Sheet2
  13. For Each A In .Range(.[A2], .[A2].End(xlDown))
  14.   mystr = A & A.Offset(, 1) & A.Offset(, 2)
  15.   A.Offset(, 4) = d(mystr)
  16.   A.Offset(, 5) = d1(mystr)
  17. Next
  18. End With
  19. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

½Ð°Ý¤j¤j¦p¦ó¼gVBA? (¦]¬°­Y¥HEXCEL¨ç¼Æ¼g¡A¥Ñ©óÄæ¦ì²³¦h¡AÀÉ®×±N·|Åܪº«Ü¤j)

TOP

¡A·PÁÂHsieh¤j¤j¦A¤@¦¸ªºÀ°¦£!

TOP

        ÀR«ä¦Û¦b : ±o²z­nÄǤH¡A²zª½­n®ð©M¡C
ªð¦^¦Cªí ¤W¤@¥DÃD