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

[µo°Ý] ¸ê®Æ®æ¦¡¤£²Å

[µo°Ý] ¸ê®Æ®æ¦¡¤£²Å

Hi «e½ú
§Ú¥D­n·Q§âÁcÂøªº¸ê®Æ ±q¨ä¥L¤u§@ªí¼´¶i§Úªº¸ê®Æªí¹ïÀ³ªº¤u§@ªí¤¤,¨Ï¥ÎVlookup¨Ã§ä¥XÄæ¦ìB1+C1 ,¨Ã¥B±Æ§Ç³Ì¤j­È¦A¤W(¥ÑZ->A)
³Ì«áPrint¥X¨Ó
###############################################
§Ú·Q¸ß°Ý¥t¤@­Ó°ÝÃD  ±q²Ä¤@¦æ¶]¨ì³Ì¤U¤@ÄæCells®Éµ²§ô¨ìKÄ檺¹Bºâ«á,·|²£¥Í¤@­Ó¸ê®Æ«¬ºA¤£²Å,¤£ª¾«e½ú¬O§_¦³¸Ñ
   Cells(1, 1).Select
   For K = 1 To ThisWorkbook.Sheets(1).UsedRange.Rows.Count
    Cells(K, 4) = Cells(K, 3) + Cells(K, 2)
    Next
###############################################
ÁÙ·Q¥t¥~¦A¸ß°Ý
For Each Rng In Sheets(1).Range("a2:a5000")
³o­ÓRange("A2:A5000") ³o­Ó¬O§_¥i¥H§ï¦¨Äæ¦ì¤¤¦³Äæ¶ñ¤J¸ê®Æ°µ¹Bºâ§Y¥i
###############################################
³Ì«á§Ú¦³ªþ¤Wªþ¥ó1!  ·PÁÂ,³Â·Ð¸Ñ´b ÁÂÁÂ

ºÃ°Ý.rar (31.03 KB)

ªþ¥ó1

¦^´_ 1# s13983037

§Aªº°ÝÃDÀ³¸Ó¬O§âFor Each Rng In Sheets(1).Range("a2:a5000")³o¦C§ï¦¨¤U¦C´N¥i¥H¤F¡A³o¥]¬A§Aªº²Ä¤@­Ó°ÝÃD
    For Each Rng In Sheets(1).Range("a2:a" & Sheets(1).Cells(Rows.Count, 1).End(xlUp).Row)

TOP

¦^´_ 2# lpk187
Hi §A¦n
For Each Rng In Sheets(1).Range("a2:a" & Sheets(1).Cells(Rows.Count, 1).End(xlUp).Row)
    §Ú¥Ø«e¬O·Q¨Ï¥ÎVlookupªº¥\¯à¦ý¬O­ì¥»ªº¸ê®Æ¿ï¨úªº½d³ò¨ÆA2:A5000,©Ò¥H»¡§Ú·Q­n§â¥Lªº¿ï¨ú½d³ò±qA2:¥Ø«eRow¨Ï¥Îªº³Ì«á¤@­ÓÄ欰°µ­pºâ
¦pªG³æ¨Ï¥ÎExcel vlookup»yªk¤j·§¬O
vlookup(A2,²Ä¤G­Ó¤u§@ªíªº!A2:D¦Cªº³Ì«á¤@®æ¦³¿é¤J¸ê®ÆªºÄæ¦ì,4,0)
vlookup(A2,²Ä¤T­Ó¤u§@ªíªº!A2:D¦Cªº³Ì«á¤@®æ¦³¿é¤J¸ê®ÆªºÄæ¦ì,4,0)
¥H¤W ¤£ª¾¹D­n¦p¦ó­×§ï¦¨¥H¤W³o¼Ë ³Â·Ð«ü±ÐÁÂÁÂ

TOP

¦^´_ 3# s13983037


    !@#$@#@@
¤j­ô¡I¤§«eµ¹§Aªº¤w¸g¬O§ä³Ì«á®æ¤F¡I
±q&±q¶}©lªº& Cells(Rows.Count, 1).End(xlUp).Row´N¬O§ä³Ì«á®æ¤F
    Rng.Offset(, 1) = Application.VLookup(Rng, Sheets("115").Range("a2:d" & Cells(Rows.Count, 1).End(xlUp).Row), 4, 0)

TOP

¦^´_ 4# lpk187

Hi
­Ó¤H¾ÇÃÀ¤£ºë,·Q½Ð±Ð
¦pªG»¡§Ú§âRng§ï¦¨cellsªº¥Îªk,¦ý¬O§ï¼g§¹«á«o¦³¸ê®Æ«¬ºA¤£²Åªºª¬ªp.
ÁٽЦh¦hÀ°¦£«ü±Ð ÁÂÁÂ

  For i = 2 To Sheets(1).UsedRange.Rows.Count
        Worksheets(1).Cells(i, 2) = Application.VLookup(Worksheets(1).Cells(i, 1), Sheets(2).Range(Cells(2, 1), Cells(Sheets(2).UsedRange.Rows.Count, 4)), 4, 0)
        Worksheets(1).Cells(i, 3) = Application.VLookup(Worksheets(1).Cells(i, 1), Sheets(3).Range(Cells(2, 1), Cells(Sheets(3).UsedRange.Rows.Count, 4)), 4, 0)
  Next

Vlookup.jpg (12.59 KB)

Vlookup.jpg

TOP

With Sheets(1)
¡@¡@For i = 2 To .UsedRange.Rows.Count
¡@¡@¡@¡@.Cells(i, 2) = Application.VLookup(.Cells(i, 1), Sheets(2).UsedRange.Columns("A:D"), 4, 0)
¡@¡@¡@¡@.Cells(i, 3) = Application.VLookup(.Cells(i, 1), Sheets(3).UsedRange.Columns("A:D"), 4, 0)
¡@¡@Next i
End With

TOP

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


    ÁÂÁÂ!¸Ñ¨M¤F§Úªº°ÝÃD ·PÁÂ!

TOP

        ÀR«ä¦Û¦b : ¤£­n¤p¬Ý¦Û¤v¡A¦]¬°¤H¦³µL­­ªº¥i¯à¡C
ªð¦^¦Cªí ¤W¤@¥DÃD