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

[µo°Ý] INDIRECT«á¨ú­È

[µo°Ý] INDIRECT«á¨ú­È

¥»©«³Ì«á¥Ñ yc1031 ©ó 2020-5-28 10:38 ½s¿è

½Ð°Ý¤j®a

1. ¥ÎINDIRECT¨ú¤£¦P¤u§@ªíªº¸ê®Æ­n«ç»ò¿ì¨ì? ¥Ø«e¬d¨ìªº¥Î=INDIRECT($C$1&""&"B4"), ¦ý¤]µLªk±a¥X³f®Æ
2. ±a¤J¸ê®Æ«á, ¦A«ç»ò¥þ³¡¥H¨ú­Èªº¸ê®Æ±a¨ì ¸ê®Æ¶K¤J°Ï? §Ú¦³¸ÕµÛ¥Î f5 ¥h¨ú, ¦ý³£·|¨ú¨ìªÅ¥Õ®æ
    *±a¨ì¸ê®Æ¶K¤J°Ï®É, ­n¸õ¨ìªÅ¥Õ¦C¤~¯à¶K, §Ú¬O¥ÎRange("L4").End(xlDown).Offset(1, 0).Select

§Ú¤]¦³§â§Úªº°ÝÃD¦C¦bexcelÀɸÌ, ¦A½Ð¤j®aÀ°¦£, ·PÁÂ!

2020¦~_±b¤á¶i¥X°O¿ýTEST.rar (63.28 KB)

¦^´_ 12# ­ã´£³¡ªL


    ¤Q¤À·PÁ§A!  °ÝÃD¤w¸g¦³¸Ñ¨M¤F¡C  ¦A¦¸ÁÂÁÂ

TOP

¦^´_ 11# yc1031

Sub ¨Ì±b¤á¶K¤J­È()
Dim Sht As Worksheet, T$, R&, xE As Range
[Åçºâ!I3:P6000].ClearContents
For Each Sht In Sheets
    If INSTR(Sht.NAME ,"#")=0 Then GoTo 101
    R = Sht.Cells(Rows.Count, 2).End(xlUp).Row - 3
    If R <= 0 Then GoTo 101
    Set xE = [Åçºâ!I1].Cells(Rows.Count, 1).End(xlUp)
    xE(2, 3).Resize(R, 6) = Sht.[A4].Resize(R, 7).Value
    xE(2, 1).Resize(R) = Sht.Name
    xE(2, 2).Resize(R) = "#" & SPLIT(Sht.Name,"#")(1)
101: Next
End Sub

TOP

¦^´_ 10# ­ã´£³¡ªL

§A¦n,

ÁÂÁÂÀ°¦£! ·Q¦A½Ð°Ý¤@¤U, ­Y±b¸¹#«á, ¤£¬O¥ÎA-Z, ¦Ó¬O¥Î¼Æ¦rªí¥Ü, Ãþ¦p ¤@»È#7777, ¤@»È#8888,  ³o¼Ëªº¸Ü, VBA½X­n«ç»ò§ï©O?

TOP

¦^´_ 9# yc1031

¥Î¤£¨ì¤½¦¡,
¥u­n¤u§@ªí¦WºÙ³Ì«á¬°"#"¥[­^¤å¦r, §Y¦Û°Ê³°Äò§ì¥X¦³®Ä½d³ò¶K¤J­È:

Sub ¨Ì±b¤á¶K¤J­È()
Dim Sht As Worksheet, T$, R&, xE As Range
[Åçºâ!I3:P6000].ClearContents
For Each Sht In Sheets
    T = Right(Replace(UCase(Sht.Name), "#", "$"), 2)
    If Not T Like "$[A-Z]" Then GoTo 101
    R = Sht.Cells(Rows.Count, 2).End(xlUp).Row - 3
    If R <= 0 Then GoTo 101
    Set xE = [Åçºâ!I1].Cells(Rows.Count, 1).End(xlUp)
    xE(2, 3).Resize(R, 6) = Sht.[A4].Resize(R, 7).Value
    xE(2, 1).Resize(R) = UCase(Sht.Name)
    xE(2, 2).Resize(R) = Right(T, 1)
101: Next
End Sub


'=====================================

TOP

¦^´_ 7# ­ã´£³¡ªL


·PÁ§A¸Ñµª§Ú©Ò¦³ªº°ÝÃD¡I

²Ä¤@¨B: SÄ榳·s¼W/§R´î±b¤á¤u§@ªí®É¥i¦Û°Ê§ó·sÀɦW  <----¤wOK
²Ä¤G¨B: ±a¤J¦U±b¤á©ú²Ó¨ìC~GÄæ¦ì <----¤wOK
²Ä¤T¨B: §âC~GÄæ¦ìªº­È¶K¤JJ~P ( ¤£Âл\­ì¥»ªº¸ê®Æ) <--¤wOK
* §Ú¸ÕµÛ¥Î¿ýVBAªº¤è¦¡§âUÄæ¦ìªº¥N½X¿é¤JA1, ¦A°õ¦æ"¶K¤J­ÈVBA", ¦ý³o¼Ë¥u¯à¤@µ§¤@µ§¸Õ¨ìZ,  ¦³¨S¦³¿ìªk¥i¥H¥ÎTÄæ¦ì¨Ó¿ë§O, ·N«ä¬O: §Ú¥u¦³A~Gªº±b¤á, ¨º´N¬OA1, ¥u¿é¤J¨ìG,  ¨ºH~Z´N¤£¥Î°µ¤F (¥i¤é«á­Y¬O·s¼W±b¤á´N¬O©¹¤UÄ~Äò)

2020¦~_±b¤á¶i¥X°O¿ýTEST.rar (66.56 KB)

TOP

¦^´_ 6# n7822123



  ·PÁ§A!¡@§Ú¤]¸Õ¤F´X¦¸¡A­ì¨Ó³æ¦ì®æ¸Ì¦³¤½¦¡ªº¡A¡@§Y¨ÏµL¸ê®Æ¡A³£·|³Q¢Ñ¢Ý¢Þ¢ç¨ì¡A©Ò¥H¥Î¢Ô¢´¡A¡@§Ú´N¿z¤£¥X¨Ó¤F¡C

