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

[µo°Ý] ¤£¦PÅÜ¼Æ ¥|«h¹Bºâ Åã¥Ü¥þ³¡µ²ªG

¦^´_ 7# a8602soul
  1. Private Sub CommandButton1_Click()

  2.    '²M°£«e¦¸­pºâµ²ªG
  3.     Range("A2:H" & Rows.Count).Cells.Clear
  4.    
  5.    '¨Ì§Ç¦CÁ|©Ò¦³¥i¯àªº¼Æ­È
  6.     r = 2
  7.     For i = 2 To Range("L" & Rows.Count).End(xlUp).Row
  8.         ÅܼÆA = Cells(i, "L").Value
  9.         For j = 2 To Range("M" & Rows.Count).End(xlUp).Row
  10.             ÅܼÆB = Cells(j, "M").Value
  11.             For k = 2 To Range("N" & Rows.Count).End(xlUp).Row
  12.                 ÅܼÆC = Cells(k, "N").Value
  13.                 For m = 2 To Range("O" & Rows.Count).End(xlUp).Row
  14.                      ÅܼÆD = Cells(m, "O").Value
  15.                      
  16.                     '¶ñ¤JÅܼÆA-D
  17.                      Cells(r, "A").Value = ÅܼÆA
  18.                      Cells(r, "B").Value = ÅܼÆB
  19.                      Cells(r, "C").Value = ÅܼÆC
  20.                      Cells(r, "D").Value = ÅܼÆD
  21.                                           
  22.                     '­pºâA
  23.                      Cells(r, "E") = (2 + 2 + ÅܼÆA + ÅܼÆB) / (1 + ÅܼÆA)
  24.                     '­pºâB
  25.                      Cells(r, "F") = (ÅܼÆB + ÅܼÆC) / (5 + ÅܼÆB + ÅܼÆC + ÅܼÆD)
  26.                     '­pºâC
  27.                      Cells(r, "G") = (2 + 3 + ÅܼÆC + ÅܼÆD) / (1 + ÅܼÆC) + ÅܼÆD
  28.                     '­pºâD
  29.                      Cells(r, "H") = (ÅܼÆA + ÅܼÆD) / (ÅܼÆC + 1)
  30.                      r = r + 1
  31.                 Next m
  32.             Next k
  33.         Next j
  34.     Next i
  35. End Sub
½Æ»s¥N½X
°ÝÃD.zip (17.3 KB)
diabo

TOP

        ÀR«ä¦Û¦b : ¯u¥¿ªº·R¤ß¡A¬O·ÓÅU¦n¦Û¤vªº³oÁû¤ß¡C
ªð¦^¦Cªí ¤W¤@¥DÃD