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
|
¦^´_ 26# GBKEE
§ì¨ú¼ÆÈ
§Ú¬Oª½±µ§ï
EE.Activate¡A¿E¬¡Sheet¥h§ì¨ú¡A¤£ª¾¹DGBKEE¤j¤j¬O§_¦³§ó¬¡ªº¤èªk©O? |
|
|
|
|
|
|
- ©«¤l
- 9
- ¥DÃD
- 3
- ºëµØ
- 0
- ¿n¤À
- 12
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2015-9-13
- ³Ì«áµn¿ý
- 2015-11-30
|
match ·j´M¤£¦P¤u§@ªí¥i¥H«ü©wÅܼƶÜ?
¦p¥DÃD:match ·j´M¤£¦P¤u§@ªí¥i¥H«ü©wÅܼƶÜ?
°²³]~
¤u§@ªíAAA¸Ì±AÄ榳
AA001
AA002
¤u§@ªíBBB¸Ì±AÄ榳
BB001
BB002
¤u§@ªíCCC¸Ì±·Q¨Ï¥ÎMATCH
A1Ä欰AAA
A2Ä欰BBB
A3Ä欰·j´MÈ(°²³]¬°AA001)
A4¬°MATCHªºµ²ªG
°õ¦æCells(4, 1) = [MATCH(A3,AAA!A1:A20,0)]
¥i¸Õ¥X AA001 ¦b AAAªí¤¤ªº²Ä1Ó¦ì¸m¡C
Y·Q§â·í¤¤ªºAAA!§ï¦¨Åܼƪº¤è¦¡¡A½Ð°Ý¸Ó¦p¦óקï?
¨Ò¦p§ï¦¨
Cells(4, 1) = [MATCH(A3,Worksheets(Cells(1, 1)A1:A20,0)]
´N·|¥X²{¿ù»~¤F~ ¦³ÂI·Ð´o
ÁÙ±æ«e½ú«üÂI°g¬z¡A¦³³Ò¶O¤ß¤F¡AÁÂÁÂ
demo match.zip (16.2 KB)
|
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 32# GBKEE
WoW...Cool~
¦ý¬O§ÚÁÙ¦³¤@Ó°ÝÃD...´N¬O §Ú¬O¤ñ¹ï¤é´Á
¤ñ¹ïªº¼ÆȬ°
2015/1/1
¤ñ¹ïªº°}¦C¬°
2014/12/31
2015/1/2
2015/1/3
...
..
.
Match«á±³]©w 1 §ä¤p©ó ·|§ä¨ì 2014/12/13
¦ý¬O§Ú³]©w -1 §ä¤j©ó ¥L¥X²{ "·¸¦ì" ¦Ó¤£·|§ä¨ì 2015/1/2 ...
°ÝÃD¥X¦bþ¸Ì? |
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 34# GBKEE
¦A½Ð°ÝGBKEE¤j¤j
Integer½d³ò¬° -32,768 ¨ì 32,767 ¤§ 16 ¦ì¤¸·|·¸¦ì,
¦ÓSinglet¼Æªº®ÉÔ¬O±q -3.402823E38 ¨ì -1.401298E-45
¥¿¼Æªº®ÉÔ¬O±q 1.401298E-45 ¨ì 3.402823E38¡A¬°¤°»òSingle´N¤£·|·¸¦ì©O¡H§ÚÁÙ¬O¤£¤ÓÀ´³oÓ¹D²z...
ReDim AR(1 To Rows.Count)
AR(Rows.Count) = #1/1/2015# ' <- ¤£¯à¼g¦º¡AMatch´N¬O-1¡A§ì¤£¨ìªº®ÉÔ¤~·|§ä¤j©ó¦Û¤vªº¤é´Á
I = Application.Match(#2/1/2015#, AR, -1)
MsgBox I
«¢~«Ü·PÁÂGBKEE¤j¤j³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
|
¦^´_ 34# GBKEE
¨Ò¦pªþÀÉ~
³o¼Ë¤l¦n¹³¤]¬O #N/A¡B¿ù»~2048 ...«¢....¥i¯à§ÚÁÙ¨S¿ìªk»â®©GBKEE¤j¤j©Ò»¡ªº- Sub test()
- Dim i, y, x As Single
- i = Application.Match("A1", Range("C1:C14"), -1)
- Range("B1") = i
- y = Application.Match("A2", Range("C1:C14"), -1)
- Range("B2") = y
- x = Application.Match("A3", Range("C1:C14"), -1)
- Range("B3") = x
- End Sub
½Æ»s¥N½X |
-
-
test1.zip
(9.57 KB)
¦pªþÀÉ
|
|
|
|
|
|
- ©«¤l
- 9
- ¥DÃD
- 3
- ºëµØ
- 0
- ¿n¤À
- 12
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2015-9-13
- ³Ì«áµn¿ý
- 2015-11-30
|
G¤j±z¦n~³o¨â½g§Ú³£¦³¬Ý¹L¤F³á~ ¤£¹L¯à²z¸Ñ¦³¡A
¤j·§ª¾¹D[]¤¤¤£±µ¨üÅܼƪº¦r¦ê¡A©Ò¥H§âµ{¦¡½X§ï¦¨
Private Sub CommandButton1_Click()
Cells(4, 1) = Application.Match(A3, Sheets("AAA").Range("A1:A10"), 0)
End Sub
'¥Ø¼Ð¬O³z¹L¥Ø«e¤u§@ªíCCCªºA3Äæ¸ê®Æ(AA001)¡A¥hmatch¤u§@ªíAAA¤¤A1~A10²Å¦XAA001ªº¦ì¸m«á¡A¼g¦b¤u§@ªíCCCªºCells(4, 1)¦ì¸m
¦p¦¹ÁÙ¬O·|§ä¤£¨ì¥Ø¼Ð³á~ ¯àÀ°¦£«üÂI¶Ü~~ ¤£¦n·N«ä¤F |
|
|
|
|
|
|