Board logo

¼ÐÃD: [Âà¶K] °Q½×¤£­«½Æ²M³æ [¥´¦L¥»­¶]

§@ªÌ: Hsieh    ®É¶¡: 2010-6-18 23:41     ¼ÐÃD: °Q½×¤£­«½Æ²M³æ

¥»©«³Ì«á¥Ñ Hsieh ©ó 2010-6-19 11:08 ½s¿è

http://gb.twbts.com/index.php/topic,466.0.html
¯¸¥H¤W³sµ²´¿¸g°Q½×¹L¦¹¤@°ÝÃD
¨ä¤¤ªþ¥ó¤j³£¿ò¥¢,§â¥LÂk¯Ç¤@¤U¨Ñ¤j®a°Ñ¦Ò
¦³§ó¦n¤½¦¡ÅwªïÄ~Äò°Ñ»P°Q½×
[attach]1327[/attach]
§@ªÌ: zz5151353    ®É¶¡: 2010-6-30 15:41

¤£¿ù
¤p§Ì¤]¨Ó¼ö¾x¤@¤U

{=INDEX(A:A,SMALL(IF(MATCH(A$2:A$100&"",A$2:A$100&"",)=ROW($2:$100)-1,ROW($2:$100),4^8),ROW(1:1)))&""}
§@ªÌ: basarasy    ®É¶¡: 2010-6-30 22:12

¥»©«³Ì«á¥Ñ Hsieh ©ó 2010-6-30 22:23 ½s¿è

ÁÂÁ Hsieh©Mzz5151353ª©¥D.
§Ú¤£¯à¤U¸ü><

³o­Ó¦pªG­n«ü©w¦a¤è  D3:D40  ½Ð°Ý­n¦pªG§ï?
{=INDEX(A:A,SMALL(IF(MATCH(A$2:A$100&"",A$2:A$100&"",)=ROW($2:$100)-1,ROW($2:$100),4^8),ROW(1:1)))&""}
§@ªÌ: Hsieh    ®É¶¡: 2010-6-30 22:28

¦^´_ 3# basarasy

{=INDEX(A:A,SMALL(IF(MATCH(A$2:A$100&"",A$2:A$100&"",)=ROW($2:$100)-1,ROW($2:$100),4^8),ROW(1:1)))&""}
    ¦¹¤½¦¡¸ê®Æ½d³ò¬OA2:A100
§A¥i®M¥Î¬Ý¬Ý±N$A$2:$A$100§ï¦¨§Aªº¸ê®Æ½d³ò$D$3:$D$40
{=INDEX(A:A,SMALL(IF(MATCH($D$3:$D$40&"",$D$3:$D$40&"",)=ROW($3:$40)-1,ROW($3:$40),4^8),ROW(1:1)))&""}
§@ªÌ: basarasy    ®É¶¡: 2010-7-1 00:55

¥»©«³Ì«á¥Ñ gong ©ó 2010-7-1 08:24 ½s¿è

¦^´_ 4# Hsieh

¹Ï1 d5·|¦³ ªÅ®æ   ¤½¦¡{=INDEX(A:A,SMALL(IF(MATCH(A$2:A$100&"",A$2:A$100&"",)=ROW($2:$100)-1,ROW($2:$100),4^8),ROW(1:1)))&""}

¹Ï2 ¨S¦³¥X¼Æ  ¤½¦¡{=INDEX(A:A,SMALL(IF(MATCH($D$3:$D$40&"",$D$3:$D$40&"",)=ROW($3:$40)-1,ROW($3:$40),4^8),ROW(1:1)))&""}
§@ªÌ: zz5151353    ®É¶¡: 2010-7-1 07:52

½Ð¤W¶ÇÀɮקa

{=INDEX(D:D,SMALL(IF((D$3:D$40<>"")*MATCH(D$3:D$40&"",D$3:D$40&"",)=ROW($3:$40)-2,ROW($3:$40),4^8),ROW(1:1)))&""}
§@ªÌ: basarasy    ®É¶¡: 2010-7-1 08:03

¥»©«³Ì«á¥Ñ gong ©ó 2010-7-1 08:23 ½s¿è

¦^´_ 6# zz5151353

