[Solved] AutoFilter extends Data Range

Discuss the spreadsheet application
Locked
Phillip
Posts: 110
Joined: Wed Jan 09, 2013 1:50 pm

[Solved] AutoFilter extends Data Range

Post by Phillip »

Having previously had problems with Data Ranges and Autofilter I thought I had it cracked it however:
In the attached spreadsheet I created a Data Range "AcS" cells d4:d9
I then selected this Range (Data>Select Range> Acs)
Then I added an Autofilter (Data> AutoFilter)
When I checked by Select Range the cells highlighted were still d4:d9

However when first used the Autofilter it displayed the values held in cells d4:d17
Worse when I checked the "AcS" range again - Data > Select Range - it how highlights cells d4:d17
In addition Data > Define now shows the "AcS" range has been changed to cells d4:d17

Any idea how to stop this annoying behaviour?

Thinking that it might be due to data being below the range, I tested using Range "CatsU" - cells e4:d9 when there was no data in column e below e9.
All was ok until - I entered a value in e13.
The first use of the Autofilter in e4 extended the CatsU range to also include cells e10:e13!

This would appear to be a new bug as in existing spreadsheets the Auto Filter range does not get extended - Thankfully.
Autofilter extends Ranges.ods
(15.38 KiB) Downloaded 103 times
Last edited by MrProgrammer on Wed Mar 11, 2026 9:34 pm, edited 1 time in total.
Reason: Tagged ✓ [Solved]; Solution provided and no response from Phillip
Apache Open Office 4.1.16, Windows 7 Professional 64-bit
morchat
Posts: 58
Joined: Wed Dec 26, 2012 6:13 pm
Location: Poland

Re: AutoFilter extends Data Range

Post by morchat »

I noticed a similar effect when using data validation when data columns were adjacent. I solved this by inserting empty and then hidden columns between them. I did this in your workbook.
Attachments
Autofilter extends Ranges (1).ods
(15.83 KiB) Downloaded 115 times
AOO 4.1.16, LibreOffice 25.8
Windows 11 64 bits
Locked