- ©«¤l
- 678
- ¥DÃD
- 147
- ºëµØ
- 0
- ¿n¤À
- 799
- ÂI¦W
- 0
- §@·~¨t²Î
- win 8
- ³nÅ骩¥»
- MS 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2016-2-9
- ³Ì«áµn¿ý
- 2022-1-20
|
¥»©«³Ì«á¥Ñ ziv976688 ©ó 2021-9-16 10:25 ½s¿è
¦^´_ 2# samwang
TEST_0916.rar (240.68 KB)
¤£¦n·N«ä¡AÁÙ¦³¤@Ó"§ïÅÜÄæ¦ìªº²ÎpÅ޿褧»yªk¬ã²ß"~Àµ½Ð±z½ç±Ð :
½Ð±N¤U¦CE:KÄæ¦ìªº²ÎpÅÞ¿è§ï¬°~
EÄæ(¿²v) =$A$2>0®É¡ADÄ檺È/$A$2¡F¨Ã½Ð±NEÄæȨú¤p¼ÆÂI«á3¦ì¼Æ¡A²Ä4¦ì¥|±Ë¤¤J(=ROUND(D2/$A$2,3))
JÄæ(Á`¦¸¼Æ) =±NDÄ檺ȥѤj¦Ó¤p(˧Ç)©¹¤U¶ñ¤J¡C
GÄæ(Á`Ó¼Æ) =¥ý·j´MDÄæ»PJÄæ¬Û¦PÈ¡A«á±N¸ÓDÄæȦbCÄ檺¦P¦CÈ©¹¤U¶ñ¤J¡C
HÄæ(±Æ¦W)=±NDÄæÈ¥H¤¤¦¡±Æ¦Wªº±Æ§Ç©¹¤U¶ñ¤J¡C
IÄæ(¼Æ¦r) =¥ý·j´MDÄæ»PJÄæ¬Û¦PÈ¡A«á±N¸ÓDÄæȦbBÄ檺¦P¦CÈ©¹¤U¶ñ¤J¡C
KÄæ(¿²v) =¥ý·j´MDÄæ»PJÄæ¬Û¦PÈ¡A«á±N¸ÓDÄæȦbEÄ檺¦P¦CÈ©¹¤U¶ñ¤J¡C
½Ð°Ý»yªkn¦p¦ó½s§ï¡H
ÁÂÁ±z¡I
Arr = .Range(.[C1], .[B65536].End(3))
For i = 2 To UBound(Arr)
For j = 1 To 2: Arr(i - 1, j) = xD(Arr(i, 1) & "/" & j): Next
If xD(Arr(i, 1) & "/1") = "" Then Arr(i - 1, 1) = 0: Arr(i - 1, 2) = 0 'n·s¼W
Next
.[C2].Resize(UBound(Arr) - 1, 2) = Arr 'C&DÄæ
Arr = .Range(.[E2], .[B65536].End(3))
ReDim Crr(1 To UBound(Arr), 1 To 5)
For i = 1 To UBound(Arr)
If Arr(i, 3) > 0 Then Arr(i, 4) = Arr(i, 3) / .[A2] 'EÄæ
Crr(i, 1) = Arr(i, 2): Crr(i, 2) = Arr(i, 2)
Crr(i, 3) = Arr(i, 1): Crr(i, 4) = Arr(i, 3)
Crr(i, 5) = Arr(i, 4)
Next
.[B2].Resize(UBound(Arr), 4) = Arr
With .Range("g2").Resize(UBound(Crr), 5) 'GÄæ
.Value = Crr
.Sort key1:=.Item(1), Order1:=2, Header:=xlNo
Crr = .Value
End With
T = Application.Max(.Range("g2:g" & UBound(Crr)))
For i = 1 To UBound(Crr)
Crr(i, 1) = T - Crr(i, 1) + 1
Next
.[H2].Resize(UBound(Crr), 1) = Crr 'HÄæ |
|