Filter entire row of data by criteria of certain (not all) columns

pattobrien

New Member
Joined
Feb 11, 2016
Messages
9
Hi All,

I have several columns of data, (ie. Name, Date, Company) that I want to be able to filter through. But since it doesn't make sense to filter by date or name, for example, I don't want there to be a filter icon for those specific columns. If I just select the columns that I want to filter by (ie. only Company), then sorting/filtering only affects that column, not the entire row of data, so everything becomes unaligned... Is there a solution for this or will I simply need to have the filter icons in every single column in my spreadsheet?

Thanks for the help!

Pat
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Using vba it is possible to hide (or show) the filter arrows for individual columns.
For example, in the sheet below I have an AutoFilter on columns D:J but I want to hide the filter arrow for columns E, F and I (that is the 2nd, 3rd and 6th columns of the filter range.

Rich (BB code):
Sub TurnOffFilterArrows()
  Dim NoFilter As Variant, Itm As Variant

  NoFilter = Split("2 3 6") '<- Columns within the filtered range you want to hide the arrow
  With ActiveSheet.AutoFilter.Range
    For Each Itm In NoFilter
      .AutoFilter Field:=Itm, VisibleDropDown:=False
    Next Itm
  End With
End Sub

20 06 05.xlsm
DEFGHIJ
1Hdr 1Hdr 2Hdr 3Hdr 4Hdr 5Hdr 6Hdr 7
2datadatadatadatadatadatadata
3datadatadatadatadatadatadata
4datadatadatadatadatadatadata
Sheet2 (3)
 
Last edited:
Upvote 0
Using vba it is possible to hide (or show) the filter arrows for individual columns.
For example, in the sheet below I have an AutoFilter on columns D:J but I want to hide the filter arrow for columns E, F and I (that is the 2nd, 3rd and 6th columns of the filter range.

Rich (BB code):
Sub TurnOffFilterArrows()
  Dim NoFilter As Variant, Itm As Variant
 
  NoFilter = Split("2 3 6") '<- Columns within the filtered range you want to hide the arrow
  With ActiveSheet.AutoFilter.Range
    For Each Itm In NoFilter
      .AutoFilter Field:=Itm, VisibleDropDown:=False
    Next Itm
  End With
End Sub

Excel 2010 32 bit
ABCDEFGHIJKL
1Hdr 1Hdr 2Hdr 3Hdr 4Hdr 5Hdr 6Hdr 7
2datadatadatadatadatadatadata
3datadatadatadatadatadatadata
4datadatadatadatadatadatadata

<colgroup><col style="******* 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Hide arrows

Thank you; exactly what I needed!!

Pat
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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