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

[µo°Ý] ¦Û°Ê¼W¥[¦C°ÝÃD2

[µo°Ý] ¦Û°Ê¼W¥[¦C°ÝÃD2

A,B Ä欰¤å¦r, C¬°¦~¥÷¶}©l,D¬°¦~¥÷²×µ²,E¬°¥X²z¦~¥÷¦¸¼Æ
½Ð°Ý«ç¼Ë¥i¥H¹ê²{¦pH,I,J ¯ë(¥i¥H¦b¥t¤@¤u§@ªí)
¸ò¾ÚE¥X²{¦~¥÷¦¸¼Æ,¦Û°Ê·s¼W¦C¦ÓH,I §¡¬°A,B¤å¦r

¦p¦¹Ãþ±À
sample11.zip (6.81 KB)
excel~ ¾Ç¦n¥L§a

http://blog.xuite.net/hcm19522/twblog/507097631
google"EXCEL°g"  blog  ©Îgoogleºô§}:https://hcm19522.blogspot.com/

TOP

¦^´_ 2# hcm19522
·Q½Ð°Ý,§Úªº¸ê®Æ¸ÌA-E¦³13500,¬O¤£¬Oª½±µ§ï($1:$13500)
¦p¤U
H2:I13500=OFFSET(A$2,SUMPRODUCT((ROW(A1)>SUBTOTAL(9,OFFSET($E$2,,,ROW($1:$13500))))*1),)&""

J2:J13500=OFFSET(C$2,SUMPRODUCT((ROW(C1)>SUBTOTAL(9,OFFSET($E$2,,,ROW($1:$13500))))*1),)+COUNTIF(H$2:H2,H2)-1&""

¸Õ¤F1000,¦ý Load «Ü¤[
excel~ ¾Ç¦n¥L§a

TOP

½Ð°Ý¦³¨S¦³¤èªk¥i¥H³B²z¶W¹L10000ªº¸ê®Æ
excel~ ¾Ç¦n¥L§a

TOP

Sub TEST()
Dim R&, Arr, Brr, SS&, N&, i&, j&
[H:J].ClearContents
R = Cells(Rows.Count, 1).End(xlUp).Row
Arr = Range("A1:E" & R)
SS = Application.Sum([E:E])
ReDim Brr(1 To SS, 1 To 3)
For i = 1 To UBound(Arr)
¡@¡@For j = Arr(i, 3) To Arr(i, 4)
¡@¡@¡@¡@N = N + 1
¡@¡@¡@¡@Brr(N, 1) = Arr(i, 1)
¡@¡@¡@¡@Brr(N, 2) = Arr(i, 2)
¡@¡@¡@¡@Brr(N, 3) = j
¡@¡@Next j
Next

[H1:J1].Resize(SS) = Brr
End Sub
¡@
Xl0000010.rar (11.69 KB)
¡@

TOP

        ÀR«ä¦Û¦b : ¤Hªº²´·úªø¦b«e­±¡A¥u¬Ý¨ì§O¤Hªº¯ÊÂI¡Aµ·²@¬Ý¤£¨ì¦Û¤vªº¯ÊÂI¡C
ªð¦^¦Cªí ¤W¤@¥DÃD