Auto selection of rows by matching a list of serial numbers

zicitron

New Member
Joined
Apr 21, 2013
Messages
22
Hi all,

I have an Excel worksheet with one of the columns named "Serial Number". I need to select specific rows and copy those selected rows in a new worksheet, based on a list of serial numbers (which is not necessarily consecutive numbers).

Can anyone help with a VBA (or may be a formula?) to automatically select the rows based on a list of serial numbers? I can do a manual copy and paste once the rows have been selected. That would be half the job done!

I am using Excel 2013.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Keep the list of serial numbers in another sheet, say sheet2. Then apply vlookup on main sheet where you have whole list of serial numbers,say sheet1 (assuming serial number is in column A)

So In sheet1 Column B, use this formula

=VLOOKUP(A2,Sheet2!A:A,1,0)

Next, Filter column B , uncheck #N/A
 
Upvote 0
Hi Zicitron,

Are you filtering and copying ?
Can you provide more details on the criteria ? thanks.


Regards,
DILIPandey
 
Upvote 0
Thanks vds1! Not a bad solution!
DILIPandey, it may be seen as a filtering to select only the rows with the serial numbers I need.
 
Upvote 0
Okay.. would be easy if you can paste your data sample so that I can provide a small macro to do this. I like to know which column you would be filtering and what is the range etc. Thanks.


Regards,
DILIPandey
 
Upvote 0

Forum statistics

Threads
1,216,381
Messages
6,130,294
Members
449,570
Latest member
TomMacca52

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