How to search for all matching entries in a column and copy cells to another sheet?

Gwip0102

New Member
Joined
Jun 11, 2009
Messages
1
Hello.

I have seen a number of threads on similar topics but i have struggled to adapt the code. any help would be appreciated.

Windows XP / Excel 2003

I am using one work book with 2 worksheets 'Interface' and 'Data'. - Data has 20,000 rows and works to column CJ.

I want to seach column Q of sheet data, for for a user defined variable (taken from a textbox 'txt_comcd' within worksheet 'Interface') If a match is found the following cells from that row would be copied:

Data O
Data Q
Data AC
Data AS

they would be copied into

Data O -> Interface B (row 10)
Data Q -> Interface C (row 10)
Data AC -> Interface F (row 10)
Data AS -> Interface E (row 1o)

it would then continue to find the next entry in Data Q and repeat the process - the cells would this time be copied into row 11, thus creating a list until there are no more matching entries in Data Q.

Reagards

Gwip
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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