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

[µo°Ý] ­n¦p¦óÅã¥Ü ¤@¼Ë¦r¦ê¨ì¤U¤@­Ó£¸¼Ë¦r¦ê¤¤¶¡¦³´X®æ

[µo°Ý] ­n¦p¦óÅã¥Ü ¤@¼Ë¦r¦ê¨ì¤U¤@­Ó£¸¼Ë¦r¦ê¤¤¶¡¦³´X®æ

¨Ò¦p:
AAAAa123
1
2
12
1
3
13

AAAAa123
4
8
52
1
.
.
.
AAAAa123¨ì¤U¤@­ÓAAAAa123¤¤¶¡®æ¼Æ¦Û°ÊÅã¥Ü¤ñ¹ï

«Øij¤W¶ÇÀÉ®×, ¨Ã¼ÒÀÀµ²ªG!

TOP

¥»©«³Ì«á¥Ñ hcm19522 ©ó 2016-4-6 10:35 ½s¿è

http://blog.xuite.net/hcm19522/twblog/399797599

TOP

B1 =IFERROR(MATCH(A1,A2:A9999,),"")
¤U©Ô½Æ»s¤½¦¡
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 3# hcm19522

ÁÂÁ§A´£¨Ñªº¸ê°T~§¹¥þ²Å¦X»Ý¨D
§Ú·QÁA¸Ñ­Ó¨ç¼Æªº·N«ä ¦]¬°Åª¤£¤ÓÀ´
=LOOKUP(1,0/(B2:B11="AA"),ROW(B2:B11))-MATCH("AA",B:B,)-1
1. lookup_value ¬°¤°»ò¬O1
2. lookup_vector ,0/(B2:B11="AA")     0/¬O¤°»ò¥Î·N
3.-MATCH("AA",B:B,)-1 ³o¬q¬O¤°»ò·N«ä

¤£¦n·N«ä ³Â·Ð¤F

TOP

0/¥ô¦ó¼Æ = 0»PµL·N¸q¤GºØ ,0/(B2:B11="AA")-->0 ,0/(B2:B11<>"AA")-->µL·N¸q ,©Ò¥H 1 > 0/(B2:B11="AA") ,LOOKUP(1,~ ¸õ¹LµL·N¸q¨ú¾ã¦C¼Æ¦r³Ì«á 0ªº­È©Î¦ì¸m¹ïÀ³ªº­È "ROW(B2:B11)" ;¦pB8±ø¥ó¦¨¥ß ,¸õ¹LB9:B11 ,¨úB8¦ì¸m«á­± "ROW(B2:B11)" ¹ïÀ³ªº­È-->8
MATCH¬Û¤Ï ,¸õ¹LµL·N¸q¨ú¾ã¦C¼Æ¦r³Ì«e­± 0 (0/±ø¥ó¦¨¥ß)ªº­È©Î¦ì¸m¹ïÀ³ªº­È ;¥»ÃDB:B="AA"¦ì¸m¬O3
(BLOG ¤w¶K)

TOP

        ÀR«ä¦Û¦b : ¥Ç¿ù¥XÄb®¬¤ß¡A¤~¯à²M²bµL·Ð´o¡C
ªð¦^¦Cªí ¤W¤@¥DÃD