TOP

1) ©w¸q¦WºÙ
    =GET.WORKBOOK(1)&T(NOW())  ¥[³o­Ó¥i¥H¤u§@ªí·s¼W©Î§R°£¦Ó¦Û°Ê§ó·s
2) C1¤½¦¡
   =IF(A1="","",TRIM(RIGHT(SUBSTITUTE(LOOKUP(1,0/(RIGHT(QM)=A1),QM),"]",REPT(" ",99)),99)))
3) C3¤½¦¡/¥k©Ô¤U©Ô
   =INDEX(INDIRECT("'"&$C$1&"'!B:F"),ROW($A1)+3,COLUMN(A$1))&""
4) B3¤½¦¡/¤U©Ô
  =IF(C3="","",(N(B2)+1)^(C3=C2))

5) 刦KVBA
Sub 刦K()
Dim R, xE As Range
R = Application.Match(9E+307, [B:B])
If IsError(R) Then Exit Sub
Set xE = [J1].Cells(Rows.Count, 1).End(xlUp)(2)
With Range("A3:G" & R)
     xE.Resize(.Rows.Count, .Columns.Count) = .Value
End With
End Sub

¥HBÄæ¼Æ¦r¬°MATCH½d³ò, ¥Î9E+307§ä¨ì³Ì«á¤@µ§


====================================

TOP

¥»©«³Ì«á¥Ñ n7822123 ©ó 2020-5-28 14:12 ½s¿è

¦^´_ 5# yc1031


ÁÂÁ§A¼·ªÅÀ°§Ú¦^µª°ÝÃD

²Ä¤T¨Bªº¨ú­È, ¬O¦]¬°§Ú¤£·|¥Îvba, ©Ò¥H§Ú¤~·Q¥Îindirect¥h±a¸ê®Æ«á, ¿ývba¨ú­È¶K¨ì"¸ê®Æ¶K¤J°Ï", ¤§«á¦A¿ývba¿z¿ï±Æ§Ç, §Ë¨ìÁ`ªí¥h
¦pªG¥i¥Hªº¸Ü, ¤]¬Oª½±µ¥Îvba °µ²Ä¤T¨B, ¤£¾å±o¬O§_¥i¥H±Ð§Ú«ç»ò°µ?
* §Ú¤é«á·|¦A·s¼W±b¤á

¥Î¨ç¼Æ¦A¥ÎVBAªº End¤èªk ·|¦³°ÝÃDªº End(xlUP) = «ö¦íCtrl + Áä½L¤è¦V½b ¦V¤W

§A¥i¥H°µ­Ó¤p¹êÅç¡A¶}¤@­Ó·s¤u§@ªí

¦b[B2]Àx¦s®æ ¶ñ¤J¤½¦¡ B2 =""  (ªÅ¸ê®Æ)

¤â°Ê½Æ»sB2Àx¦s®æ¡A¿ï¾Ü A8Àx¦s®æ ·Æ¹«¥kÁä > ¿ï¾Ü©Ê¶K¤W > ­È

µM«á¿ï¾Ü A15 Àx¦s®æ (A8¥H«á³£¦æ) «ö¦íCtrl + Áä½L¤è¦V½b ¦V¤W  Àx¦s®æ·|°±¯d¦bA8 ¤£¬O A1

ÁöµMA8 ¬Ý°_¨Ó¨S¦³¤H¥ô¦óªF¦è!  ³o¬OExcel ¤@ª½¦³ªº°ÝÃD ¡AUsedRange¤]¦³¦P¼Ë°ÝÃD

·Ç³Æ¤W¯Z¥h¤F¡A§A­nªº²Ä3¨B¤£Ãø¡A

¬Ý³o¸Ì¦³¨S¦³¤HÀ°§A¼g¡A¨S¦³ªº¸Ü§Ú¤W¯Z¦^¨Ó¦AÀ°§A

µ{¦¡¬O¨Ì»Ý¨D¼gªº¡A»Ý¨Dªí¹F¤£²M·¡
©ÎªÌ¨S¦³¤W¶Çªþ¥ó¡A·R²ö¯à§U

TOP

¦^´_ 2# n7822123


§A¦n,

ÁÂÁ§A¼·ªÅÀ°§Ú¦^µª°ÝÃD

²Ä¤T¨Bªº¨ú­È, ¬O¦]¬°§Ú¤£·|¥Îvba, ©Ò¥H§Ú¤~·Q¥Îindirect¥h±a¸ê®Æ«á, ¿ývba¨ú­È¶K¨ì"¸ê®Æ¶K¤J°Ï", ¤§«á¦A¿ývba¿z¿ï±Æ§Ç, §Ë¨ìÁ`ªí¥h
¦pªG¥i¥Hªº¸Ü, ¤]¬Oª½±µ¥Îvba °µ²Ä¤T¨B, ¤£¾å±o¬O§_¥i¥H±Ð§Ú«ç»ò°µ?
* §Ú¤é«á·|¦A·s¼W±b¤á

TOP

        ÀR«ä¦Û¦b : ¯àµ½¥Î®É¶¡ªº¤H¡A¥²¯à´x´¤¦Û¤v§V¤Oªº¤è¦V¡C
ªð¦^¦Cªí ¤W¤@¥DÃD