简体   繁体   中英

Excel filtering of merged cells - extension

I'm trying to filter an excel which contains merged cells. My data is laid out similar to the example below.

例如1

I found a similar answered question here . The answer to this question works well for my spreadsheet initially, however the spreadsheet I'm applying this to is a live document. If a new row is added later, this new row isn't recognised by the filter. The images below hopefully explain what I mean.

Filtering category 2:

例2

Adding extra row:

eg3

Filtering after extra row is added - new row doesn't appear:

例4

I believe this happens because when a new row is inserted, the category cell (in my example cell A6) is blank, rather than containing a value. When I unmerge the cells in column AI get this (A6 is blank):

例5

I also tried copying an existing row and inserting it, hoping this would fill in the blank cell, but it had the same result.

Is there any more robust way of achieving a filter on the merged cells, which will accept new rows being added? I know a simple alternative would be to leave column A unmerged, however with the size of the spreadsheet this would look very messy. This spreadsheet is used by quite a few people and mostly edited using Excel online (on MS Teams) so macros aren't a desirable solution either. Any help would be greatly appreciated.

Try the following: Select your unmerged range, click Home > Find & Select > Go To Special. In the Go To Special dialog box, select Blanks and click OK. All blanks from your range are now selected and if you press Arrow Up one time followed by ctrl + enter All the blank cels will now contain the value from the cell above.

I believe that solves your problem without VBA.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM