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

¤½¦¡»P°ò¥»§Þ¥©ºt½m

¤½¦¡»P°ò¥»§Þ¥©ºt½m

¤U¤F­Ó¸ê®ÆÀÉ¡A¥i®³¨Ó½m²ß¤½¦¡»P°ò¥»§Þ¥©¡C¾A¦X·s¤â½m²ß¥Î¡I
ºî¦Xºt½m.rar (90.29 KB)

·PÁ§Aªº¤À¨É

TOP

¥»©«³Ì«á¥Ñ ky2599y ©ó 2011-8-16 21:19 ½s¿è

¼Ï¯Ã¡÷ª½±µ¨ì¼Ï¯Ãªí¸Ì¥h³]Àx¦s®æ®æ¦¡

456.JPG (123.94 KB)

456.JPG

Kenny

TOP

¼Ï¯Ã¡÷±N®æ¤l½Æ»s¨ì¥kÃä¡÷¿é¤J¤½¦¡
    IF(C5<65,"C",IF(C5<85,"B","A"))

123.JPG (241.39 KB)

123.JPG

Kenny

TOP

¸g¤j«ü¥¿¡Aª¾¹D¦Û¤v¿ù¦b¤F­þ¸Ì

¥»©«³Ì«á¥Ñ zeny ©ó 2011-8-14 13:26 ½s¿è
¦^´_  zeny
³o¨ÇÀx¦s®æ¤º®e³£Åܦ¨¤F¤é´Á
³o¬O§A¨Ï¥Îbbªº½t¬G
¦Û­q®æ¦¡§ï¦¨
[>=85]!A;[>=65]!B;C
Hsieh µoªí©ó 2011-8-12 22:08



   ¬Oªº¡A¬Oªº¡A§Ú¨S¦³ª`·N¨ì¤j¤j¤§«e¼gªº
B­ì«h¤W¤]ºâ«O¯d¦r
­Y¿é¤JB¡AEXCEL·|¦Û°Ê§ï¦¨bb
Åã¥Ü¼Æ­È¥H1900¦~¬°43°_ºâªº¦~«×
1900¦~¤é´ÁÅã¥Ü¦¨43
1901¦~¤é´ÁÅã¥Ü¦¨44
¥H¦¹Ãþ±À
¥[¤WÅå¹Ä¸¹!©Î¤Ï±×½u\©Î¥ÎÂù¤Þ¸¹""
³£¥Nªí¨Ï¥Î¦r¤¸
¥u¬O¤Ï±×½u·|³QEXCEL¦Û°ÊÂনÅå¹Ä¸¹

²{¦b¤w¸g¦¨¥\¤F¡C
¯u¬O¶V¾Ç¡A¶Vı±o¦Û¤v²LÁ¡
ÁÂÁ¤j¤j¡C
pivotetable©Mvlookupºî¦XÀ³¥Î.rar (11.21 KB)
§Ú³ß欢 excel

TOP

¦^´_ 20# zeny
³o¨ÇÀx¦s®æ¤º®e³£Åܦ¨¤F¤é´Á
³o¬O§A¨Ï¥Îbbªº½t¬G
¦Û­q®æ¦¡§ï¦¨
[>=85]!A;[>=65]!B;C
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

«Ü´o¤H¡A ¦³­Ó43¤Àªº®æ¦¡¦Û©w¡A´N¬OÂà´«¤£¦¨C

pivotetable©Mvlookupºî¦XÀ³¥Î.rar (10.85 KB)

«Ü´o¤H¡A ¦³­Ó43¤Àªº®æ¦¡¦Û©w¡A´N¬OÂà´«¤£¦¨C
§Ú³ß欢 excel

TOP

¦^´_ 40# Hsieh
¦hÁÂH¤j«üÂI

§Ú«Ü³ßÅwpivot table¨º­Ó¸Ñ¨M¿ìªk,§Ö±¶±o«Ü(ÁÙ¦³¬O«ç¼Ë¿ý»s¼v¤ùªº?)
80 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¥»©«³Ì«á¥Ñ Hsieh ©ó 2011-3-17 08:48 ½s¿è

¦^´_ 39# FAlonso
³o½g­«ÂI¦b©ó°ò¥»§Þ¥©ºt½m¡A¨Ã¤£¹ªÀy¨Ï¥ÎVBA©Î¨ç¼Æ¸ÑÃD
¬JµM¥S¥x¨Ï¥ÎVBA¨Ó°µ¡A¦Ó¥B±z¤]´£¨ì¤@¨ÇVBA¨Ï¥Î¤Wªº§xÂZ
©³¤Uµ{¦¡½X¨Ñ±z°Ñ¦Ò¬Ý¬Ý
±z·|µo¥Í¿ù»~­ì¦]¥i¯àµo¥Í¦b
dictionaryª«¥ó¥[¤J¶µ¥Øªº¤èªk
±z¨Ï¥Î¤Fadd¤èªk¨Ó¥[¤J¶µ¥Ø
dictionaryª«¥ó¦³¤@­Ó¯S©Ê¡A´N¬O¯Á¤Þ­È¤£¯à­«ÂÐ
·íadd¤èªk¥[¤J¯Á¤Þ®É¡A­Y¸Ó¯Á¤Þ­È¤w¸g¦s¦b´N·|²£¥Í¿ù»~
ÁקK¦¹±¡ªpµo¥Í¡A¥i¥Îexists¤èªk¥ý§PÂ_¯Á¤Þ­È¬O§_¦s¦b¡AµM«á¦A¨M©w¬O§_¥[¤J
¦b±zªº¬yµ{¤¤dictionaryª«¥ó¬O¥Î¤£¨ìªº
¦Ó©³¤Uµ{¦¡½X§Q¥Îªº¤èªk¬Oª½±µ«ü©w¯Á¤Þ­È¹ïÀ³ªº­È
³o¼Ë¡A­È·|§ïÅÜ¡A¦ý¤£·|¦³­«½Æ¯Á¤ÞºÃ¼{
¦A«h±z´£¨ì³t«×°ÝÃD
¥[§Ö³t«×ªº¤èªk¦]­Ó®×¦U¦³¤£¦P
¥H¥»ÃD¬°¨Ò¡A­º¥ý¬O±N¸ê®Æ½d³ò¥H°}¦C«¬ºAŪ¨ú
ª½±µ¾a°O¾ÐÅéŪ¼g¡A·|¤ñ¤@®æ¤@®æªºÅª¼g§Ö«Ü¦h
¦b¨Ó¬O·í§A­n«ü©wÀx¦s®æ®É¡A­n¾¨¶q´î¤Öselectªº¨Ï¥Î
ª½±µ«ü©wÄæ¦C¦ì¤]·|¨Ï³t«×¥[§Ö
´î¤Ö¤£¥²­nªº´`Àô»P°Ê§@³£¬O¥[³tªº¤èªk
±z¥i¥H¦Û¤v¸Õ¸Õ¬Ý
  1. Sub Ex()
  2. Dim d As Object, d1 As Object, d2 As Object, Ar(), i&, A As Range, C As Range
  3. Set d = CreateObject("Scripting.Dictionary")
  4. Set d1 = CreateObject("Scripting.Dictionary")
  5. Set d2 = CreateObject("Scripting.Dictionary")
  6. d2("¦Ò¥Í¸¹") = "©m¦W"
  7. Ar = Range([A1], [A65536].End(xlUp).Offset(, 3))
  8. For i = 2 To UBound(Ar, 1)
  9.    d(Ar(i, 1) & Ar(i, 3)) = IIf(Ar(i, 4) < 65, "C", IIf(Ar(i, 4) < 85, "B", "A"))
  10.    d1(Ar(i, 3)) = ""
  11.    d2("'" & Ar(i, 1)) = Ar(i, 2)
  12. Next
  13. [G:Q].ClearContents
  14. Application.ScreenUpdating = False
  15. [G1].Resize(d2.Count, 1) = Application.Transpose(d2.keys)
  16. [H1].Resize(d2.Count, 1) = Application.Transpose(d2.items)
  17. [I1].Resize(, d1.Count) = d1.keys
  18. For Each A In Range([I1], [I1].End(xlToRight))
  19.    For Each C In Range([G2], [G65536].End(xlUp))
  20.       Cells(C.Row, A.Column) = d(C & A)
  21.    Next
  22. Next
  23. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 1# oobird
°µ¤FVBAµ{¦¡,¤£¹Lµ¥­Ô®É¶¡¸ûªø,¦³®Éµ{¦¡·|¦Û°Ê¤¤Â_+¦³Åã¥Ü¿ù»~,©Ò¥H¤£­nÀÝ¥ÎVBA
  1. Option Explicit
  2. Sub table()
  3. Dim classnumber As Object, mycell As Range
  4. Set classnumber = CreateObject("scripting.dictionary")

  5. With Range("S1")
  6. .Value = "¦Ò¥Í¸¹"
  7. .Offset(, 1).Value = "©m¦W"
  8. .Offset(, 2).Value = "¤Æ¾Ç"
  9. .Offset(, 3).Value = "¥~»y"
  10. .Offset(, 4).Value = "¥Íª«"
  11. .Offset(, 5).Value = "¦a²z"
  12. .Offset(, 6).Value = "ª«²z"
  13. .Offset(, 7).Value = "¬Fªv"
  14. .Offset(, 8).Value = "»y¤å"
  15. .Offset(, 9).Value = "¼Æ¾Ç"
  16. .Offset(, 10).Value = "¾ú¥v"
  17. End With

  18. Range("S2").Activate

  19. For Each mycell In Sheet1.Range([a2], [a65536].End(xlUp))
  20. If classnumber.exists(mycell.Value) Then
  21. Else
  22. classnumber.Add mycell.Value, mycell.Value
  23. ActiveCell.Value = mycell.Value
  24. ActiveCell.Offset(, 1).Value = mycell.Offset(, 1).Value
  25. ActiveCell.Offset(, 2).Value = mycell.Offset(, 3).Value
  26. ActiveCell.Offset(, 3).Value = mycell.Offset(1, 3).Value
  27. ActiveCell.Offset(, 4).Value = mycell.Offset(2, 3).Value
  28. ActiveCell.Offset(, 5).Value = mycell.Offset(3, 3).Value
  29. ActiveCell.Offset(, 6).Value = mycell.Offset(4, 3).Value
  30. ActiveCell.Offset(, 7).Value = mycell.Offset(5, 3).Value
  31. ActiveCell.Offset(, 8).Value = mycell.Offset(6, 3).Value
  32. ActiveCell.Offset(, 9).Value = mycell.Offset(7, 3).Value
  33. ActiveCell.Offset(, 10).Value = mycell.Offset(8, 3).Value
  34. ActiveCell.Offset(1).Activate
  35. End If
  36. Next

  37. For Each mycell In Range("U2:Ac643")
  38. If mycell.Value >= 85 Then
  39. mycell.Value = "A"
  40. ElseIf mycell.Value >= 65 And mycell.Value < 85 Then
  41. mycell.Value = "B"
  42. ElseIf mycell.Value < 65 Then
  43. mycell.Value = "C"
  44. End If
  45. Next

  46. Columns("S").NumberFormat = "0"
  47. Columns("S").AutoFit

  48. Set classnumber = Nothing

  49. End Sub
½Æ»s¥N½X
¤£¹L©O,¥i§_­°§C¤U¸üªþ¥óªºªùÂe,¬Ý¨º»ò¦hµL·N¸qªº¦^©«
80 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

        ÀR«ä¦Û¦b : ¦h°µ¦h±o¡C¤Ö°µ¦h¥¢¡C
ªð¦^¦Cªí ¤W¤@¥DÃD