filter specific columns...

sadams1

Board Regular
Joined
Aug 19, 2006
Messages
228
I have several columns of data & would like to display only a few. I can manually hide them but it's a pain. I use the advanced filter & do the "copy to" another location thinking only the specific columns being put into the "critieria range" would be displayed but all columns come back. Is there a way to do something like this? I've gone through posts here & looking online & haven't anything like a macro or something to do this. Thanks!
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
you can try PowerQuery
- load whole table into PQ Editor
- New Query:
Code:
[SIZE=1]let
    Source = Table.ColumnNames(Table1),
    #"Kept Range of Items" = List.Range(Source,3,3)
in
    #"Kept Range of Items"[/SIZE]
next New Query:
Code:
[SIZE=1]let
    Source = Table.SelectColumns(Table1,ColsToKeep)
in
    Source[/SIZE]
then you'll get 3 columns, starting from third column => 3,3

or
in PQ Editor select columns you want to keep then remove other columns and result load into the sheet
 
Last edited:
Upvote 0
adams1, If you want I'll simply post all the vba source code of the above mentioned add-in. I can do that tomorrow. Then you can copy paste it in your sheet and see if it works.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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