Phil Smith
Active Member
- Joined
- Aug 13, 2004
- Messages
- 285
- Office Version
- 365
- Platform
- Mobile
On my worksheet "Roster", I need to find which cells in columns I, M, Q, U & Y contain "SP".
At the moment I am looping through I2:I71, M2:M71, Q2:Q71, U2:U71 and Y2:Y71.
For example, the first cell that contains "SP" is I9. I would then need to copy G9:H9 and paste those values to cells AG4:AH4 on worksheet "Data".
The next instance would then be pasted to AG5:AH5 and so on.
Is there a quicker way rather than looping through each of the 70 rows in each column? Once I have that syntax, I think I can work the rest out.
Thanks in advance!
At the moment I am looping through I2:I71, M2:M71, Q2:Q71, U2:U71 and Y2:Y71.
For example, the first cell that contains "SP" is I9. I would then need to copy G9:H9 and paste those values to cells AG4:AH4 on worksheet "Data".
The next instance would then be pasted to AG5:AH5 and so on.
Is there a quicker way rather than looping through each of the 70 rows in each column? Once I have that syntax, I think I can work the rest out.
Thanks in advance!