+ Reply to Thread
Results 1 to 2 of 2

Summary and Lookup from multiple sheets within the files

Hybrid View

Did13n Summary and Lookup from... 01-11-2022, 03:03 AM
mohadin Re: Summary and Lookup from... 01-11-2022, 05:45 AM
  1. #1
    Forum Contributor
    Join Date
    02-11-2015
    Location
    Jakarta, Indonesia
    MS-Off Ver
    2019
    Posts
    118

    Summary and Lookup from multiple sheets within the files

    Hi Everyone

    i am not familiar with macros actually as all done usually by using the formulas
    but i might need help here to see whether it can be done by macros as i dont have references to do it with formulas

    i would like to have summary reports in Sheet1 with references from Other sheets based on the Criteria

    details you might found in the attached files

    by the way, i am using Excel 2010 version

    thanks a lot
    Attached Files Attached Files
    a fool learn from experiences,wise from others

  2. #2
    Valued Forum Contributor
    Join Date
    06-27-2010
    Location
    sYRIA
    MS-Off Ver
    Excel 2013
    Posts
    669

    Re: Summary and Lookup from multiple sheets within the files

    Hi
    Try
    Sub test()
        Dim a As Variant
        Dim d, i
        Dim sh As Worksheet
        Application.ScreenUpdating = False
        d = Sheets("Sheet1").Cells(1, 2)
        With CreateObject("scripting.dictionary")
            For Each sh In Worksheets
                If sh.Name <> "Sheet1" Then
                    a = sh.Cells(2, 1).CurrentRegion.Value2
                    For i = 1 To UBound(a)
                        If a(i, 2) = d Then .Item(a(i, 1) & "#" & a(i, 3)) = .Item(a(i, 1) & "#" & a(i, 3))
                    Next
                End If
            Next
            Application.DisplayAlerts = False
            Sheets("sheet1").Cells(4, 1).Resize(.Count) = Application.Transpose(.keys)
            Sheets("sheet1").Cells(4, 1).Resize(.Count).TextToColumns Destination:=Range("A4"), OtherChar:="#", FieldInfo:=Array(Array(2, 1))
            Application.DisplayAlerts = True
            Application.ScreenUpdating = True
        End With
    End Sub
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 11-10-2018, 06:59 AM
  2. [SOLVED] Summary sheet - copy cell contents from multiple sheets to one summary sheet
    By jsmity in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2013, 10:32 AM
  3. Create a summary from multiple sheets on a master/summary sheet
    By detribus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2012, 08:04 PM
  4. Replies: 14
    Last Post: 07-19-2012, 10:55 AM
  5. [SOLVED] Lookup the datas from all sheets and make summary on a separate sheet
    By PRADEEPB270 in forum Excel General
    Replies: 1
    Last Post: 03-30-2012, 03:17 AM
  6. Copy specific cell from multiple sheets to summary - excluding some sheets
    By kabammi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2012, 09:27 AM
  7. [SOLVED] Lookup info in support sheets and enter in summary sheet
    By WendiL99 in forum Excel General
    Replies: 6
    Last Post: 06-21-2006, 12:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1