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

½Ð°Ýsheet Äæ¦ìÂà´«°ÝÃD

½Ð°Ýsheet Äæ¦ìÂà´«°ÝÃD

1.½Ð°Ý§Ú·Q±qa sheetÂà´«b sheet
2.¦bb sheet§¹¦¨®É¶¡¹ï·Ó¦³ok´N¯àÅýa sheetªº¹ïÀ³Äæ¦ì¤ÏÃC¦â

sheet Äæ¦ìÂà´«.rar (12.42 KB)

Tony

½Ð¨D¦U¦ì¨ó§U
ÁÂÁÂ
Tony

TOP

¦^´_ 32# Hsieh


    ½Ð°Ý¤@¤U
²{¦ba sheetÂàb sheet®æ¦¡®É¡A¤§«e¬O¤@¦¸¾ã­±Âà´«
¥i§_¤@¦¸¤T¦CÂà¡]¨C­Ó¤u³æ¤U¤è³£¦³«ö¶s¡^¡A ¤§«e¤Ï¬õ¤Î¤Ïºñªº¥\¯à¯àÄ~Äò¨Ï¥Î
¨Ò¦p¡G
¥Ø«e1286883¤u³æ¤U¤èªº«ö¶s¡A«ö¤@¤U¦AÂà¨ìb sheet
¥H¦¹Ãþ±À¡A«h·|©¹¤U¬ö¿ý¡A¦pªG¤w¦s¦bªº¤u³æ¡A§ó§ï¹LG¨ìSÄæ®É¡A¤ñ¹ï¤u³æ¸¹½X¡A«ö¤U«ö¶s«á¡A«hb sheet·|¸òµÛÅÜ°Ê
·sªº¤u³æ«h©¹¤UÄ~Äò¬ö¿ý
¨Ã¥B¥i¥H¸õµÛ¿é¤J¤£¤@©w­n«ö·Óa sheetªº¶¶§Ç

ÁÂÁÂ

sheet Äæ¦ìÂà´«.rar (16.39 KB)

Tony

TOP

¦^´_ 31# tonycho33