ÁÂÁÂzz¤j¤j.
¤j¤j±Ðªº³o­Ó¨S¦³°ÝÃD¤F.
{=INDEX(D:D,SMALL(IF((D$3:D$40<>"")*MATCH(D$3:D$40&"",D$3:D$40&"",)=ROW($3:$40)-2,ROW($3:$40),4^8),ROW(1:1)))&""}
§@ªÌ: wqfzqgk    ®É¶¡: 2010-7-1 13:14

还¬O2007¥H¤Wª©¥»ªº删°£­«Î`­È来ªº§Ö¤@¨Ç
§@ªÌ: wqfzqgk    ®É¶¡: 2010-7-1 13:15

¦bVBA¤¤¤@¯ë¥Î¶°¦X©Î¦r¨å¡A°µ个¦Û©w义¨ç数
§@ªÌ: PD961A    ®É¶¡: 2010-7-1 13:25

¯¸¥H¤W³sµ²´¿¸g°Q½×¹L¦¹¤@°ÝÃD
¨ä¤¤ªþ¥ó¤j³£¿ò¥¢,§â¥LÂk¯Ç¤@¤U¨Ñ¤j®a°Ñ¦Ò
¦³§ó¦n¤½¦¡ÅwªïÄ~Äò°Ñ»P°Q½× ...
Hsieh µoªí©ó 2010-6-18 23:41



    ½Ð°Ýª©¥D¤Î¦U¦ì¥ý¶i
¤U¸ü³o­ÓÀÉ®×ùتº¤º®e³£¾ã²z¦n¤F
¥i¬O¨C°µ¤@­Ó°Ê§@
³£·|¦³¤@ª½"­«ºâÀx¦s®æ"ªº°Ê§@
½Ð°Ý¦U¦ì¥ý¶i¤U¸ü«áªºÀÉ®×·|¦³³o¼Ëªº±¡§Î¶Ü?

[attach]1572[/attach]


[attach]1573[/attach]


[attach]1574[/attach]




­Y¨S¦³¤j·§¬O¦Û¤vEXCELªº°ÝÃD¤F....ÁÂÁÂ
§@ªÌ: Hsieh    ®É¶¡: 2010-7-1 16:22

¦³¤½¦¡·íµM´N·|­«ºâ
°£«D§A§â¤u¨ã/¿ï¶µ¤¤ªº¦Û°Ê­«ºâ§ï¤â°Ê
§@ªÌ: asimov    ®É¶¡: 2010-7-1 22:25

¦^´_ 10# PD961A


°}¦C¤½¦¡¬O¤@ºØ´`Àô¦¡­pºâªº±j¤j¥\¯à¡AÁöµM¦n¥Î¡A¦ý¤]¦³¯ÊÂI
­É¥Îzz5151353 ª©¥D¤½¦¡»¡©ú
{=INDEX(A:A,SMALL(IF(MATCH(A$2:A$100&"",A$2:A$100&"",)=ROW($2:$100)-1,ROW($2:$100),4^8),ROW(1:1)))&""}
µuµuªº¤@¦æ¦@¨Ï¥Î¤F INDEX¡BSMALL¡BIF¡BMATCH¡BROWµ¥¦Ü¤Ö5­Ó¨ç¼Æ
¦Ó¨ä­pºâ½d³ò¦³99¦C(ROW($2:$100))
¦pªG±N¦¹¤½¦¡½Æ»s10­Ó¡ACPUªº­t¾á¤w¸g¦³ÂI­«

¤S¦pªG­pºâ½d³ò¬O3000¦C¡A¤½¦¡½Æ»s¬°12­Ó¤ë¡A¤S¦³10´X¶µ­n²Î­p¡A·Q·íµMº¸¡ACPU¤@©w¶]±o®ð³Ý¦S¦S
¸Õ¹L¶]¤@­Ó­«·s­pºâ¥i¥H³Ü¤@ªM©@°Ø¡A¤@ÂI¤]¤£¸Ø±i
©Ò¥H´î¤Ö¨Ï¥Î¤j¶qªº°}¦C¤½¦¡¡A¦³§U©ó´£¤É¤u§@®Ä²v³á
§@ªÌ: gong    ®É¶¡: 2010-7-1 23:46

