match ·j´M¤£¦P¤u§@ªí¥i¥H«ü©wÅܼƶÜ?
- ©«¤l
- 127
- ¥DÃD
- 38
- ºëµØ
- 0
- ¿n¤À
- 166
- ÂI¦W
- 0
- §@·~¨t²Î
- Microsoft
- ³nÅ骩¥»
- Windows 7
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-31
- ³Ì«áµn¿ý
- 2018-8-3
|
MATCH°ª¤â½Ð¶i
°}¦C ªíA ~ ªíF
¼ÆÈ ªíG ~ ªíZ
VBA¨Ï¥ÎMATCH
n«ç»òÅý"¼ÆÈ"¥h¤ñ¹ï"°}¦C"... |
|
|
|
|
|
|
- ©«¤l
- 262
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 280
- ÂI¦W
- 16
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- HK
- µù¥U®É¶¡
- 2015-8-11
- ³Ì«áµn¿ý
- 2024-10-26
|
=Application.match(lookup_value,nmatchªº°}¦C,match_type))
Lookup_value: ¥i¥H¬O¼ÆȩΤå¦r
Match_type ¬°¥i¿ï¼Æ -1¡A0¡A©Î1¡C
Match_type°Ñ¼Æ«ü©w±NExcel¤Ç°tlookup_valueªº»PȬd§äªº°}¦C¡C¦¹°Ñ¼ÆªºÀq»{ȬO1¡C¤U±´yzMatch_type¥Îªk¡C
1©Î¬Ù²¤ match»{¬°¬O¤p©ó©Îµ¥©ó³Ì¤jÈlookup_valueªº¡C¦bȬd§äªº°}¦C°Ñ¼Æ¥²¶·³Q©ñ¸m¦b¤W¤É¶¶§Ç¡A¨Ò¦p¡G...- 2¡A-1¡A0¡A1¡A2¡A...¡AAZ¡AFALSE¡ATRUE¡C
0 Match§ä¨ì²Ä¤@ÓÈ¡A¸ÓÈ¥¿¦nµ¥©ólookup_valueªº¡C¦b¤¤È¬d§äªº°}¦C°Ñ¼Æ¥i¥H¬O¥ô·N¶¶§Ç¡C
-1 Matchµo²{ªº³Ì¤pȤj©ó©Îµ¥©ólookup_valueªº¡C¦bȬd§äªº°}¦C°Ñ¼Æ¥²¶·³Q©ñ¸m¦b»¼´î¶¶§Ç¡A¨Ò¦p¡GTRUE¡AFALSE ZA¡A... 2¡A1¡A0¡A-1¡A-2¡A...¡Aµ¥µ¥¡C |
|
|
|
|
|
|
- ©«¤l
- 127
- ¥DÃD
- 38
- ºëµØ
- 0
- ¿n¤À
- 166
- ÂI¦W
- 0
- §@·~¨t²Î
- Microsoft
- ³nÅ骩¥»
- Windows 7
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-31
- ³Ì«áµn¿ý
- 2018-8-3
|
¦^´_ 2# ikboy
ÁöµM¤£¬O§Ú·Qnªºµª®×,¦ý«ÜÁÂÁ§Aªº¦^ÂÐ... |
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 3# EGBT
¬O³o¼Ë¶Ü?- Option Explicit
- Sub EX()
- Dim ¼ÆÈ(), °}¦C(), e As Variant, M As Variant
- ¼ÆÈ = Array(0, "a" , 100 , "bb", 88)
- °}¦C = Array(88, "cc", 0, "a", "bb")
- For Each e In ¼ÆÈ
- M = Application.Match(e, °}¦C, 0)
- Debug.Print e, M '«ü¥O:À˵ø->§Y®É¹Bºâµøµ¡
- Next
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 127
- ¥DÃD
- 38
- ºëµØ
- 0
- ¿n¤À
- 166
- ÂI¦W
- 0
- §@·~¨t²Î
- Microsoft
- ³nÅ骩¥»
- Windows 7
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-31
- ³Ì«áµn¿ý
- 2018-8-3
|
¦^´_ 4# GBKEE
§Ú¥i¥H½Ð°Ý¤@¤U¼ÆȪºArray¸ò°}¦CªºArray¬O¤°»ò..? |
|
|
|
|
|
|
- ©«¤l
- 127
- ¥DÃD
- 38
- ºëµØ
- 0
- ¿n¤À
- 166
- ÂI¦W
- 0
- §@·~¨t²Î
- Microsoft
- ³nÅ骩¥»
- Windows 7
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-31
- ³Ì«áµn¿ý
- 2018-8-3
|
¦^´_ 4# GBKEE
§ÚÀ³¸Ó°Ýªº¤£°÷¦n...
À³¸Ó»¡MATCHªº¼Æȸò°}¦C
¼ÆÈ»P°}¦C¤À§O¦b¤£¦PªºSheet
¦Ó¼Æȸò°}¦C³£¦³«Ü¦hÓSheet
MATCH¼g¤£¦n... |
|
|
|
|
|
|
- ©«¤l
- 127
- ¥DÃD
- 38
- ºëµØ
- 0
- ¿n¤À
- 166
- ÂI¦W
- 0
- §@·~¨t²Î
- Microsoft
- ³nÅ骩¥»
- Windows 7
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-31
- ³Ì«áµn¿ý
- 2018-8-3
|
¦^´_ 5# EGBT
¦pªþÀÉ
3Ó¼ÆȪºSheet
3Ó°}¦CªºSheet
µM«á¨CÓ¼ÆȪºSheet³£n¶]°}¦CªºSheet |
-
-
11111.zip
(7.14 KB)
ÀÉ®×
|
|
|
|
|
|
- ©«¤l
- 262
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 280
- ÂI¦W
- 16
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- HK
- µù¥U®É¶¡
- 2015-8-11
- ³Ì«áµn¿ý
- 2024-10-26
|
Sub zz()
Dim no_ar, arr, sh_ar
sh_ar = [{"¼ÆÈ1","°}¦C1";¼ÆÈ2","°}¦C2";¼ÆÈ3","°}¦C3"}]
For i = 1 To UBound(sh_ar)
With Sheets(sh_ar(i, 1))
Set no_ar = .Range("a1:b" & .Cells(Rows.Count, 1).End(3).Row)
arr = Sheets(sh_ar(i, 2)).[a1].CurrentRegion
For j = 1 To no_ar.Rows.Count
no_ar(j, 2) = Application.Match(no_ar(j, 1), arr, 0)
Next: End With: Next
Set no_ar = Nothing
End Sub |
|
|
|
|
|
|
- ©«¤l
- 127
- ¥DÃD
- 38
- ºëµØ
- 0
- ¿n¤À
- 166
- ÂI¦W
- 0
- §@·~¨t²Î
- Microsoft
- ³nÅ骩¥»
- Windows 7
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-31
- ³Ì«áµn¿ý
- 2018-8-3
|
¦^´_ 8# ikboy
«Ü·PÁ§Aªº¦^ÂÐ~³o¼Ë§Ú¦³§ó¦hªº°ÝÃD·Qn½Ð±Ð§A¤F.. |
|
|
|
|
|
|
- ©«¤l
- 127
- ¥DÃD
- 38
- ºëµØ
- 0
- ¿n¤À
- 166
- ÂI¦W
- 0
- §@·~¨t²Î
- Microsoft
- ³nÅ骩¥»
- Windows 7
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-31
- ³Ì«áµn¿ý
- 2018-8-3
|
¦^´_ 8# ikboy
sh_ar = [{"¼ÆÈ1","°}¦C1";¼ÆÈ2","°}¦C2";¼ÆÈ3","°}¦C3"}]
§Ú·Q½Ð°Ý¤@¤U [{}] ³o¬O¤°»ò? |
|
|
|
|
|
|