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

[µo°Ý] ¦p¦ó·J¾ã¤ñ¹ï

[µo°Ý] ¦p¦ó·J¾ã¤ñ¹ï

·Q½Ð°Ý¤@¤U¡Aªþ¥óÀɮצ³3­Ósheet
·Q±N DATA_* ªºsheet ¼Æ¶q¨Ì«~¶µ¥[Á` ©M D_ALL «~¶µ¥[Á`¡A¨â¥÷¼Æ¾Ú¶i¦æ¤ñ¹ï¡C
¦C¥X²§±`ªº«~¶µ»P¼Æ¶q..

¨D¸Ñ..

¬¡­¶Ã¯1.xlsx.zip (20.09 KB)

¤H¥Í¤£¤@©w²y²y¬O¦n²y¡A¦ý¬O¦³¾ú½mªº±j¥´ªÌ¡AÀH®É³£¥i¥H´§´Î¡C

try this:
Sub zz()
Dim ar, d As Object, x$
Set d = CreateObject("scripting.dictionary")
For Each s In Sheets
    If InStr(1, s.Name, "Data_", 1) Then
        ar = s.[b1048576].End(3).CurrentRegion.Value
        For i = 2 To UBound(ar)
            d(ar(i, 1)) = d(ar(i, 1)) + ar(i, 2)
        Next
    End If
Next
ar = Sheets("D_ALL").UsedRange.Value
    For i = 2 To UBound(ar)
        t = d(ar(i, 1)) - ar(i, 2)
        If t Then
            d(ar(i, 1)) = t
        Else
            d.Remove (ar(i, 1))
        End If
    Next
    If d.Count Then
        k = d.keys: t = d.items
        For i = 0 To UBound(t)
            If t(i) > 0 Then
                k(i) = k(i) & " +" & t(i)
            Else
                k(i) = k(i) & " " & t(i)
            End If
        Next
    End If
    MsgBox Join(k, Chr(10))
End Sub

TOP

¦^´_ 1# yifan2599
½Ð°Ñ¦Ò¡C
·J¾ã¤ñ¹ï.rar (19.08 KB)

TOP

Á°Õ! §Ú¦b´ú¸Õ¬Ý¬Ý~
¦^´_ 2# ikboy
¤H¥Í¤£¤@©w²y²y¬O¦n²y¡A¦ý¬O¦³¾ú½mªº±j¥´ªÌ¡AÀH®É³£¥i¥H´§´Î¡C

TOP

·PÁÂ! §Ú¦b´ú¸Õ¬Ý¬Ý~

¦^´_ 3# Kubi
¤H¥Í¤£¤@©w²y²y¬O¦n²y¡A¦ý¬O¦³¾ú½mªº±j¥´ªÌ¡AÀH®É³£¥i¥H´§´Î¡C

TOP

        ÀR«ä¦Û¦b : ¡i°µ¤Hªº¶}©l¡j¨C¤@¤Ñ³£¬O¬G¤Hªº¶}©l¡A¨C¤@­Ó®É¨è³£¬O¦Û¤vªºÄµ±§¡C
ªð¦^¦Cªí ¤W¤@¥DÃD