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

[µo°Ý] §ä¥X³Ì¤Öªº²Õ¦X

¦^´_ 1# basarasy
¸Õ¸Õ¬Ý
  1. Sub Ex()
  2.     Dim Rng(1 To 2) As Range, E, R As Variant, C As Variant
  3.     With Sheets("eg.1")
  4.         Set Rng(1) = .[D1:G4]
  5.         Set Rng(2) = .[Q2:R4]
  6.     End With
  7.     For Each E In Rng(2).Rows
  8.         R = Application.Match(E.Cells(1, 1), Rng(1).Columns(1), 0)
  9.         C = Application.Match(E.Cells(1, 2), Rng(1).Rows(1), 0)
  10.         If IsNumeric(C) And IsNumeric(R) Then E.Cells(1, 3) = Rng(1).Cells(C, R)
  11.     Next
  12.     With Rng(2)
  13.         .Cells(.Cells.Count).Offset(1, 1) = "=SUM(" & .Columns(.Columns.Count + 1).Address & ")"
  14.     End With
  15. End Sub
½Æ»s¥N½X

TOP

¦^´_ 4# basarasy
[ ¦p¦ó¥Î³Ì¤Öªº¿ú¥h¶R©Ò¦³¼Æ¶qªº°Ó«~? ]
§Aªº½d¨Ò¤¤,¨S¬Ý¨ìª÷¿ú??  ,½Ð¦A¸Ô¦C½d¨Ò Åý¤j®a¸Õ¸Õ¬Ý

TOP

        ÀR«ä¦Û¦b : ­n¤ñ½Ö§ó¨ü½Ö¡D¤£­n¤ñ½Ö§ó©È½Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD