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

excel 2003 match ¤½¦¡ bug?

excel 2003 match ¤½¦¡ bug?

excel 2003 match ¤½¦¡ bug?

fÄ檺¤½¦¡ =MATCH(E7,E:E,1)

­«ÂI²Ä¤@­Ó½s¸¹¥u¦pªG¤@­Ó´N·|Åܦ¨ #N/A

¦pªG²Ä¤@­Ó½s¸¹¡y¦³¨â­Ó¥H¤W¡z¡A´N·|«Ü¥¿±`

§¹¥þ·d¤£²M·¡¬°¤°»ò¡H

excel match bug.zip (2.27 KB)

¤½¶}¸gÅç¡A³Ð³y´¼¼z¡]§Ú¤S¤£¾a³o¹L¬¡¡^

¥»©«³Ì«á¥Ñ ML089 ©ó 2017-5-12 01:18 ½s¿è

¦pªG match_type ¬O 1¡A«h MATCH ¨ç¼Æ·|§ä¨ìµ¥©ó©Î¶È¦¸©ó lookup_value ªº­È¡CLookup_array ¥²¶·¥H»¼¼W¦¸§Ç±Æ¦C¡G...-2, -1, 0, 1, 2, ..., A-Z, FALSE, TRUE¡C

¥¿½T¨Ï¥Î½d³ò¤ñ¸û¤£·|¥X¿ù
=MATCH(E7,E$7:E$15,1)

F7»PM7¬O¤@¼Ëªº¡AF7·|¦³°ÝÃD¬OVLOOKUP ±Ä¥Î2¤Àªk¬d¸ß®É¡A
F7 ³Ì«á¤@²Õ¤ñ¸û¬O E6¤ÎE7¡A¦]¬°E6>E7¥¼·Ó¤j¤p±Æ¦C²£¥Í¿ù»~¡C

§A§âE6¤º®e"½s¸¹" §ï¬° "A"¡A¤½¦¡´N¤£·|¦³¿ù»~¡A¦]¬° "A" < "A001"¡C
§A§âE6¤º®e"½s¸¹" §ï¬° "B"¡A¤½¦¡ÁÙ¬O·|¦³¿ù»~¡A¦]¬° "B" > "A001"¡C
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 2# ML089


    ÁÂÁ§Aªº¸ÑÄÀ¡A§ÚÁÙ¬O§Ë¤£À´

¤@¡B§ÚµLªk±N E:E §ï¦¨ E7:E2564 ¡A¦]¬°½s¸¹ªº¦ì¸m¤£¤@©w¦b E6¡A©Ò¥HARRAY ªº°_ÂI¤£¤@©w¦bE7


¤G¡B§Ú¦³±N E6:E15 »¼¼W±Æ§Ç ½s¸¹¬O¦b A001 ¤§¤W ©Ò¥H¨Ì§ÇÀ³¸Ó¬O ½s¸¹ A001 A002 B001 B002 C001 C003 .....

§Ú§¹¥þµLªk²z¸Ñ¬°¤°»ò¥u¦³¤@­Ó A001 ´N·|¥X¿ù¡AÅܦ¨ #N/A

¥u¦³¤@­Ó B001 C001 ©Î C002 ®É¡A´N¤£·|¥X¿ù

¬Æ¦Ü¥u­n¦³¡y¨â­Ó¡z¥H¤WªºA001 ¤]¤£·|¥X¿ù¡H

§Ú¤w¸g¬Ý¹L MATCH ªº»¡©ú ¼Æ¤Q¦¸¡AÁÙ¬OµLªk²z¸Ñ¡A¬°¤°»ò·|¦³¤W­zªº°ÝÃD¡H

¯à§_¬°§Ú¸ÑÄÀ¤@¤U¡A¬°¤°»ò¤@­ÓA001¤£¦æ¡A¨â­Ó¥H¤WA001´N¥i¥H¡H

¡°§Ú¦³±N E6:E16¿ï°_¨Ó±Æ§Ç¡A½s¸¹·|³Q±Æ¨ì³Ì«á¡A¤]´N¬O»¡ ³o­Ó ARRAY ¨S¦³·Ó»¼¼W±Æ¦C¡A¨º A001¦³°ÝÃD¡A¨ä¥¦B001 C001 À³¸Ó³£¦³¤@¼Ëªº°ÝÃD¤~¬O¡H
¤@¶}©l§Ú¶}©l³]­p®É´N¬O¨S¬Ý¨ì°ÝÃD¡A©Ò¥H¤@ª½¼g¤U¥h¡Aµ¥¾ã­Ó¼g§¹¤§«á¡A¤~·|°¸¦Óµo¥Í¡A¥u¦³¤@­Ó A001ªº°ÝÃD¡]·Ð¦º¤F¡^
¦pªG¤@¶}©l´N¬Ý¨ì¾ãÅé©Êªº°ÝÃD¡A§Ú´N·|¥Î =MATCH(E7,E:E,0) ¦Ó¤£·|¥Î 1 ¡]­«ÂI¬O¾ã­Ó³£¼g§¹¾ã¡A¤@§ï¤U¥h¤S¬O¤@°ïBUG­n§ì¡^:'(
¤½¶}¸gÅç¡A³Ð³y´¼¼z¡]§Ú¤S¤£¾a³o¹L¬¡¡^

TOP

¦^´_ 3# eigen

§A¥ý§ä "LOOKUP ¤G¤Àªk" ¬Ý¬Ý¬ÛÃö¤º®e¡A¦A¬Ý¬Ý§Ú¦^ÂЪºÂ²­n»¡©ú´N¯àÀ´¡C

LOOKUP ¤G¤Àªk¤U¦Cºô­¶¦³±´°Q
http://club.excelhome.net/thread-872105-1-1.html
   
PS: VLOOKUP(..., ..., 1) »P LOOKUP(..., ...) ¬d¸ß¤è¦¡¬Û¦P


­Y¨Ï¥Î MATCH(..., ..., 0) ´N¤ñ¸û¨S¦³³o¨Ç°ÝÃD
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¥»©«³Ì«á¥Ñ ML089 ©ó 2017-5-10 18:50 ½s¿è

¦^´_ 3# eigen

³o¸ò1­Ó©Î2­Ó¨S¦³Ãö«Y

§A§âE6¤º®e"½s¸¹"§R°£¡A´N·|¹ï¤F

E6¤º®e"½s¸¹" > E7 ¤º®e"A0001"¡A´N¬O¤£²Å¦X¸ê®Æ¤º®e­nº¥¤jªº³W«h(·íVLOOKUP(..., ..., 1)®É)
·í ¤º®e"A0001" ¦³2µ§®É¤£·|¿ù¡A¬O¦]¬°¬d¸ß®É·í¦n¨S¦³³QÀˬd¨ì¡AVLOOKUP¦p¦ó¬d¸ß¤W«Ê¤w¸g¦³»¡©ú¤F¡C
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 4# ML089


    ÁÂÁ¡A§Ú¬Ý§¹¤G¤Àªk¤F ¡A§Úª¾¹D°ÝÃD¥X¦b¨º¤F~~~±q¤¤¶¡©¹¤W§ä A001

¦b¥u¦³¤@­Óªº±¡ªp¤U¡A§ä¨ì²Ä¤@­Ó¡A¥²»Ý¦A©¹¤W§ä¨ì¥t¤@­Ó  ¡y¤p©óµ¥©ó¡zªº­È¡Aµ²ªG§ä¨ì ½s¸¹¡AµM«á´N #N/A ¤F

¦pªG¦³¨â­Ó¡A±q¤¤¶¡©¹¤W§ä¨ì²Ä¤G­Ó A001 ¡A¦A©¹¤W§ä¨ì¥t¤@­Ó ¡y¤p©óµ¥©ó¡zªº­È¡A´N¯à½T©w ²Ä¤G­Ó A001 ªº¦ì¸m¥¿½T~~

¨ä¥¦ªº B001 C001 ¦]¬°©¹¤W©Î©¹¤U¡AÁÙ¯à§ä¨ì¤p©óµ¥©óªº­È¡A©Ò¥H¨S¦³ #N/A

©Ò¥H¦b²{ªp¤U¡A§Ú¥i¯à¯uªº­n¤j§ï¡A§ï¥Î MATCH (,,0) ª½±µ§ä¤@¼Ëªº~~

ÁÂÁ§Aªº«ü¾É~~~:handshake
¤½¶}¸gÅç¡A³Ð³y´¼¼z¡]§Ú¤S¤£¾a³o¹L¬¡¡^

TOP

        ÀR«ä¦Û¦b : ±o²z­nÄǤH¡A²zª½­n®ð©M¡C
ªð¦^¦Cªí ¤W¤@¥DÃD