Excel experts - how...
 

Subscribe now and choose from over 30 free gifts worth up to £49 - Plus get £25 to spend in our shop

[Closed] Excel experts - how to filter on one column

5 Posts
5 Users
0 Reactions
65 Views
Posts: 13417
Full Member
Topic starter
 

I have a sheet with headings across the top and data below. I want to filter the rows shown based on the values for one column. That is easy, I hit the filter button and the little drop down list icon appears next to every header and I just add filters as and when I want.

Unfortunately I need to display lots of columns where the header is a date in the format 14/01, 15/01, 16/01 etc. When I hit the filter button the drop down arrow obscures most of the heading so I cannot tell what date it is.

Any way of not displaying the drop down arrows except on the column I am filtering?


 
Posted : 27/01/2011 2:09 pm
Posts: 0
Free Member
 

You could align your cells to the left instead?


 
Posted : 27/01/2011 2:13 pm
Posts: 0
Free Member
 

Just do a filter, not an autofilter


 
Posted : 27/01/2011 2:14 pm
Posts: 0
Free Member
 

Not that it answers your question, but could you start the filtering a few blank rows above or below the dates in order to leave them visible?


 
Posted : 27/01/2011 2:16 pm
Posts: 13417
Full Member
Topic starter
 

Markie - has come up with he solution I am using.
clubber - that is what I was trying to do but Excel 2010 has 'improved' to the point that I can't work out how to do it.


 
Posted : 27/01/2011 2:59 pm
Posts: 1781
Free Member
 

You could go for a bit of this:

Sub HideSpecifiedArrows()
'hides arrows in specified columns
Dim c As Range
Dim i As Integer
i = Cells(1, 1).End(xlToRight).Column
Application.ScreenUpdating = False

For Each c In Range(Cells(1, 1), Cells(1, i))
Select Case c.Column
Case 1, 3, 4
c.AutoFilter Field:=c.Column, _
Visibledropdown:=False
Case Else
c.AutoFilter Field:=c.Column, _
Visibledropdown:=True
End Select
Next

Application.ScreenUpdating = True
End Sub

But that might over complicate things??


 
Posted : 27/01/2011 3:13 pm