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

[µo°Ý]²£¥Í·sªº¬¡­¶¤§«á,¦p¦ó­pºâ¥X«e¤@­Ó¬¡­¶ªº¯S©w¸ê®Æ¦a­Ó¼Æ

[µo°Ý]²£¥Í·sªº¬¡­¶¤§«á,¦p¦ó­pºâ¥X«e¤@­Ó¬¡­¶ªº¯S©w¸ê®Æ¦a­Ó¼Æ

³o¬O®Ñ¥»¤Wªº½d¨ÒÀÉ,¬O¦b¤@­Ó¬¡­¶ªí¤¤©â¨ú¥X¤£­«½Æªº¸ê®Æ¦Ü¥t¤@­Ó·s²£¥Íªº¬¡­¶



§Ú·Q¦b·sªº¬¡­¶BÄæcount¤¤Åã¥Ü¥X¨C¤@­Ó°Ó«~ªº¼Æ¶q¦³´X­Ó,½Ð°Ý¦³¤j¤j¥i¥H±Ð§Ú¦p¦ó¼g¶Ü?


Sub ©â¨ú¥X³c½æ°Ó«~¦WºÙ()
    Dim ¹ï¶HÄæ As Range
   
    Set ¹ï¶HÄæ = Range("E3")
        
    Range(¹ï¶HÄæ, ¹ï¶HÄæ.End(xlDown)). _
        AdvancedFilter _
        Action:=xlFilterInPlace, _
        Unique:=True
   
    Worksheets.Add After:=ActiveSheet
    ActiveSheet.Previous.Activate
    Range(¹ï¶HÄæ, ¹ï¶HÄæ.End(xlDown)).Copy
    ActiveSheet.Next.Activate
    Range("A1").PasteSpecial
    Selection.Columns.AutoFit
    ActiveSheet.Previous.ShowAllData
   
    ActiveSheet.Range("B1") = "Count"
End Sub

©â¨ú¥X¤£­«½Æªº¸ê®Æ.rar (20.62 KB)

·PÁÂ@@
HI~§A¦n§r

¦^´_ 1# x32438
  1. ¤u§@ªí1.Cells(2, 2) = "=COUNTIF(½d¨Ò!E:E,¤u§@ªí1!A2)"
  2. ¤u§@ªí1.Cells(3, 2) = "=COUNTIF(½d¨Ò!E:E,¤u§@ªí1!A3)"
  3. ¤u§@ªí1.Cells(4, 2) = "=COUNTIF(½d¨Ò!E:E,¤u§@ªí1!A4)"
  4. ¤u§@ªí1.Cells(5, 2) = "=COUNTIF(½d¨Ò!E:E,¤u§@ªí1!A5)"
  5. ¤u§@ªí1.Cells(6, 2) = "=COUNTIF(½d¨Ò!E:E,¤u§@ªí1!A6)"
½Æ»s¥N½X

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

TOP

¦^´_ 1# x32438
¦pÃD:·s¼W¤u§@ªí«á¶ñ¤J¸ê®Æ
  1. Sub Ex()
  2. Set dic = CreateObject("Scripting.Dictionary")
  3. With Sheet1
  4. ar = .Range("B3").CurrentRegion.Value
  5. For i = 2 To UBound(ar, 1)
  6.   dic(ar(i, 4)) = dic(ar(i, 4)) + ar(i, 6)
  7. Next
  8. End With
  9. With Sheets.Add(after:=Sheets(Sheets.Count))
  10. .[A1] = "«~¦W": .[B1] = "COUNT"
  11.   .[A2].Resize(dic.Count, 1) = Application.Transpose(dic.keys)
  12.   .[B2].Resize(dic.Count, 1) = Application.Transpose(dic.items)
  13. End With
  14. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

ÁÂÁ¨â¦ìªº¸Ñµª~!
HI~§A¦n§r

TOP

        ÀR«ä¦Û¦b : ¡i®É¤é²öªÅ¹L¡j¤@­Ó¤H¦b¥@¶¡°µ¤F¦h¤Ö¨Æ¡A´Nµ¥©ó¹Ø©R¦³¦hªø¡C¦]¦¹¥²¶·»P®É¶¡Ävª§¡A¤Á²ö¨Ï®É¤éªÅ¹L¡C
ªð¦^¦Cªí ¤W¤@¥DÃD