Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Multiple column filtering

Hi,

I am trying to group multiple non-consecutive columns so that all columns
can be hidden and each group can be displayed.

I have 40 columns with multiple rows on a worksheet and want to set up
vertical groupings i.e. group columns (A, D, G, J ....) together, and then
(B, E, H, K... together), and so on - final result is that all columns can be
hidden and each 'group' can be displayed on its own. I know that rows can be
grouped together using the 'Group' function but am not sure of columns. Does
anyone know if this can be done on Excel?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,069
Default Multiple column filtering

You can't put non-contiguous columns in the same group. You could use macros
to hide/show multiple selected columns, as follows:

Sub HideGroup1()
Range("B:B,D:D,G:G,J:J").Select
Selection.EntireColumn.Hidden = True
End Sub

Sub ShowGroup1()
Range("B:B,D:D,G:G,J:J").Select
Selection.EntireColumn.Hidden = False
End Sub

The macros could be called from command buttons on the worksheet, keystroke
combinations, a custom toolbar, etc.

If you are new to macros, this link to Jon Peltier's site may be helpful:
http://peltiertech.com/WordPress/200...e-elses-macro/

Hope this helps,

Hutch

"faraz316" wrote:

Hi,

I am trying to group multiple non-consecutive columns so that all columns
can be hidden and each group can be displayed.

I have 40 columns with multiple rows on a worksheet and want to set up
vertical groupings i.e. group columns (A, D, G, J ....) together, and then
(B, E, H, K... together), and so on - final result is that all columns can be
hidden and each 'group' can be displayed on its own. I know that rows can be
grouped together using the 'Group' function but am not sure of columns. Does
anyone know if this can be done on Excel?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Multiple column filtering

Hi,

You can use this macro to toggle the groups on and off:

Sub ToggleGroup()
Range("B:B,D:D,G:G,J:J").Columns.Hidden = not
Range("B:B,D:D,G:G,J:J").Columns.Hidden
End Sub

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"faraz316" wrote:

Hi,

I am trying to group multiple non-consecutive columns so that all columns
can be hidden and each group can be displayed.

I have 40 columns with multiple rows on a worksheet and want to set up
vertical groupings i.e. group columns (A, D, G, J ....) together, and then
(B, E, H, K... together), and so on - final result is that all columns can be
hidden and each 'group' can be displayed on its own. I know that rows can be
grouped together using the 'Group' function but am not sure of columns. Does
anyone know if this can be done on Excel?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Column Auto Filtering Tom Moffatt Excel Discussion (Misc queries) 0 May 27th 08 02:51 PM
Filtering for Unique Records with multiple-column criteria crcurrie Excel Discussion (Misc queries) 5 April 10th 07 10:06 AM
multiple worksheet filtering HHoward Excel Discussion (Misc queries) 1 February 9th 07 02:39 PM
Filtering Multiple Instances SamuelT Excel Discussion (Misc queries) 2 July 27th 06 04:22 PM
trouble filtering a list. Why isn't column filtering? Pat Excel Worksheet Functions 1 July 18th 05 03:30 PM


All times are GMT +1. The time now is 07:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"