How can I extract filtered values from a table?

Bpuad

New Member
Joined
Feb 17, 2012
Messages
36
Office Version
  1. 2019
Platform
  1. Windows
Well I have a list with names and countries:

Country Name
US Ben
UK John
UK Liza
FR Karen
US Carl
FR Sophie
US Anders

Now I sort this list according to coutry. In another sheet I want to extra the data in this list, but only the data that is sorted. So let's say I sort the list on US I only want the names that is filtered/US to show in the other list?

Can this be done. Have problems with this, help would be highly appreciated.

/Per
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi,

Can you use a "Helper" column?
If so, try this.....

Sample Data...


Excel Workbook
ABCD
1CountryNameHelper*
2USBen1*
3UKJohn1*
4UKLiza1*
5FRKaren1*
6USCarl1*
7FRSophie1*
8USAnders1*
9****
Data2


The formula in C2 needs to be copied down.

Example Results1....

Excel Workbook
ABCD
13CountryName*
23USBen*
3*USCarl*
4*USAnders*
5****
Results2


Example Results2...

Excel Workbook
ABCD
12CountryName*
22FRKaren*
3*FRSophie*
4****
Results2


Results without filtering being applied....

Excel Workbook
ABCD
17CountryName
27USBen
3UKJohn
4UKLiza
5FRKaren
6USCarl
7FRSophie
8USAnders
9
Results2



The formula in B2 needs to be entered with ctrl shift enter NOT just enter, you can then copy iy across and down.
You will obviously need to change the sheet name and cell references to suit your layout.
The formula in A2 is not required as I used this as a check.

If this is not suitable, then you may want to look at using Advanced Filter.

I hope that helps.

Good luck.

Ak
 
Last edited:
Upvote 0
Awesome AK, thanks a lot! You're my hero today :)

/Per
 
Upvote 0
Hi,

You are welcome, I'm pleased it worked for you and thanks for the feedback. :biggrin:

Ak
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,849
Members
449,051
Latest member
excelquestion515

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