Copy all the rows with values "Questioned", "TechHold", and "OnHold" in Column A of Sheetname "Activity Tracker"

papajups

Board Regular
Joined
Sep 8, 2012
Messages
166
Hi All,

Good day!

I'm a beginner in Excel that's why I would like to seek for your help and expertise regarding below concern. I tried to search for answers as well from existing posts but I wasn't able to find one. I'm hoping that you can help me.

What I wish to happen is to copy all the rows with values "Questioned", "OnHold", and "TechHold" in Column A of Sheet "Activity Tracker" and paste it all in column B3 of Sheetname "Pending Asia".

Any help will be highly appreciated. Thanks a lot in advance!

regards,

papajups
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hello,

do you mean that you want the information pasted into Col B starting at row 3?

thx

FarmerScott
 
Upvote 0
try the following. Adjust the Col number (in red) to suit your range-

Code:
Sub extract_Questioned_OnHold_TechHold()
Dim x As Integer
Dim y As Integer
y = 3
lr = Worksheets("Activity Tracker").Cells(Rows.Count, "A").End(xlUp).Row

For x = 1 To lr
    If Cells(x, 1).Value = "Questioned" Or Cells(x, 1).Value = "OnHold" Or Cells(x, 1).Value = "TechHold" Then
'adjust Col number (in red below) to suit your range.
    Range(Cells(x, 1), Cells(x, [COLOR=#ff0000]12[/COLOR])).Copy Worksheets("Pending Asia").Range("B" & y)
    y = y + 1
   
     End If
Next x
End Sub

FarmerScott
 
Upvote 0
Hi FarmerScott,

You are really great!

With all sincerity in me, thank you so much. This will really help me a lot.

Again, my deepest appreciation.


best regards,
papajups

 
Upvote 0

Forum statistics

Threads
1,214,405
Messages
6,119,315
Members
448,886
Latest member
GBCTeacher

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