¦^´_  PD961A


°}¦C¤½¦¡¬O¤@ºØ´`Àô¦¡­pºâªº±j¤j¥\¯à¡AÁöµM¦n¥Î¡A¦ý¤]¦³¯ÊÂI
­É¥Îzz5151353 ª©¥D¤½¦¡»¡ ...
asimov µoªí©ó 2010-7-1 22:25


ÃÙ¦¨!
¤Ö¥Î°}¦C¤½¦¡
¥i¥H´î¤Ö­«½Æ¹Bºâ

¯Â¬ã¨s¥i¦æ,¦p¥Î©ó¹ê°È¤W¸g±`·|¶]¤£°Ê
´X¥G¤£·|¥Î©ó¹ê°È¤W
°ò¥»¤W°}¦C¤½¦¡¥i³z¹L»²§UÄæ¥i¥H»´ÃP§¹¦¨
§@ªÌ: victorl    ®É¶¡: 2010-7-2 01:10

¦^´_ 10# PD961A


    "­«ºâÀx¦s®æ"¥¿±`²{¶H¡A¦pªG¤£·Q"­«ºâÀx¦s®æ"¥i¥H¥Îªþ¹Ï¤èªk¸Ñ°£¡ABut §ï¦¨¤â°Ê«á´N¤£·|¦Û°Ê³B²z¤F³á

[attach]1589[/attach]

ªþ¹Ï¬° ¤u¨ã > ¿ï¶µ ³]©wªº¿ï³æ
§@ªÌ: PD961A    ®É¶¡: 2010-7-2 07:04

¦^´_ 14# victorl
¦^´_ 13# gong
¦^´_ 12# asimov

©Ò¥Hµ²½×
1."­«ºâÀx¦s®æ"¬O¥¿±`²{¶H
2.©Ò¥H´î¤Ö¨Ï¥Î¤j¶qªº°}¦C¤½¦¡¡A¦³§U©ó´£¤É¤u§@®Ä²v³á
3.¯Â¬ã¨s¥i¦æ,¦p¥Î©ó¹ê°È¤W¸g±`·|¶]¤£°Ê
   ´X¥G¤£·|¥Î©ó¹ê°È¤W
   °ò¥»¤W°}¦C¤½¦¡¥i³z¹L»²§UÄæ¥i¥H»´ÃP§¹¦¨

«D±`ÁÂÁ¦U¦ì¥ý¶i¤Îª©¥Dªº¦^µª
§@ªÌ: PD961A    ®É¶¡: 2010-7-2 07:08

¦^´_ 15# ¦Ñ®L

ÁÂÁ®Lª©¥D
§Úı±o±z³o­Ó³Ì¦n¥Î
¦Ó¥B¤£·|·í¾÷.....¤S¤£¥Î³Ü©@°Øµ¥®É¶¡...

[attach]1591[/attach]


ÁÂÁ±z
§@ªÌ: gong    ®É¶¡: 2010-7-2 08:56

¥»©«³Ì«á¥Ñ gong ©ó 2010-7-2 09:13 ½s¿è

­«Âиê®Æ¦bAÄæ

