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

[µo°Ý] (¤w¸Ñ¨M)ªÑ¥«¶R½æÂI¥i¥H¥Î¦r¨å°µ¶Ü

[µo°Ý] (¤w¸Ñ¨M)ªÑ¥«¶R½æÂI¥i¥H¥Î¦r¨å°µ¶Ü

¥»©«³Ì«á¥Ñ freeffly ©ó 2012-5-25 16:29 ½s¿è

SÄ楫¦¬½L»ù>10§¡¥B>20§¡±o¥Xªºµ²ªG
TÄæ«h¬O¤W­±ªº¬Û¤Ï
§Ú¥»¨Ó¬O·Qª½±µ§ì¥XUÄ檺¸ê®Æ(²Ä¤@­Ó²Å¦Xªº¸ê®Æ¤Î³Ì«á¤@­Ó)
¦ý¬O§Ú¤£ª¾¹D¦bVBA¤¤¬O§_¦³¤èªkª½±µ§ì¥X¨Ó
°µ¥XUÄ檺¸ê®Æ§Ú·Q°µ¥XW2:Y2³o¼Ëªº¸ê®Æ
´N¬Oºâ¥X¨C¤@¦¸²Å¦Xªº±¡ªp¤Uªº®t²§
¤£ª¾¹D³o­Ó¦³¿ìªk¼g¥X¨Ó¶Ü
³Ìªñ¦b¾Ç¦r¨å¤£¹LÁÙ¦b±µÄ²·í¤¤ÁÙ¨S¤@­Ó·Qªk
½Ð°ª¤â¨ó§U


100000.rar (473.87 KB)
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

¦^´_ 14# jsleee


    §K¶O¥æ©ö³nÅé¸Ì­±ªº¸ê®Æ
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

¦^´_ 1# freeffly