¸Õ¸Õ¬Ý
  1. Private Sub Worksheet_Activate()
  2. Set d = CreateObject("Scripting.Dictionary")
  3. Set d1 = CreateObject("Scripting.Dictionary")
  4. With Sheet6
  5. For Each A In .Range("I2", .[I65536].End(xlUp)).SpecialCells(xlCellTypeConstants)
  6.    If A <> "" And A.Offset(, 1) = "" Then
  7.    mystr = Join(Application.Transpose(Application.Transpose(A.Offset(, -8).Resize(, 5).Value)), "")
  8.    d(mystr) = d(mystr) + 1
  9.    ElseIf A.Offset(, 1) - A Then
  10.    mystr = Join(Application.Transpose(Application.Transpose(A.Offset(, -8).Resize(, 5).Value)), "")
  11.    d1(mystr) = d1(mystr) + 1
  12.    End If
  13. Next
  14. End With
  15. With Me
  16. r = 2
  17. Do Until .Cells(r, 1) = ""
  18. Set A = .Cells(r, 1)
  19. mystr = A & A.Offset(, 1)
  20.    For Each c In .Range(A.Offset(, 6), A.Offset(, 6).End(xlToRight))
  21.       temp = mystr & Join(Application.Transpose(c.Resize(3, 1)), "")
  22.       If d.exists(temp) = True Then
  23.       c.Resize(3, 1).Interior.ColorIndex = 4
  24.       ElseIf d1.exists(temp) = True Then
  25.       c.Resize(3, 1).Interior.ColorIndex = 6
  26.       Else
  27.       c.Resize(3, 1).Interior.ColorIndex = 0
  28.       End If
  29.    Next
  30. r = r + 3
  31. Loop
  32. End With
  33. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 29# Hsieh


    ½Ð°Ý¤@¤U ¤§«eªºµ{¦¡¤¤
     JÄ椧«e¿é¤J¡yOK¡z·|¤Ï¬õ
¥i¥H§ï¦¨JÄ榳¿é¤J®É¶¡ªº¸Ü¤Ï¬õ
                      ¥u¦³¿é¤JIÄæ¨S¦³¿é¤JJÄæ«h¤Ïºñ
¤u³æ¸¹½X¬Û¦P¤§¤U     J2©MI3ªº®É¶¡®t¶W¹L4¤p®É«h¤Ï¶À
¨ä¾l«hªÅ¥Õ
ÁÂÁÂ
Tony

TOP

¦^´_ 29# Hsieh


½Ð°Ý¤@¤U ¤§«eªºµ{¦¡¤¤
    JÄ椧«e¿é¤J¡yOK¡z·|¤Ï¬õ
¥i¥H§ï¦¨JÄ榳¿é¤J®É¶¡ªº¸Ü¤Ï¬õ
                     ¥u¦³¿é¤JIÄæ¨S¦³¿é¤JJÄæ«h¤Ïºñ
¤u³æ¸¹½X¬Û¦P¤§¤U     J2©MI3ªº®É¶¡®t¶W¹L4¤p®É«h¤Ï¶À
¨ä¾l«hªÅ¥Õ
ÁÂÁÂ

sheet Äæ¦ìÂà´«.rar (19.23 KB)

Tony

TOP

¦^´_ 28# tonycho33
  1. Sub Âà¸m()

  2. Dim A As Range, Ar(), Ay(), i%, j%, Ary(), s&

  3. r = 2

  4. With Sheets("a")

  5. Do Until .Cells(r, 1) = ""

  6. Set A = .Cells(r, 1)

  7. Ar = A.Resize(, 4)

  8. k = Application.CountA(.Range(A.Offset(, 6), A.Offset(, 6).End(xlToRight)))
  9. If k = 0 Then GoTo 10
  10. Ay = A.Offset(, 6).Resize(3, k).Value

  11. For i = 1 To UBound(Ay, 2)

  12. ReDim Preserve Ary(7, s)

  13. Ary(0, s) = Ar(1, 1): Ary(1, s) = Ar(1, 2): Ary(6, s) = Ar(1, 4)

  14.    For j = 1 To UBound(Ay, 1)

  15.    Ary(j + 1, s) = Ay(j, i)

  16.    Next

  17.    s = s + 1

  18. Next
  19. 10
  20. r = r + 3

  21. Loop

  22. End With

  23. Sheets("b").UsedRange.Offset(1) = ""

  24. Sheets("b").[A2].Resize(s, 7) = Application.Transpose(Ary)

  25. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 19# Hsieh


    ½Ð°ÝA¡ãEÄæ·s¼W¦C¼Æ¡A¦ýG~SÄ楼·s¼W
³o¼Ë·|µ{¦¡·|¥X²{¿ù»~­n¦p¦ó­×§ï©O
ÁÂÁÂ

sheet Äæ¦ìÂà´«.rar (18.35 KB)

Tony

TOP

¦^´_ 26# tonycho33

­Ó¤H¾Þ§@¨ÃµL '¤Á´«¦Üsheet a"·|ÅܺC¤§±¡§Î

1.´«¥x¹q¸£¸Õ¸Õ¬Ý
2.¸Ô²Ó»¡©ú§Aªº¾Þ§@¨BÆJ ·Q¿ìªkÅý§Úª¾¹Dª¬ªp
   ¤£µM§A»¡¦³°ÝÃD §Ú»¡¨S°ÝÃD ¥Ã»·µLªk¸Ñ§Ö

TOP

¦^´_ 25# register313


   §A¦n¡A¨Ï¥Î¹L«á¡AÁÙ¬O¤@¼Ëa sheet¤Á´««á·|ÅܺC
Ū¨ú®É«öesc «h¿ù»~°T®§°±¯d¦bNext
¦P¼Ëa2 sheet´N·|«Ü¥¿±`
½Ð¨D¨ó§U
ÁÂÁÂ
Tony

TOP

        ÀR«ä¦Û¦b : ºÉ¦h¤Ö¥»¥÷¡A´N±o¦h¤Ö¥»¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD