¦b¤£©T©w½d³ò¤º§ä¥X¬Û¦P¸ê®Æ
- ©«¤l
- 162
- ¥DÃD
- 44
- ºëµØ
- 0
- ¿n¤À
- 244
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 7
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-4-4
- ³Ì«áµn¿ý
- 2022-10-3
|
¦b¤£©T©w½d³ò¤º§ä¥X¬Û¦P¸ê®Æ
|
Jess
|
|
|
|
|
- ©«¤l
- 1392
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 1402
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN
- ³nÅ骩¥»
- 2007
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-9-11
- ³Ì«áµn¿ý
- 2024-12-27
|
A12:B23{=IFERROR(INDIRECT("¤u§@ªí1!"&TEXT(RIGHT(SMALL(IF((MOD(COLUMN($AB12:$AK24),3)=1)*(¤u§@ªí1!$AB$12:$AK$24>0),CODE(¤u§@ªí1!$AB$12:$AK$24)/1%%+ROW(AB$12:AK$24)/1%+COLUMN($AB12:$AK24)-(COLUMN(A1)=2)*2),ROW(A1)),4),"!R0C00"),),"")
G12:G23{=IF(A12="","",SUM(IFERROR(¤u§@ªí1!M$12:M$24*(¤u§@ªí1!AB$12:AK$24=A12)*(¤u§@ªí1!Z$12:AI$24=B12)*¤u§@ªí1!AA$12:AJ$24,)))
I12:I23{=INDEX(¤u§@ªí1!D:D,LARGE(IF((¤u§@ªí1!AB$12:AK$24=A12)*(¤u§@ªí1!Z$12:AI$24=B12),ROW(D$12:D$24)),1))&"" |
|
google"EXCEL°g" blog ©Îgoogleºô§}:https://hcm19522.blogspot.com/
|
|
|
|
|
- ©«¤l
- 163
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 170
- ÂI¦W
- 0
- §@·~¨t²Î
- Window 7
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-9-5
- ³Ì«áµn¿ý
- 2022-7-20
|
¦^´_ 1# jesscc
½Ð°Ñ¦Ò- Sub test()
- Dim arr
- Dim brr()
- arr = Range("D12", "AK" & [D65536].End(xlUp).Row)
- For i = 1 To UBound(arr)
- For j = 23 To 33 Step 3
- If arr(i, j) <> "" Then
- n = n + 1
- ReDim Preserve brr(1 To 9, 1 To n)
- brr(1, n) = arr(i, j + 2)
- brr(2, n) = arr(i, j)
- brr(7, n) = arr(i, 10) * arr(i, j + 1)
- brr(9, n) = arr(i, 1)
- End If
- Next j
- Next i
- With Sheets("¤u§@ªí2")
- .Rows("12:65536").Delete
- .[A12].Resize(n, 9) = Application.Transpose(brr)
- .Select
- End With
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 162
- ¥DÃD
- 44
- ºëµØ
- 0
- ¿n¤À
- 244
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 7
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-4-4
- ³Ì«áµn¿ý
- 2022-10-3
|
¦^´_ 3# Kubi
¸ò»Ý¨D¥Øªºµy¦³®t²§¡A¬Û¦Pªº¼t°Ó¨S¦³±Æ¦C¦b¤@°_¡C¤£¹L³o³¡¤À¥Î¤H¤u¿z¿ï¤]¨SÃö«Y¡AÁÂÁ¤j¤j¡C
¥t¥~¦³Ó¤p°ÝÃDarr©Mbrr()¦³¤°»ò®t§O? |
|
Jess
|
|
|
|
|
- ©«¤l
- 163
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 170
- ÂI¦W
- 0
- §@·~¨t²Î
- Window 7
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-9-5
- ³Ì«áµn¿ý
- 2022-7-20
|
¦^´_ 4# jesscc
Q1¡G¬Û¦Pªº¼t°Ó¨S¦³±Æ¦C¦b¤@°_
A1¡G¥un¦bWith Sheets("¤u§@ªí2")¤ºªº.Select¤§«e´¡¤J©³¤U³o¦æµ{¦¡½X
.[A12].Resize(n, 9).Sort key1:=.[A12]
Q2¡Garr©Mbrr()¦³¤°»ò®t§O?
A2¡Garr¡GÄÝÀRºA°}¦C¡A¥Î¦b¥i½T»{°}¦C¤j¤pªº±¡ªp
brr()¡GÄݰʺA°}¦C¡A¥Î¦bµLªk½T»{°}¦C¤j¤pªº±¡ªp |
|
|
|
|
|
|
- ©«¤l
- 162
- ¥DÃD
- 44
- ºëµØ
- 0
- ¿n¤À
- 244
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 7
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-4-4
- ³Ì«áµn¿ý
- 2022-10-3
|
|
Jess
|
|
|
|
|
- ©«¤l
- 1447
- ¥DÃD
- 40
- ºëµØ
- 0
- ¿n¤À
- 1471
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Excel 2010 & 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2020-7-15
- ³Ì«áµn¿ý
- 2024-12-5
|
ÁÂÁ½׾Â,ÁÂÁ¦U¦ì«e½ú
«á¾ÇÂǦ¹©«½m²ß°}¦C.°j°é»P±Æ§Ç,¾Ç²ß¤è®×¦p¤U,½Ð¦U¦ì«e½ú«ü±Ð
Option Explicit
Sub TEST()
Dim Brr, Crr, i&, j%, N&
¤u§@ªí2.UsedRange.Offset(11).ClearContents
Brr = Range([¤u§@ªí1!IV11].End(xlToLeft)(2), [¤u§@ªí1!D65536].End(3))
ReDim Crr(1 To 1000, 1 To 9)
For i = 1 To UBound(Brr)
For j = 23 To UBound(Brr, 2) Step 3
If Trim(Brr(i, j)) = "" Then GoTo i01 Else N = N + 1
Crr(N, 1) = Brr(i, j + 2): Crr(N, 2) = Brr(i, j): Crr(N, 9) = Brr(i, 1)
Crr(N, 7) = Val(Brr(i, j + 1)) * Val(Brr(i, 10))
Next
i01: Next
If N = 0 Then Exit Sub
With ¤u§@ªí2.[A12].Resize(N, 9)
.Value = Crr
.Sort KEY1:=.Item(1), Order1:=1, Header:=2
Application.Goto .Cells
End With
End Sub |
|
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y
|
|
|
|
|