¥[»²§UÄæB
B2=IF(COUNTIF(A$2:A2,A2)=1,MAX(B$1:B1)+1,"")
¤U©Ô

¤£­«ÂмƾÚ
C2=IF(ROW()>MAX(B:B),"",INDEX(A:A,MATCH(ROW()-1,B:B,0)))
¤U©Ô
§@ªÌ: OFFICE±M®a    ®É¶¡: 2011-1-7 22:10

¥»©«³Ì«á¥Ñ OFFICE±M®a ©ó 2011-1-7 22:37 ½s¿è

³o«h¸Ì­±¦³
[­ì³Ð] Excel ¶i¶¥¿z¿ï¤j¥þ
§@ªÌ: charce    ®É¶¡: 2012-1-3 03:55

¥»©«³Ì«á¥Ñ charce ©ó 2012-1-3 04:01 ½s¿è

¦^´_ 17# gong
­Ó¤H¼±¥é¤W¤ègongªº¨ç¼Æ¶i¦æ½m²ß¡Aµo²{Á`¬O·|¯Ê±¼³Ì«áªº¤@µ§¸ê®Æ
°ÝÃD¬O¥X¦b¨ºÃä©O¡H¥i¤£¥i¥H«ü¥¿¤@¤U
ÁÂÁ±z

§@ªÌ: ANGELA    ®É¶¡: 2012-1-3 09:53

=IF(ROW(1:1)>MAX(B:B),"",INDEX(A:A,MATCH(ROW()-1,B:B,0)))
§@ªÌ: charce    ®É¶¡: 2012-1-4 04:54

¦^´_ 20# ANGELA
ÁÂÁÂ ANGELA
¤w¸g¸Ñ¨M°ÝÃD¤F
§@ªÌ: sunnyso    ®É¶¡: 2013-4-30 22:53

¦^´_ 17# gong

·PÁ gong ¤j¤j, ¤S¾Ç¨ì¤@ºØ¤èªk.

¤£¹L¥Î°ÊºA½d³ò­n¤ñ¥Î MAX §ó¦³®Ä²v.

¼Æ¾Ú¦bAÄæ

¥[»²§UÄæI, J
I2 =COUNTIF(OFFSET($A2,,,COUNTA(A:A)-1,),A2)
J1 = 0
J2 =MATCH(1,OFFSET($I$2,J1,,COUNTA(A:A)-1,),0)+J1
¤U©Ô

¤£­«ÂмƾÚ
K2 = IFERROR(INDEX(A:A,J2+1),"")
¤U©Ô

====================================
¥Î¦r¨åªk¼g¤FVBA Function UNIQUEp

N2=IFERROR(UNIQUEp(A:A,ROW()),"")
¤U©Ô

¤£ª¾­þ¦ì¤j¤j¥i§_¼g¤@¬qcode¨Ó­pºâ¤@¤U¦UºØ¤èªk©Ò»Ýªº­pºâ®É¶¡
  1. Function UNIQUEp(source As Range, num As Integer)
  2.     Dim newArray, myArray As Variant
  3.     rows_num = source.Rows.Count
  4.     'myArray = Range(Cells(source.Row, source.Column), Cells(source.Row + rows_num - 1, source.Column)).Value
  5.     myArray = Sheets(source.Parent.Name).Range(source.Address).Value
  6.    
  7.     Set Dic = CreateObject("scripting.dictionary")
  8.     For i = 1 To rows_num
  9.     If myArray(i, 1) <> "" Then
  10.         Dic((myArray(i, 1))) = ""
  11.     End If
  12.     Next
  13.    
  14.     arr = Dic.Keys
  15.    
  16.     UNIQUEp = arr(num - 1)
  17. End Function
½Æ»s¥N½X
[attach]14835[/attach]
§@ªÌ: sunnyso    ®É¶¡: 2013-4-30 23:49

¥»©«³Ì«á¥Ñ sunnyso ©ó 2013-4-30 23:50 ½s¿è

¦^´_ 11# Hsieh
¦^´_ 13# gong

­è­è·Q¨ì¥t¤@ºØ¤èªk¤£¥Î MAX, LARGE µ¥°}¦C¨ç¼Æ©M°ÊºA½d³òªº¤èªk, (¥»¨Ó¥H爲MAX, LARGEµ¥°}¦C¨ç¼Æªº®Ä²v¸û§C), ¤£¹L¦n¹³ÁÙ¬O°ÊºA½d³ò¦³®Ä²v

¼Æ¾Ú¦bAÄæ

¥[»²§UÄæO
O1 = 0
O2 = IF(COUNTIF(A$2:A2,A2)=1,((8*SUM(L$1:L1)+1)^0.5-1)/2+1,"")
¤U©Ô

¤£­«ÂмƾÚ
P2 = INDEX(A:A,MATCH(ROW(A1),O:O,0))
¤U©Ô

¯uªº·Qª¾¹D­þºØ¤èªk³Ì¦³®Ä²v. ½Ð¤j¤j¼g¤@¬qcode¨Ó­pºâ¤@¤U¦UºØ¤èªk©Ò»Ýªº­pºâ®É¶¡
[attach]14836[/attach]




Åwªï¥úÁ{ ³Â»¶®a±Ú°Q½×ª©ª© (http://forum.twbts.com/)