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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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
Hdr 1Hdr 2Hdr 3Hdr 4Hdr 5Hdr 6Hdr 7
datadatadatadatadatadatadata
datadatadatadatadatadatadata
datadatadatadatadatadatadata

<colgroup><col style="******* 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]2[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]3[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]4[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

</tbody>
Hide arrows

Thank you; exactly what I needed!!

Pat
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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