¥»©«³Ì«á¥Ñ papaya ©ó 2017-11-19 19:34 ½s¿è
- Private Sub CommandButton1_Click()
- '[A2] = "=Max(D:D)"
- '[A2] = [A2].Value
- [A2] = Application.Max(Range("D:D"))
- [B1] = [I2]
- [B2] = [D2]
- [C2] = "=INDEX(D:D,MATCH(A2,I:I,))"
- [C2] = [C2].Value
- [C1] = "=SUMIF(OFFSET($I$1,C2-B2+1,1,,4),A1,OFFSET($D$1,C2-B2+1,1,,4))"
- [C1] = [C1].Value
- End Sub
½Æ»s¥N½X A1=¤H¤u¶ñ¤J
EX¡J
'[A2] = "=Max(D:D)"
'[A2] = [A2].Value
¥iÂà¤Æ¬°
[A2] = Application.Max(Range("D:D"))
½Ð°Ý¡J
[C2]©M[C1]n¦p¦óÂà¤Æ?
PS:Sheet2©MSheet3¥u§@»²§U»¡©ú¥Î¡F§¹¦¨«á´N²¾°£¡C
¥ý·PÁ¦U¦ì¤j¤jªº¼ö¤ß¨ó§U¡C
12¥Í¨v-VBA-Q.rar (10.03 KB)
|