½Ð±Ð¤j¤j¡A§AÀɮפ¤ªº ¤j½L¸ê®Æ ¬O¦p¦ó¨ú±oªº¡H
¬O³z¹LÂ^¨úºô­¶¸ê®Æªº¤è¦¡¶Ü¡H¦³µL¬ÛÃöªºµ{¦¡½X¥i¥H¤À¨É
ÁÂÁÂ

TOP

¦^´_ 12# Hsieh


    ª©¥DÁ¿ªº¦n¸Ô²Ó
   Åý§Ú¦³¨Ç²z¸Ñ
   §Ú·Q§Ú¥i¯à­n³z¹L«Ü¦h¨Ò¤l¤~¯à¦Û¤v¹B¥Î
   
   ÁöµM¦r¨å¤£¬O°ß¤@¤èªk
   ¦ý¬O¦r¨å«Ü¬¯
   ¦Ó¥B³t«×«Ü§Ö
   Åý§Ú·Q­n¾Ç²ß
   
   ¦A¨Óª¦¤å...
    ¸ô³~ÁÙ¯u»»»·
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

¦^´_ 11# freeffly


    ¦r¨åÅU¦W«ä¸q¡A¨C­Ó¯Á¤Þ­È(key)·|¹ïÀ³¤@­Ó¤º®e(item)
´N¦p¦P°ê»y¦r¨å¡A­Y¥H³¡­º¬d¸ß¡A¦P³¡­ºªº¦r·|«Ü¦h
³¡­º´N¬O¯Á¤Þ­È¡A¦Ó³o¨Ç¤£¦Pªº¦r´N¬O¤º®e
¦pªG¯Á¤Þ­È¹ïÀ³ªº¤º®e¬O³æ¤@¶µ¥Ø¡A¨º´N¤ñ¸û®e©ö²z¸Ñ
dictionary(key)=item
·í¹ïÀ³¤º®e¤£¥u¤@­Óªº®É­Ô¡A§A´N­n¬Ý§Aªº¤º®e­nªº¬O¬Æ»ò?
¦b¦¹½d¨Ò¤¤¡Akey¬O¤é´Á
·í±ø¥ó¦¨¥ßªº®É­Ô­n§â³o¤é´Áªº¦¬½L»ù¬ö¿ý¤U¨Ó
·íµM³o¬O³æ¤@¤º®e¡A¤£¹L¡A·í§A­n¼g¤J¤u§@ªí®É
¬O­n¦³3Ä檺¸ê®Æ:1.¤é´Á¡A2.¦¬½L»ù¡A3.»ù®t
³o­Ó»ù®t¬O2­Ó¤é´Áªº®tÃB¡A­Y­n¦b¦r¨å¤º¨ú±o«e¤@­Óªº»ù®æ¡A·|¼W¥[³\¦h§xÃø
©Ò¥H¡A±N²Ä3Äæ¥Î¤½¦¡±a¤J¡A¦b¸Ó¦³¤½¦¡ªº®É­ÔÅý°}¦Cªº²Ä3­Ó¤¸¯À¼g¤J¤½¦¡
³o¼Ë¶]§¹¥þ³¡¸ê®Æ«á¡A¦r¨å´N·|¦³­Y¤z­Ókey
¦r¨åªºcountÄÝ©Ê´N¬Okeyªº¼Æ¶q
keys«hªí¥Ü©Ò¦³ªº¯Á¤Þ­È¡A©Ò§Î¦¨ªº°}¦C
items«hªí¥Ü©Ò¦³ªº¤º®e
¦]¬°¦¹½d¨Ò¤¤¨C­Óitem³£¬O¤@­Ó¤@ºû°}¦C
©Ò¥Hitems´Nµ¥©ó¬O¤Gºû°}¦C
³oÃä­nª`·N¤@ÂI¡A¦pªG¤Gºû°}¦C¡A­ì¥»¥u­nª½±µ¼g¤JÀx¦s®æ§Y¥i
¦b³oÃäitems³o­Ó¤Gºû°}¦C¡A¹ê»Ú¤W¥L¬O¤@ºû°}¦C¡A¥u¤£¹L³o­Ó¤@ºû°}¦Cªº¨C­Ó¤¸¯À³£¥]§tµÛ¤@­Ó¤@ºû°}¦C
©Ò¥H¥²¶·¨Ï¥Î¨â¦¸ªºÂà¸m(Transpose)°Ê§@¡A¤~·|Åܦ¨¯u¥¿ªº¤Gºû°}¦C¡A¤~¥iª½±µ¼g¤J¤u§@ªí
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 10# Hsieh


    ª©¥D
   ³o¬O§Ú­nªº
   ¦Ó¥B¤£¥Î¸g¹LSÄæ
   ¦r¨åªGµM«Ü§Ö
    ¤£¹L¤U­±¹ï§Ú¦Ó¨¥¦³ÂI¥È
    f = IIf(d.Count > 0 And d.Count Mod 2 > 0, "=RC[-1]-R[-1]C[-1]", "")
      d(Ar(i, 1)) = Array(Ar(i, 1), Ar(i, 5), f)
      .[W2].Resize(d.Count, 3) = Application.Transpose(Application.Transpose(d.items))

    ¬Ý¾é´X¤Ñªº¦r¨å §Ú¥H¬°¦³ÂI²z¸Ñ¦r¨å²{¦b¤S·PıÂ÷§Ú§ó»»»·
   §Ú¥H¬°d.count ¬O¥h­pºâ±M®×¼Æ À³¸Ó­n¥ý¦³ªF¦èÅý¥Lºâ§a?
   d.items¦b³o¸Ì¬O¤°»ò¶µ¥Ø?
   ¥i¥H±q­þ¸Ì¬Ý¨ì¶Ü?
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

¦^´_ 9# freeffly
  1. Sub ex()
  2. Set d = CreateObject("Scripting.Dictionary")
  3. Dim f$
  4. With Sheet1
  5. ar = .UsedRange.Offset(1).Value
  6. For i = 2 To UBound(ar, 1) - 1
  7.    If ar(i, 5) > ar(i, 8) And ar(i, 8) > ar(i, 9) And ar(i, 8) > 0 And ar(i, 9) > 0 Then
  8.       If ar(i - 1, 9) = 0 Or ar(i - 1, 8) = 0 Or _
  9.       Not (ar(i - 1, 5) > ar(i - 1, 8) And ar(i - 1, 8) > ar(i - 1, 9)) Or _
  10.       Not (ar(i + 1, 5) > ar(i + 1, 8) And ar(i + 1, 8) > ar(i + 1, 9)) Then
  11.       f = IIf(d.Count > 0 And d.Count Mod 2 > 0, "=RC[-1]-R[-1]C[-1]", "")
  12.       d(ar(i, 1)) = Array(ar(i, 1), ar(i, 5), f)
  13.       End If
  14.    End If
  15. Next
  16.      .[W2].Resize(d.Count, 3) = Application.Transpose(Application.Transpose(d.items))
  17. End With
  18. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 3# Hsieh


    ª©¥D
   §Úªº±ø¥ó¬O¦¬½L>10§¡  10§¡>20§¡ 10§¡>0 20§¡>0
    §AªºÀ³¸Ó¬O¦¬½L>10§¡  ¦¬½L>20§¡ 10§¡>0 20§¡>0
    ¼È¥B¤£½×­þ¤@ºØ¤ñ¸û¦n
   §Ú·Qª¾¹Dªº¬O«ç¼Ë¨ú¥X±ø¥ó°_©l¸òµ²§À­È
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

¦^´_ 7# register313


    ¤j¤j¨S¿ù
   ­è­è¸Õ¤F§Aªº·s¥N½X¶]«Ü¤[
   ¤]³\¥u¯à¥Î»²§UÄæ¤F
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

¦^´_ 6# freeffly
¦^´_ 3# Hsieh

¦¬½L>§¡»ù10  ¥B §¡»ù10>§¡»ù20 ¥B §¡»ù10>0        ¥B §¡»ù20>0
±ø¥ó¬O³o¼Ë¶Ü?

TOP

        ÀR«ä¦Û¦b : §g¤l¬°¥Ø¼Ð¡A¤p¤H¬°¥Øªº¡C
ªð¦^¦Cªí ¤W¤@¥DÃD