Show filtered value from row 5

patni

Board Regular
Joined
Jul 22, 2018
Messages
58
Hey guys ,

I got his code to filter the sheet based on cell value in range "X1:AA2"
Thanks to PCI and Richard for this code,


File-Copy-icon.png

<code style="margin: 0px; padding: 0px; font-style: inherit; font-weight: inherit; line-height: 12px;">Private Sub Worksheet_Change(ByVal Target As Range)
If (Intersect(Target, Range("X1:AA2")) Is Nothing) Then Exit Sub
Range("A1:Z50000").CurrentRegion.AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:=Range("X1:AA2")
End Sub</code>

the problem is that when I type in the range "X1:AA2" , then it hides these ranges as well because it filters and displays the data from row 2 onwards.


Is there any way to display the filered results from row 5 onwards?

This will ensure that my range for filerting stays right at the top.

I am not able to attach any file

This post is cross posted. Here is the link to it.
https://www.excelforum.com/excel-pr...ed-filter-modifying-formulae.html#post4941553

I would be grateful if anyone could help me
 
Last edited by a moderator:

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,223,911
Messages
6,175,329
Members
452,635
Latest member
laura12345

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