Search and copy problem

Herman

New Member
Joined
Feb 28, 2002
Messages
28
I have a question.

i have 3 sheets, i like to search for a value for example 3 in the first 2 sheets
and if it is found in sheetsthen copy the row from the sheet and paste it in sheet3, the same for sheet2 if it is also found there then copy it in sheet3.
number of sheets is not always the same so i thought for each ws , but i get lost after it.

anyone knows how to search across multiple sheets and paste it in 1 sheet.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Might want to read the posting "find in multiple sheets copy in 1 sheet"

I've posted a solution there that I think may be applicable to your problem as well.
 
Upvote 0
Herman, glad to hear this is working well. Incidentally, I've updated the code with an error trapper in the event that your search results in over 65536 rows, in which case Excel would bomb :(. Also, it inserts a comment in column A of each row telling you the sheet name and cell that the search term in that particular row came from. Figured this may be of help.

Nimmy, what's happenin'? I lived in Chilliwack, BC for four years or so. What happend to our Canucks?
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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