½Ð±Ð·j´M¦WºÙ¡@§ä¥X¤é´Á¡@ÁÂÁÂ
- ©«¤l
- 173
- ¥DÃD
- 42
- ºëµØ
- 0
- ¿n¤À
- 220
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 365
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-10-13
- ³Ì«áµn¿ý
- 2023-10-11
|
½Ð±Ð·j´M¦WºÙ¡@§ä¥X¤é´Á¡@ÁÂÁÂ
½Ð±Ð
½Ð±Ð.rar (7.89 KB)
§Ú·Q§ä¥X ¿B¤ôÂßÅé¼ÒªO ¦³¬I¤uªº¤é´Á n¦p¦ó¹F¦¨©O ÁÂÁ |
|
HI
|
|
|
|
|
- ©«¤l
- 1446
- ¥DÃD
- 40
- ºëµØ
- 0
- ¿n¤À
- 1470
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Excel 2010 & 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2020-7-15
- ³Ì«áµn¿ý
- 2024-10-21
|
ÁÂÁ½׾Â,ÁÂÁ¦U¦ì«e½ú
«á¾ÇÂǦ¹©«¾Ç²ß«e½úªº¤è®×,Åܧ󤣦P»Ý¨D±¡¹Ò,¾Ç²ß¤è®×¦p¤U,½Ð¦U¦ì«e½ú«ü±Ð
ªí1 ¸ê®Æªí:
ã´£³¡ªL«e½úªººë²¤è®×°õ¦æµ²ªG:
«á¾Ç¤è®×°õ¦æµ²ªG:
Option Explicit
Sub TEST()
Dim Brr, Crr, i&, j%, R&, Y&, X%, T$
Dim xR As Range, Sh1 As Worksheet, Sh2 As Worksheet
'¡ô«Å§iÅܼÆ
Set Sh1 = Sheets("¤u§@ªí1"): Set Sh2 = Sheets("¤u§@ªí2")
'¡ô¥OÅܼƲ±¸Ëª«¥ó(¤u§@ªí)
Sh2.UsedRange.ClearContents
'¡ô¥Oªí2¦³¨Ï¥ÎÀx¦s®æ²M°£¤º®e
Brr = Range(Sh1.[H1], Sh1.Cells(Rows.Count, "A").End(xlUp))
'¡ô¥OBrrÅܼƬO¤Gºû°}¦C,¥Hªí1ªºA~HÄæ°}¦Cȱa¤J°}¦C¤¤
Y = UBound(Brr): X = UBound(Brr, 2)
'¡ô¥OYÅܼƬO Brr°}¦CÁa¦V³Ì¤j¯Á¤Þ¦C¸¹,¥OXÅܼƬO Brr°}¦C¾î¦V³Ì¤j¯Á¤ÞÄ渹
ReDim Crr(1 To Y, 1 To 2)
'¡ô¥OCrrÅܼƬO ¤GºûªÅ°}¦C,Áa¦V½d³ò¦PBrr°}¦C,¾î¦V1~2Äæ
For i = 6 To Y
'¡ô³]¶¶°j°é
If i = 6 Then
Crr(1, 1) = "¤é´Á"
Crr(1, 2) = "¬I¤u¶µ¥Ø"
R = 1
End If
'¡ô¦pªGiÅܼƬO1,¥ý³B²z¼ÐÃD¦C
If Not IsDate(Brr(i, 1)) Then
'¡ô¦pªGBrr°}¦C¼ÐÃDÄæ(¤é´ÁÄæ)¸ÌªºÈ¤£¬O¤é´Á?
MsgBox Brr(i, 1) & " ¬O¿ù»~ªº¤é´Á!½Ð×¥¿«á¦A«·s°õ¦æ"
'¡ô¸õ¥X´£¥Üµ¡ "~~~"
Exit Sub
'¡ôµ²§ôµ{¦¡°õ¦æ
End If
For j = 2 To X
If Val(Brr(i, j)) > 0 Then T = T & "¡B" & Brr(1, j)
Next
'¡ô³]¶¶°j°é,±N¦P¦C¦UÄæ¬O¼ÆȪº¼ÐÃD¥H¹y¸¹¶¡¹j
R = R + 1
'¡ô¥ORÅܼƲ֥[1
Crr(R, 1) = Brr(i, 1)
If T <> "" Then
'¡ô¦pªGTÅܼƤ£¬OªÅªº?
Crr(R, 2) = Mid(T, 2)
'¡ô¥OCrr°}¦C²Ä2Äæ¼g¤J¬I¤u¶µ¥Ø¶°¦r¦ê
T = ""
'¡ô¥OTÅܼƲM°£¤º®e
End If
i01: Next
Sh2.[A1].Resize(R, 2) = Crr
'¡ô¥Oªí2.[A1]ÂX®i½d³òÀx¦s®æÈ¥HCrr°}¦Cȼg¤J
Application.Goto Sh2.[A1]
'¡ô¥O´å¼Ð¸õ¨ìªí2.[A1]Àx¦s®æ
Set Sh1 = Nothing: Set Sh2 = Nothing: Erase Brr, Crr
'¡ô¥OÄÀ©ñÅܼÆ
End Sub |
|
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y
|
|
|
|
|
- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 19# mycmyc
¤]¥i¥Î Application.Match¨ç¼Æ- Option Explicit
- Sub Ex()
- Dim Rng(1 To 2) As Range, e As Range, M As Variant, d As Object
- With Sheets("¤u§@ªí2")
- .UsedRange.Clear
- .[a1:b1] = Array("¤é´Á", "¬I¤u¶µ¥Ø")
- End With
- With Sheets("¤u§@ªí1")
- Set Rng(1) = .Range("B6", "B" & .[A6].End(xlDown).Row).Resize(, .[A1].End(xlToRight).Column - 1).SpecialCells(xlCellTypeConstants, 1)
- ' *** .SpecialCells(xlCellTypeConstants, 1) ¬O¼Æ¦rªºÀx¦s®æ ***
- For Each e In Rng(1)
- M = Application.Match(.Cells(e.Row, 1).Text, Sheets("¤u§@ªí2").Columns(1), 0)
- If IsError(M) Then 'Match¤£¨ì '
- Set Rng(2) = Sheets("¤u§@ªí2").Range("A" & Rows.Count).End(xlUp).Offset(1)
- Rng(2) = .Cells(e.Row, 1).Text 'AÄ檺¤é´Á
- Rng(2).Cells(1, 2) = .Cells(1, e.Column) '²Ä¤@¦Cªº¬I¤u¶µ¥Ø
- Else
- Set Rng(2) = Sheets("¤u§@ªí2").Range("A" & M) 'Match¨ì ªº¦C¸¹
- Rng(2).Cells(1, 2) = Rng(2).Cells(1, 2) & "¡B" & .Cells(1, e.Column)
- End If
- Next
- End With
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 173
- ¥DÃD
- 42
- ºëµØ
- 0
- ¿n¤À
- 220
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 365
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-10-13
- ³Ì«áµn¿ý
- 2023-10-11
|
¦^´_ 18# ã´£³¡ªL
ÁÂÁ·Ǥj
§Ú¬ã¨s¤@¤U ÁÂÁ§A ¼ö¤ß«ü¾É |
|
HI
|
|
|
|
|
- ©«¤l
- 2834
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2890
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-21
|
¦^´_ 16# mycmyc
Y¸ê®Æ¦h, ª½±µ¥Îvba¨ú¥X¬ÛÃö¸ê®Æ:
Sub GetDateItem()
Dim Arr, i&, j%, N&, T$
[¤u§@ªí2!A:B].ClearContents
[¤u§@ªí2!A1:B1] = Array("¤é´Á", "¬I¤u¶µ¥Ø")
Arr = Range([¤u§@ªí1!H1], [¤u§@ªí1!A65536].End(xlUp))
For i = 6 To UBound(Arr)
If Not IsDate(Arr(i, 1)) Then GoTo 101
For j = 2 To UBound(Arr, 2)
If Val(Arr(i, j)) <> 0 Then T = T & "¡B" & Arr(1, j)
Next j
If T = "" Then GoTo 101
N = N + 1
Arr(N, 1) = Arr(i, 1): Arr(N, 2) = Mid(T, 2): T = ""
101: Next i
If N > 0 Then [¤u§@ªí2!A2:B2].Resize(N) = Arr
Application.Goto [¤u§@ªí2!A1]
End Sub
Xl0000244(¤é´Á-¬I¤u¶µ¥Ø).rar (13.92 KB)
|
|
|
|
|
|
|
- ©«¤l
- 406
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 453
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOWS 7
- ³nÅ骩¥»
- 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2015-2-7
- ³Ì«áµn¿ý
- 2021-7-31
|
¥»©«³Ì«á¥Ñ n7822123 ©ó 2018-11-6 01:28 ½s¿è
¦^´_ 15# mycmyc
¤Ì......¨S¨Æ¡A§Ú¨S¦³n°á§Aªº·N«ä¡A
¨S¦³¤H¤@¥X¥Í´N¤°»ò³£·|¡A¤£¥Î¸ò§Ú»¡¹ï¤£°_
¦]¬°§A¦b¦P¤@ÓCaseµo°ÝªºÀW²v¦³ÂI°ª¡A©Ò¥H§Ú»~¥H¬°§A·Q³£¨S·Q¡A´N¤W¨Ónµª®×¡A³oÂI§Ú»~¸Ñ§A¤F
¦³¦Û¤v·Q¹L´NOK¤F! ¡A·í§A¥d¦íªº®É¡A±o¨ìµª®×«á¡A¦L¶H·|§ó²`¨è¡A¤U¦¸´N¤£·|¥d¦b¦P¤@Ó¦a¤è
¦pªG¨S¦Û¤v·Q¹L¡Aª½±µ±o¨ìµª®×¡A¹ï©óµª®×¬O¨S¦³·Pıªº¡A¤@¼Ò¤@¼ËªºªF¦è¡A´«ÓÄd¦C´N¥i¯à¥d¦í¤F
n¦s¥¨¶°ªºÀɦW¥i¥H¬O.xls(ª©) ©ÎªÌ .xlsm(·sª©) ¡A
.xlsx ¤£·|¦sVBA¥¨¶°¡A¦sÀÉ«áÃö±¼¦A¶}¡A¥¨¶°´N¨S¦³¤F |
|
µ{¦¡¬O¨Ì»Ý¨D¼gªº¡A»Ý¨Dªí¹F¤£²M·¡
©ÎªÌ¨S¦³¤W¶Çªþ¥ó¡A·R²ö¯à§U
|
|
|
|
|
- ©«¤l
- 173
- ¥DÃD
- 42
- ºëµØ
- 0
- ¿n¤À
- 220
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 365
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-10-13
- ³Ì«áµn¿ý
- 2023-10-11
|
¦^´_ 14# ã´£³¡ªL
ÁÂÁ§A §Ú¹êÅç½T©w¥i¥H
¦sÀɬO§_¨Ì©wn¬°.xlsm ¥¨¶°¼Ò¦¡
·PÁ¤G¦ì«e½ú
¥»¤H½T¹êÀ³¸Ó§ó¥Î¤ß¾Ç²ß ÁÂÁÂ³á ¤£¦n·N«ä ·P®¦
¦A½Ð±Ð-1104-1.rar (16.69 KB)
|
|
HI
|
|
|
|
|
- ©«¤l
- 173
- ¥DÃD
- 42
- ºëµØ
- 0
- ¿n¤À
- 220
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 365
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-10-13
- ³Ì«áµn¿ý
- 2023-10-11
|
¦^´_ 13# n7822123
¹ï¤£°_ ½T¹ê¨S¾Ç¦n
쥻·Q¥Î ¦Ûq¤½¦¡ §â¤é´Á¤U¤u¶µ °µ¤@°}¦C ¦b·j´M¤£µ¥©ó"" ¦C¥X
³o¼ËÅܦ¨¨C¤@Ó¤é´Á ¦h»Ýn¤@Ó¦Ûq¤½¦¡ ¦]¦¹¨S¿ìªk
¹ï¤£°_ ³Â·Ð§A¤F ÁÂÁ§A
À³¸Ó¬O§Ú ¨S§â¨CÓ¨ç¼Æ ¿Ä·|³e³q ¤~¥d¦í §Ú¦A¬ã¨s¤@¤U ±`¥Î¨º¨Ç¨ç¼Æ
¯uªº·P®¦§A ÁÂÁ |
|
HI
|
|
|
|
|
- ©«¤l
- 2834
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2890
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-21
|
¦^´_ 12# mycmyc
¦Ûq¨ç¼Æ:
Function GetItem(xA As Range, xB As Range) As String
Dim xR As Range, N%, TT$
For Each xR In xB
N = N + 1
If Val(xR) > 0 Then TT = TT & "¡B" & xA(N)
Next
GetItem = Mid(TT, 2)
End Function
K6/¤½¦¡:=GetItem(B$1:H$1,INDEX(B:H,MATCH(J6,A:A,),)) ¤U©Ô |
|
|
|
|
|
|
- ©«¤l
- 406
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 453
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOWS 7
- ³nÅ骩¥»
- 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2015-2-7
- ³Ì«áµn¿ý
- 2021-7-31
|
¥»©«³Ì«á¥Ñ n7822123 ©ó 2018-11-5 01:14 ½s¿è
¦^´_ 12# mycmyc
¨Ï¥Îªº¨ç¼Æ³£¨º¨Ç¦Ó¤w¡A§A¥i¥H¥ý¦Û¤v¬ã¨s¬Ý¬Ý¡A
¯uªº¼g¤£¥X¨Ó¦A½Ð§O¤HÀ°¦£¡A§A¤]¥i¥H¾Ç¨ìªF¦è¡A
¦pªG·Q³£¤£¥h·Q¡A´Nµo°Ýªº¸Ü¡A¥H«á¹J¨ìÃþ¦üªº°ÝÃD¡AÁÙ¬O¥u¯à¤@ª½½Ð§O¤HÀ°¦£
³o¦¸ªº¤ñ¸û½ÆÂø¤@ÂIÂI¡A´N¥ýÀ°§A¤F¡A¤£¹L§Ú¨S¦³§â¦r¦ê¦A±µ°_¨Ó(§A¥i¥H¦b§OªºÀx¦s®æ°µ¦ê±µ)
§Ú¼gªº¦³¨Ç½ÆÂø¡AÀ³¸Ó¦³§ó¦n§ó²µuªº¼gªk¡AÃi±o·Q¤F¡A¦³½Ð¤j¯«½ç±Ð!
¿ï¨úK6:Q6¡A«á¿é¤J
=IFERROR(INDEX($A$1:$H$1,,SMALL(IF(VLOOKUP($J6,$A$6:$H$30,COLUMN($B$2:$H$2)) <> "",COLUMN($B$2:$H$2),""),COLUMN($A$1:$G$1))),"")
¥ý«ö¦íCtrl+Shift ¦A«ö Enter «á©ñ¶}
¦A©¹¤U©Ô
¦A½Ð±Ð-1104.rar (11.37 KB)
|
|
µ{¦¡¬O¨Ì»Ý¨D¼gªº¡A»Ý¨Dªí¹F¤£²M·¡
©ÎªÌ¨S¦³¤W¶Çªþ¥ó¡A·R²ö¯à§U
|
|
|
|
|