Data Extract or Pivot Table

Deano

Active Member
Joined
May 2, 2004
Messages
264
Hi

If I have one workbook with say an employee data base containing names, salaries, date of employment, etc and say 1000 employees.

And I have another spreadsheet with exactly the same headings.

What is the simplest way to extract say all those employees with the name George (assuming george exists in the database more than once)?

Regards

PS thought of using a pivot, but not so easy.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Fazza

MrExcel MVP
Joined
May 17, 2006
Messages
9,368
Hi Deano.

What is the simplest way? For me, it is with a query.

And depending on what is required, maybe a parameterised query. The cell with the parameter value could have data validation fed from another query on the source data so that only available names are in the drop down list. Or you could make it a list box on a user form.

Advanced filters are also good. VBA code using arrays is another way. Or VBA code with simple filtering & copying/pasting of visible cells. Etc.

HTH, Fazza
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,329
Messages
5,769,462
Members
425,551
Latest member
yeat

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
Top