#1   Report Post  
Posted to microsoft.public.excel.misc
CMD CMD is offline
external usenet poster
 
Posts: 34
Default filtering

Hi. I use AutoFilter a lot to filter based on what information is contained
in a column. Is it possible to filter based on rows as well? For example,
show only columns that have this value in this row. Thanks.

Chris
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default filtering

Chris,

There is no built-in functionality to do that. You could use a macro, if you are comfortable with
that - for example, if you only wanted to show columns B to H if their value on the activecell's row
is Show Me, then you could use

Sub TryNow()
Dim myC As Range
For Each myC In Intersect(ActiveCell.EntireRow.Cells, Range("B:H"))
If myC.Value = "Show Me" Then
myC.EntireColumn.Hidden = False
Else
myC.EntireColumn.Hidden = True
End If
Next myC
End Sub


HTH,
Bernie
MS Excel MVP


"CMD" wrote in message
...
Hi. I use AutoFilter a lot to filter based on what information is contained
in a column. Is it possible to filter based on rows as well? For example,
show only columns that have this value in this row. Thanks.

Chris



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default filtering

Hi Chris

Debra Dalgleish has a downloadable example at
http://www.contextures.com/AdvFilterStateNum.zip

--
Regards
Roger Govier

"CMD" wrote in message
...
Hi. I use AutoFilter a lot to filter based on what information is
contained
in a column. Is it possible to filter based on rows as well? For
example,
show only columns that have this value in this row. Thanks.

Chris


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
Filtering Pam in California Excel Discussion (Misc queries) 1 February 12th 06 07:52 PM
Filtering SamGB Excel Discussion (Misc queries) 3 February 8th 06 09:42 PM
filtering coconutt Excel Discussion (Misc queries) 1 February 8th 06 05:59 PM
trouble filtering a list. Why isn't column filtering? Pat Excel Worksheet Functions 1 July 18th 05 03:30 PM
filtering dave glynn Excel Discussion (Misc queries) 6 April 25th 05 05:55 PM


All times are GMT +1. The time now is 09:48 AM.

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"