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

[µo°Ý] ½Ð±Ð°ê§Oµ§¼Æ¤§­pºâ

[µo°Ý] ½Ð±Ð°ê§Oµ§¼Æ¤§­pºâ

¥»©«³Ì«á¥Ñ °¶ÔÐ ©ó 2010-10-1 05:01 ½s¿è

§Ú¦³¤W¤dµ§¸ê®Æ,¨C¤@¦Cºâ¤@µ§¸ê®Æ
¦bAÄæ[°ê§O]Àx¦s®æ¤¤,¥Ñ¤@­Ó©Î¼Æ­Ó¦r¦ê²Õ¦¨,¤¤¶¡¥H¤À¸¹¹j¶}
¨C­ÓÀx¦s®æ¤¤¤§°ê®a,¤£ºÞ¥X²{ªº¦ì¸m,©ÎªÌ¬O§_­«½Æ,¥u­n¦³¥X²{¶È­p¼Æ1¦¸

¨Ò¦p
°ê§O
Wales
USA; USA; USA; USA; USA
USA; USA; Taiwan; USA
USA; USA; Italy; USA; USA
USA; Spain
USA; South Korea
Switzerland; Switzerland; Belgium; Italy; Belgium; Italy

«h
°ê®a¡@¡@¡@¡@¡@¡@¡@¡@¡@µ§¼Æ
Wales¡@¡@¡@¡@¡@¡@¡@¡@1
USA¡@¡@¡@¡@¡@¡@¡@¡@¡@5
Taiwan¡@¡@¡@¡@¡@¡@ ¡@1
Italy¡@¡@¡@¡@¡@¡@¡@¡@  2
Spain¡@¡@¡@¡@¡@¡@¡@¡@1
South Korea¡@¡@¡@¡@ 1
Switzerland¡@¡@¡@¡@  1
Belgium¡@¡@¡@¡@¡@  ¡@1

¥Ø«e°ÝÃD¬O¸Ñ¨M¤F,¤£¹Lı±o¦Û¤vªº¤èªk¤£¬O«Ü¦³®Ä²v,©Ò¥H,·Q½Ð±Ð¦U¦ì¦³¨S¦³¤°»ò¸û¦³®Ä²vªº§Þ¥©,ÁÂÁÂ!

991001.zip (11.76 KB)

°¶Ôйq¤l®Ñ,Åwªï§K¶O¤U¸ü°Ñ¦Ò
http://www.twbts.com/ebook/?subject=office
http://www.twbts.com/ebook/?subject=soft
°¶ÔÐÂîѮw---https://www.facebook.com/groups/669579416484096/
¦³¤@®a¬a¥J©±---https://www.facebook.com/sadodona

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2023-3-29 15:29 ½s¿è

¦^´_ 14# Hsieh


    ÁÂÁ½׾Â,ÁÂÁ«e½ú
«á¾Ç½m²ß:
1.§ì¨ú¸ê®Æ¦C2­¿ªº°}¦C
2.¦P¤@°}¦C«e¬q¬O­ì©l¸ê®Æ,«á¬q©ñµ²ªG¸ê®Æ
3.¦A±N«e¬q­ì©l¸ê®Æ²M°£
4.¶¶±Æ§Ç±Nµ²ªG¸ê®Æ«e®¿
5.¥Î¦r¨å²£¥ÍÅܼÆ
½Ð«e½ú­Ì«ü±Ð

Option Explicit
Sub TEST_2()
Dim Brr, V, Y, i&, N&, xR As Range
Set Y = CreateObject("Scripting.Dictionary")
N = Cells(Rows.Count, 1).End(3).Row
Set xR = Range([B1], Cells(N * 2, 1))
Brr = xR: Y(0) = N: Y(2) = "; "
For i = 2 To UBound(Brr) / 2
   For Each V In Split(Brr(i, 1), Y(2))
      If InStr(Y(3), "/" & V & "/") = 0 And V <> "" Then
         Y(3) = Y(3) & "/" & V & "/": Y(1) = Y(1) + 1
         If Y(V) = "" Then
            Y(0) = Y(0) + 1: Y(V) = Y(0)
            Brr(Y(0), 1) = V: Brr(Y(0), 2) = 1
            Else
              Brr(Y(V), 2) = Brr(Y(V), 2) + 1
         End If
      End If
   Next
   Y(3) = ""
