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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
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
 
Upvote 0

Forum statistics

Threads
1,214,826
Messages
6,121,795
Members
449,048
Latest member
greyangel23

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