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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

farmerscott

Well-known Member
Joined
Jan 26, 2013
Messages
815
Office Version
  1. 365
Platform
  1. Windows
Hello,

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

thx

FarmerScott
 

farmerscott

Well-known Member
Joined
Jan 26, 2013
Messages
815
Office Version
  1. 365
Platform
  1. Windows
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
 

papajups

Board Regular
Joined
Sep 8, 2012
Messages
166
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

 

Forum statistics

Threads
1,175,862
Messages
5,899,918
Members
434,805
Latest member
Nihon

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
Top