Next
With [J1].Resize(UBound(Brr), 2)
   .EntireColumn.ClearContents
   .Value = Brr
   Intersect(Rows("1:" & N), .Cells).ClearContents
   .Item(1) = "°ê§O": .Item(2) = "°ê§O¼Æ(¨C®æ¤£­«½Æ²Î­p)"
   .Sort KEY1:=.Item(1), Order1:=1, Header:=1
   .EntireColumn.AutoFit
End With
MsgBox Y(1)
Set Y = Nothing: Set Brr = Nothing: Set xR = Nothing
End Sub
=========================================
¸É¥R:
§Ñ¤F¦Ò¼{¨ì°ê§O¼Æ¦pªG¤ñ­ì¸ê®Æ¦C¦h´N·|¿ù»~,2­¿³ô¼{!¦¹ªk¤£¦n
=========================================

Option Explicit
Sub TEST_3()
Dim Arr, Brr, V, Y, i&, N&, xR As Range
Set Y = CreateObject("Scripting.Dictionary")
Set xR = Range([B1], Cells(Rows.Count, 1).End(3))
Brr = xR: Y(2) = "; "
ReDim Arr(1 To 10000, 1 To 2)
For i = 2 To UBound(Brr)
   For Each V In Split(Brr(i, 1), Y(2))
      If InStr(Y(3), "/" & V & "/") = 0 And V <> "" Then
         Y(3) = Y(3) & "/" & V & "/": Y(1) = Y(1) + 1
         If Y(V) = "" Then
            Y(0) = Y(0) + 1: Y(V) = Y(0)
            Arr(Y(0), 1) = V: Arr(Y(0), 2) = 1
            Else
              Arr(Y(V), 2) = Arr(Y(V), 2) + 1
         End If
      End If
   Next
   Y(3) = ""
Next
With [J2].Resize(Y(0), 2)
   .EntireColumn.ClearContents
   .Value = Arr
   .Item(0, 1) = "°ê§O": .Item(0, 2) = "°ê§O¼Æ(¨C®æ¤£­«½Æ²Î­p)"
   .Sort KEY1:=.Item(1), Order1:=1, Header:=2
   .EntireColumn.AutoFit
End With
MsgBox Y(1)
Set Y = Nothing: Set Brr = Nothing: Set xR = Nothing
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 14# Hsieh


    ÁÂÁ½׾Â,ÁÂÁ«e½ú
«á¾ÇÂǦ¹©«½m²ß°}¦C»P¦r¨å,VBAªº¸Ñ¨M¤è®×¦p¤U½Ð¦U¦ì«e½ú«ü±Ð

°õ¦æ«e:


°õ¦æµ²ªG:


Option Explicit
Sub TEST()
Dim Brr, i&, S&, T, V, Y, Z
Set Y = CreateObject("Scripting.Dictionary")
Brr = Range([A2], Cells(Rows.Count, 1).End(3)): T = "; "
For i = 1 To UBound(Brr)
   For Each V In Split(Brr(i, 1), T)
      If InStr(Z, "/" & V & "/") = 0 And V <> "" Then
         Z = Z & "/" & V & "/": Y(V) = Y(V) + 1: S = S + 1
      End If
   Next
   Z = ""
Next
[J:K].ClearContents: [J1] = [A1]: [K1] = "°ê§O¼Æ(¨C®æ¤£­«½Æ²Î­p)"
[J2].Resize(Y.Count, 1) = Application.Transpose(Y.keys)
[K2].Resize(Y.Count, 1) = Application.Transpose(Y.items)
With [J2].Resize(Y.Count, 2)
   .Sort KEY1:=.Item(1), Order1:=1, Header:=2
   .EntireColumn.AutoFit
End With
MsgBox S
Set Y = Nothing: Set Brr = Nothing
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

ÁÂÁÂ[asimov]»P[Hsieh]ª©¥D
­«½Æ­pºâªº°ÝÃD¸Ñ¨M¤F,ÁÂÁÂ!
°¶Ôйq¤l®Ñ,Åwªï§K¶O¤U¸ü°Ñ¦Ò
http://www.twbts.com/ebook/?subject=office
http://www.twbts.com/ebook/?subject=soft
°¶ÔÐÂîѮw---https://www.facebook.com/groups/669579416484096/
¦³¤@®a¬a¥J©±---https://www.facebook.com/sadodona

TOP

991002-1.rar (12.95 KB)
©w¸q¦WºÙx=OFFSET(Sheet2!$A$1,,,COUNTA(Sheet2!$A:$A))
°}¦C¤½¦¡{=SUM(IF((LEFT(SUBSTITUTE(x,D2,""))=";")+(RIGHT(SUBSTITUTE(x,D2,""),2)="; ")+(ISNUMBER(FIND("; ;",(SUBSTITUTE(x,D2,"")))))+(SUBSTITUTE(x,D2,"")=""),1,0))}
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_  °¶ÔÐ
³o¤½¦¡½T¹ê¦³º|¬}
¦pªGDÄ檺°ê§O¦bAÄ椣¥u¥X²{¤@¦¸´N¥X¿ù¤F
¦A·Q·Q¬Ý°£¤FVBAÁÙ¦³¨ä¥L¬Æ»ò¤è ...
Hsieh µoªí©ó 2010-10-2 16:26



¸Õ¸Õ
E2
=SUMPRODUCT((ISNUMBER(FIND(";"&SUBSTITUTE(D2," ","")&";",";"&SUBSTITUTE($A$2:$A$75," ","")&";"))*1))
1

µû¤À¤H¼Æ

    • Hsieh: «Ü¦nªº¤½¦¡ª÷¿ú + 2
¾÷¾¹¤H¤T¤j©w«ß-«OÅ@¤HÃþ¡BªA±q©R¥O¡B«OÅ@¦Û¤v
§Úªº¤T¤j©w«ß-¥Í©R¡B¥Í¦s¡B¥Í¬¡

TOP

§Ú¼g¤£¥X³o­Ó¤½¦¡¡A·Pıvbaªº¦r¨å¬d¸ß¤~¬O³Ì¦nªº¿ìªk¡C
­Y¤£·Q¥Îvba¡A¥ý­åªR¦A¥Îcountif±o¤F¡I

TOP

¦^´_ 10# °¶ÔÐ
³o¤½¦¡½T¹ê¦³º|¬}
¦pªGDÄ檺°ê§O¦bAÄ椣¥u¥X²{¤@¦¸´N¥X¿ù¤F
¦A·Q·Q¬Ý°£¤FVBAÁÙ¦³¨ä¥L¬Æ»ò¤èªk¥i¥H§¹¥þ¤ñ¹ï
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 8# GBKEE

ÁÂÁÂ[GBKEE]ª©¥D,¸Ñ¨M¤F[Serbia]­«½Æ­p¼Æ[Serbia Monteneg]»P[Ireland]­«½Æ­p¼Æ[North Ireland]ªº°ÝÃD


¦^´_ 9# Hsieh

[Hsieh]ª©¥D¦A´£¨Ñªº¤½¦¡»P§Ú­pºâ¥X¨Óªºµ²ªG¦³¨Ç¥X¤J
¦Ó¥B¤£©ú¥Õ[Hsieh]ª©¥D¤½¦¡¤¤ªº (SUMPRODUCT(ISNUMBER(FIND($D2,OFFSET($D$1,,,COUNTA($DD),)))*1)-1) ¬°¦ó­n´î1
ÁÂÁÂ!

991002-1.zip (14.87 KB)

°¶Ôйq¤l®Ñ,Åwªï§K¶O¤U¸ü°Ñ¦Ò
http://www.twbts.com/ebook/?subject=office
http://www.twbts.com/ebook/?subject=soft
°¶ÔÐÂîѮw---https://www.facebook.com/groups/669579416484096/
¦³¤@®a¬a¥J©±---https://www.facebook.com/sadodona

TOP

=SUMPRODUCT(ISNUMBER(FIND($D2,OFFSET($A$1,,,COUNTA($A:$A),)))*1)-(SUMPRODUCT(ISNUMBER(FIND($D2,OFFSET($D$1,,,COUNTA($D:$D),)))*1)-1)
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ¥@¤W¦³¨â¥ó¨Æ¤£¯àµ¥¡G¤@¡B§µ¶¶ ¤G¡B¦æµ½¡C
ªð¦^¦Cªí ¤W¤@¥DÃD