| ©«¤l79 ¥DÃD2 ºëµØ0 ¿n¤À193 ÂI¦W0  §@·~¨t²ÎWinwos 7 64 bits ³nÅ骩¥»Excel 2003/2007 ¾\ŪÅv20 ©Ê§O¨k ¨Ó¦ÛTAIPEI µù¥U®É¶¡2010-8-25 ³Ì«áµn¿ý2019-9-20 
 | 
                
| ¦^´_ 7# a8602soul ½Æ»s¥N½XPrivate Sub CommandButton1_Click()
   '²M°£«e¦¸pºâµ²ªG
    Range("A2:H" & Rows.Count).Cells.Clear
    
   '¨Ì§Ç¦CÁ|©Ò¦³¥i¯àªº¼ÆÈ
    r = 2
    For i = 2 To Range("L" & Rows.Count).End(xlUp).Row
        ÅܼÆA = Cells(i, "L").Value
        For j = 2 To Range("M" & Rows.Count).End(xlUp).Row
            ÅܼÆB = Cells(j, "M").Value
            For k = 2 To Range("N" & Rows.Count).End(xlUp).Row
                ÅܼÆC = Cells(k, "N").Value
                For m = 2 To Range("O" & Rows.Count).End(xlUp).Row
                     ÅܼÆD = Cells(m, "O").Value
                     
                    '¶ñ¤JÅܼÆA-D
                     Cells(r, "A").Value = ÅܼÆA
                     Cells(r, "B").Value = ÅܼÆB
                     Cells(r, "C").Value = ÅܼÆC
                     Cells(r, "D").Value = ÅܼÆD
                                          
                    'pºâA
                     Cells(r, "E") = (2 + 2 + ÅܼÆA + ÅܼÆB) / (1 + ÅܼÆA)
                    'pºâB
                     Cells(r, "F") = (ÅܼÆB + ÅܼÆC) / (5 + ÅܼÆB + ÅܼÆC + ÅܼÆD)
                    'pºâC
                     Cells(r, "G") = (2 + 3 + ÅܼÆC + ÅܼÆD) / (1 + ÅܼÆC) + ÅܼÆD
                    'pºâD
                     Cells(r, "H") = (ÅܼÆA + ÅܼÆD) / (ÅܼÆC + 1)
                     r = r + 1
                Next m
            Next k
        Next j
    Next i
End Sub
 °ÝÃD.zip (17.3 KB) | 
 |