Data Summary Worksheet

tjc154

Active Member
Joined
Apr 7, 2007
Messages
363
I have a workbook that contains 35 worksheets named as follows

WK1 DY1
WK1, DY2
WK1 DY3
WK1 DY4
WK1 DY5
WK2 DY1, etc all the way through week 7

I want to create a summary sheet that looks at data in columns
C=Computername
D= UserID
E=Username
F= Status.

If it finds any statuses that show Failed install in column F, it will export the data (columns C thru F) for a particular row into a summary worksheet called “status”. The status worksheet uses the same column names, so data would start populating on row A2.

How can I write this into a macro?

Thanks,

Tom
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
How can I write this into a macro?
Have you attempt to write a macro yet? Or better yet tried to use the Macro Recorder?


Either way maybe this might help:

Code:
Sub TEST()
    Dim ws As Worksheet
    For Each ws In ActiveWorkbook.Worksheets
        If ws.Name <> "SUMMARY" Then
            LR = Range("C" & Rows.Count).End(xlUp).Row
            ws.Range("C1:F" & LR).AutoFilter Field:=4, Criteria1:="FAILED"
            ws.Range("C2:F" & LR).SpecialCells(xlCellTypeVisible).Copy _
                    Destination:=Sheets("SUMMARY").Range("A" & Rows.Count).End(xlUp).Offset(1)
        End If
    Next
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,611
Messages
6,120,509
Members
448,967
Latest member
screechyboy79

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top