Filter leaves last row of data visible regardless of what is filtered

frank_AL

Active Member
Joined
Oct 30, 2015
Messages
467
I have a test file from my customer that I am using to develop a program for him. As part of the program I filter the data based on Customer; Column B. The problem I am having is regardless of how I filter, the last row of data; Row 125 remains visible. As I was preparing the file to be posted here I put the value 0 in Column C and then copied it across all remaining columns to Column AN. After doing this, I checked that the filter error still existed but the error had cleared. Any filter I tested at that point filtered as expected. So, I undid the copy across to all columns and the filter error reoccurred.

At that point, I started copy column C with all zeroes 1 column at a time and then rechecking for the filter error. From column D to column Y when I copied the zeroes the error remained. However, when I copied the zeroes to column Z "New Commission Cost" the error cleared. I have checked the formula to ensure it is consistent down the entire column. I also define a named range that encompassed all data and that had no impact on the results experienced.

FYI, the normal process in my program is to sort on the Account Manager name in column A before filtering in column B. I have changed all names to John Smith so that employee names are not exposed. I saw no way to sanitize the Customer names without impacted the specific issue I am experiencing.

For the life of me I can't figure out what is causing this problem. Any and all help would be greatly appreciated.

In order to get my mini file small enough to post I had to delete quite a few columns so the column in question is now column D. I have verified on this smaller version of the file the problem still exists and acts exactly as I have described.

