Hi,
I want to loop through a column and if the values in this cells are the same as my c4 cell value then I want all the corresponding values in column 34 in a a new column. I have the code below but all it does is give me the first value in the 34 column and repeats it.
Thanks in advance for your help
I want to loop through a column and if the values in this cells are the same as my c4 cell value then I want all the corresponding values in column 34 in a a new column. I have the code below but all it does is give me the first value in the 34 column and repeats it.
Code:
For Each cell In Range("D:D")
If cell.Value = Worksheets("x").Range("C4").Value Then
Worksheets("y").Range("BD:BD") = cell.Offset(i, 34).Value
End If
Next
End Sub
Thanks in advance for your help