Auto-populate checked data from sheet to sheet

holdenc

New Member
Joined
Mar 4, 2011
Messages
1
I am using a basic excel book with many sheets holding reference data. What I want to accomplish is, as I go through each sheet and mark a column beside data I need to pull at that time with say an "X", how can I create a formula on a separate sheet that will compile all the data I marked with "X" so I don’t have to go back through each sheet to see all the related info. I have tried using various IF statements and so far have found nothing that will populate all the marked data to the final sheet.

For example in
Column A sheet 1 I have my data
Column B sheet 1 is where I will mark an "X" on relevant info
Column A sheet 2 is where I want all marked data to populate

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
Please tell me it can be done. Thanks in advance<o:p></o:p>
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Try this on a copy of your data. Enter some 'X's and run the macro
Code:
Sub CopyX()
Application.ScreenUpdating = False
Dim LR As Long, i As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
For i = LR To 1 Step -1
    If Range("B" & i).Value = "X" Then Rows(i).Copy Destination:=Sheets("Sheet2").Cells(Rows.Count, "A").End(xlUp)
Next i
Application.ScreenUpdating = True
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,702
Members
452,938
Latest member
babeneker

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