Price Change File.xlsx
ABCDEF
1Account ManagerCustomerMeasure Other New Commission Cost $ CC change
2John Smith3D Corporate Solutions00$ -#REF!
3John Smith3D Corporate Solutions00$ -#REF!
4John SmithAdvance Pierre Foods, Inc. Enterprise Plant00$ -#REF!
5John SmithAdvance Pierre/Allied Specialty Foods00$ -#REF!
6John SmithAjinomoto Foods00$ -#REF!
7John SmithALLIANCE WATER RESOURCES00$ -#REF!
8John SmithALLIANCE WATER RESOURCES00$ -#REF!
9John SmithAlma Water Department00$ -#REF!
10John SmithAmerex Corporation00$ -#REF!
11John SmithATOKA RURAL WATER #400$ -#REF!
12John SmithButterball, LLC00$ -#REF!
13John SmithCHEROKEE CO RWD #1600$ -#REF!
14John SmithCity of Bay Springs Industrial Park Treatment Fac00$ -#REF!
15John SmithCity of Bay Springs Industrial Park Treatment Fac00$ -#REF!
16John SmithCity of Fort Smith00$ -#REF!
17John SmithCity of Fort Smith00$ -#REF!
18John SmithCity of Meridian, WWTP00$ -#REF!
19John SmithClarksville Connected Utilities00$ -#REF!
20John SmithCONWAY CO REGIONAL WATER00$ -#REF!
21John SmithCooper Farms Processing00$ -#REF!
22John SmithCreekstone Farms Premium Beef, LLC00$ -#REF!
23John SmithDiversified Foods and Seasonings LLC00$ -#REF!
24John SmithDunn Paper00$ -#REF!
25John SmithDunn Paper00$ -#REF!
26John SmithDunn Paper00$ -#REF!
27John SmithEmmi Roth USA, Inc00$ -#REF!
28John SmithEUFAULA, CITY OF00$ -#REF!
29John SmithFT GIBSON, TOWN OF00$ -#REF!
30John SmithGeorges, Inc.00$ -#REF!
31John SmithGolden Rod Broilers, Inc.00$ -#REF!
32John SmithGRAND RIVER DAM AUTHORITY (GRDA)00$ -#REF!
33John SmithGuntersville Water and Sewer00$ -#REF!
34John SmithHarChem Water Services00$ -#REF!
35John SmithHiland Dairy Foods00$ -#REF!
36John SmithHouse of Raeford - Nesmith00$ -#REF!
37John SmithHuntsville Water Utilities00$ -#REF!
38John SmithHydro Solutions00$ -#REF!
39John SmithINFRAMARK MCALESTER00$ -#REF!
40John SmithInTerraChem, LLC00$ -#REF!
41John SmithKlondike Cheese Co00$ -#REF!
42John SmithKoch Food of Ashland LLC00$ -#REF!
43John SmithKoch Foods of Cincinnati00$ -#REF!
44John SmithKoch Foods of MS LLC00$ -#REF!
45John SmithKrebs Utilities Authority00$ -#REF!
46John SmithLONGTOWN RW&S DISTRICT #100$ -#REF!
47John SmithLonoke White PWA00$ -#REF!
48John SmithLonoke White PWA00$ -#REF!
49John SmithMars Petcare US ARK00$ -#REF!
50John SmithMetal Coaters00$ -#REF!
51John SmithMr. Dells Foods, LLC00$ -#REF!
52John SmithMULBERRY, CITY OF00$ -#REF!
53John SmithMUSKOGEE CITY OF00$ -#REF!
54John SmithNebraska City Utilities00$ -#REF!
55John SmithNebraska City Utilities00$ -#REF!
56John SmithONE TIME CUSTOMER00$ -#REF!
57John SmithOzark Water Department00$ -#REF!
58John SmithPeco Foods00$ -#REF!
59John SmithPeco Foods00$ -#REF!
60John SmithPeco Foods00$ -#REF!
61John SmithPeco Foods00$ -#REF!
62John SmithPeco Foods00$ -#REF!
63John SmithPeco Foods West Point00$ -#REF!
64John SmithPerdue Farms LLC - Cromwell00$ -#REF!
65John SmithPerdue Farms, Inc - Georgetown00$ -#REF!
66John SmithPilgrims Pride - Athens GA Processing Facility00$ -#REF!
67John SmithPilgrim's Pride Corp - DeQueen00$ -#REF!
68John SmithPlymouth Tube Co00$ -#REF!
69John SmithProcessors, Inc.00$ -#REF!
70John SmithProcessors, Inc.00$ -#REF!
71John SmithProcessors, Inc.00$ -#REF!
72John SmithS.O.W.C00$ -#REF!
73John SmithSanderson Farms00$ -#REF!
74John SmithSanderson Farms00$ -#REF!
75John SmithSanderson Farms00$ -#REF!
76John SmithSanderson Farms00$ -#REF!
77John SmithSanderson Farms00$ -#REF!
78John SmithSanderson Farms00$ -#REF!
79John SmithSanderson Farms00$ -#REF!
80John SmithSanderson Farms00$ -#REF!
81John SmithSanderson Farms00$ -#REF!
82John SmithSanderson Farms, Inc.00$ -#REF!
83John SmithSARDIS LAKE WATER AUTHORITY00$ -#REF!
84John SmithSchwan's Global Supply Chain00$ -#REF!
85John SmithSentinel Solutions Inc00$ -#REF!
86John SmithSentinel Solutions Inc00$ -#REF!
87John SmithSiloam Springs Water & Wastewater00$ -#REF!
88John SmithSouthern Hens, Inc.00$ -#REF!
89John SmithStage 3 Separation, LLC00$ -#REF!
90John SmithStage 3 Separation, LLC00$ -#REF!
91John SmithTwin Rivers Foods, Inc. - Atkins00$ -#REF!
92John SmithTyson Foods, Inc00$ -#REF!
93John SmithTyson Foods, Inc.00$ -#REF!
94John SmithTyson Foods, Inc.00$ -#REF!
95John SmithTyson Foods, Inc.00$ -#REF!
96John SmithTyson Foods, Inc.00$ -#REF!
97John SmithTyson Foods, Inc.00$ -#REF!
98John SmithTyson Foods, Inc.00$ -#REF!
99John SmithTyson Foods, Inc.00$ -#REF!
100John SmithTyson Foods, Inc.00$ -#REF!
101John SmithTyson Foods, Inc.00$ -#REF!
102John SmithTyson Foods, Inc.00$ -#REF!
103John SmithTyson Foods, Inc.00$ -#REF!
104John SmithTyson Foods, Inc.00$ -#REF!
105John SmithTyson Foods, Inc.00$ -#REF!
106John SmithTyson Foods, Inc.00$ -#REF!
107John SmithTyson Foods, Inc.00$ -#REF!
108John SmithTyson Foods, Inc.00$ -#REF!
109John SmithTyson Foods, Inc.00$ -#REF!
110John SmithTyson Foods, Inc.00$ -#REF!
111John SmithTyson Foods, Inc.00$ -#REF!
112John SmithTyson Foods, Inc.00$ -#REF!
113John SmithTyson Foods, Inc.00$ -#REF!
114John SmithTyson Foods, Inc.00$ -#REF!
115John SmithTyson Foods, Inc.00$ -#REF!
116John SmithTyson Foods, Inc.00$ -#REF!
117John SmithTyson Foods, Inc. Berry Street00$ -#REF!
118John SmithTyson Foods, Inc. Chicken Quick00$ -#REF!
119John SmithTyson River Valley Animal Foods - Forest00$ -#REF!
120John SmithUtilities Inc of Louisiana00$ -#REF!
121John SmithUtilities Inc of Louisiana00$ -#REF!
122John SmithVEOLIA REDOAK-LATIMER00$ -#REF!
123John SmithWATER DEPOT00$ -#REF!
124John SmithWATER DEPOT00$ -#REF!
125John SmithWATER DEPOT00$ -#REF!
Blended Sheet
Cell Formulas
RangeFormula
E2:E125E2=SUBTOTAL(9,D2:D2)
F2:F125F2=E2-#REF!
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
I believe the problem is your use of SUBTOTAL formulas. If memory serves, you can fix that by amending it to something like:

=0+SUBTOTAL(9:D2:D2)
 
Upvote 0
Solution
I believe the problem is your use of SUBTOTAL formulas. If memory serves, you can fix that by amending it to something like:

=0+SUBTOTAL(9:D2:D2)
Rory, you are correct, I made the change in the formula and that resolved the Filter issue I had been experiencing. Thank you so much for being willing to share your outstanding technical expertise! But I'll have to say it boggles my mind that that problem in Column Z was causing a filtering problem in Column B. Nevertheless thanks again! (y)
 
Upvote 0

Forum statistics

Threads
1,215,012
Messages
6,122,682
Members
449,091
Latest member
peppernaut

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