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

§PÂ_¼Æ­È¡A¶Ç¦^µ²ªG¡C

§PÂ_¼Æ­È¡A¶Ç¦^µ²ªG¡C

¦U¦ì¥ý¶i¦n¡A°²³]§Ú¦bAÄ榳¤@§å¸ê®Æ¡A¨Ã¦bC1Àx¦s®æ¶ñ¤J¤@µ§¸ê®Æ¡A·íC1Àx¦s®æªº¸ê®Æ²Å¦XAÄæ¥ô¤@µ§®É¡A´N¦b¸Ó¦CªºBÄæ¶ñ¤J¤@¦ê¤½¦¡¡A§_«h¶ñ¤J"¤£²Å¦X"¤T­Ó¦r¡A§Ú¹Á¸Õ¼¶¼gµ{¦¡«á¡A¤@ª½¸õ¥X«¬ºA¤£²Å¦Xªº°T®§(¦ý¬O¦³§PÂ_¦¨¥\¤½¦¡ªº³¡¥÷)¡A·Q½Ð±Ð­ì¦]¦ó¦b¡HÁÂÁ¡C
¥H¤U¬Oªþ¥ó Book11.rar (11.47 KB)

¦^´_ 1# tku0216
¦]¬°C1¦bA1:A2¤¤§ä¤£¨ì®É¡A[match(c1,a1:a2,0)]·|¦^¶Ç¿ù»~
¦ÓCellsªº²Ä¤@­Ó°Ñ¼Æ¬°²Ä´X¦C¡A©Ò¥H§i¶D§A¶Ç¤Jªº°Ñ¼Æ«¬ºA¤£²Å¦X

TOP

¦hÁ«ü±Ð~¥t·Q½Ð±Ð¡A­YCÄ椣¥u¤@µ§®É(°²³]¦³3µ§)¡A·Q¼¶¼gµ{¦¡¨Ï¥Î°j°éªº¤è¦¡§PÂ_¡A¥H¤Uªº¼gªk¦³¬Æ»ò¼Ëªº°ÝÃD¡H¦]¬°¥Ø«e¥H¤Uªº¼gªk¸õ¥X"yes"µøµ¡¡A¦ý§Ú½T¹ê¤w¸g¦³µ¹²Å¦Xªº¸ê®Æ¡C

For i = 1 To 3
        If [isnumber(Match(Cells(i, 3), a1:a12, 0))] = True Then
           MsgBox "yes"
        End If
Next

TOP

¦^´_ 3# tku0216
¸Õ¸Õ¬Ý
  1. Sub te()
  2. With [C1:C3].Offset(, -1)
  3.     .FormulaR1C1 = "=match(rc[1],c1:c1,0)"
  4.     .SpecialCells(xlCellTypeFormulas, xlNumbers).FormulaR1C1 = "=SUM(C[-1])"
  5.     .SpecialCells(xlCellTypeFormulas, xlErrors) = "¤£²Å¦X"
  6. End With
  7. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 4# GBKEE


G¤j¡A·PÁ±z¡A
§Ú³£¨S¦³·Q¨ì¥i¥HÁ׶}°j°é§¹¦¨VBA¡A§Úµy·L­×§ï¤Fµ{¦¡¡A¦bmatchªº³¡¤À¡AÀ³¸Ó¬O­n¤Ï¹L¨Ó¬d¸ß¡A¤]´N¬O­n¥ÎAÄæ¬dCÄæ(¦Ó«DCÄæ¬dAÄæ)¡A³o¼Ë¤@¨Ó´N¥i¥H±o¨ì§Ú­nªºµ²ªG¡A­×§ï«áµ{¦¡¦p¤U¡G
Sub te()
With [C1:C9].Offset(, -1)
    .FormulaR1C1 = "=match(rc[-1],c3:c3,0)"  '¦¹³BÀ³¤Ï¹L¨Ó¬d¸ß!!
    .SpecialCells(xlCellTypeFormulas, xlNumbers) = "=sum(A1:a3)"
    .SpecialCells(xlCellTypeFormulas, xlErrors) = "¤£²Å¦X"
End With
End Sub

³o¼Ë¤@¨Ó´N·|¦bAÄæ¬d¨ì¸ê®Æªº¦ì¸m¡A¹ïÀ³¨ìªºBÄæ¥X²{SUM¥[Á`¡A­Y¬d¤£¨ì¸ê®Æ«hÅã¥Ü"¤£²Å¦X"¡C¦A¦¸·PÁ¦U¦ìªº¨ó§U¡C

TOP

¦^´_  tku0216
¸Õ¸Õ¬Ý
GBKEE µoªí©ó 2014-6-1 09:31


G¤j¡A¤£¦n·N«ä¦A½Ð±Ð¤@­Ó©µ¦ù°ÝÃD¡A­Y¬O­n¶ñ¤J¤½¦¡¡AÅýÀx¦s®æ¶Ç¦^¬Y¤u§@ªí¤¤¬YÀx¦s®æªº­È¡AÀ³¸Ó¦p¤U¤U¤½¦¡¡H
¨Ò¦pªþ¥ó³o­Ó¨Ò¤l¡A¦bSheet1ªºA1Àx¦s®æ¦³¤@²ÕID¡A§Ú·QÅý¥L¦bB1Àx¦s®æ¶Ç¦^"A123456789"¤u§@ªí¤¤ªºA1­È(µ²ªG¬°1)¡Aª½±µ¨Ï¥ÎExcel¨ç¦¡¬°"=INDIRECT(A1&"!A1")"¡C
¦ý­Y­n¨Ï¥Îspecialcells¡A¥ý§ä¥XBÄ椤¡A¥]¨ç¤½¦¡ªºÀx¦s®æ¡A¤§«á¦b¦P¦C©Ò¹ïÀ³ªºCÄæ¼g¤JINDIRECT¤½¦¡¡AÀ³¦p¦óªí¥Ü"=INDIRECT(A1&"!A1")"³o¬q¥y¤l¡H
Book11.rar (11.74 KB)

TOP

        ÀR«ä¦Û¦b : ¡i¬°µ½Ävª§¡j¤H¥Í­n¬°µ½Ävª§¡A¤À¬í¥²ª§¡C
ªð¦^¦Cªí ¤W¤@¥DÃD