+ Reply to Thread
Results 1 to 9 of 9

How to filter merged cells

  1. #1
    Registered User
    Join Date
    04-03-2017
    Location
    Germany
    MS-Off Ver
    MS Office 2013
    Posts
    36

    How to filter merged cells

    Hello everyone!

    I have a question regarding filtering merged cells. In fact I think there is no solution for my problem whatsoever due to the merged cells, but if this is the case, I just want this confirmation from the excel experts ;-)

    Please have a look at the attached excel file. I want to filter data in column C (merged cells) and E (no merged cells), but without using the normal filter function.

    If I would use the normal function and filter for 'Peter' in column C, it will obviously only display row 5 and 14. However, I want to type 'Peter' in cell C1 and as a result, everything within A5:E8 and A14:E17 should be displayed.

    Same procedure for the column E. If I would filter for the letter 'F', it will only display row 10 and 19. However, I want to type 'F' in cell E1 and as a result, everything within A9:E12 and A18:E21 should be displayed.

    Hope that anyone can help. If there is no solution, please let me know any ideas you have to maybe rearrange the data to make it work somehow. Any ideas actually would be helpful.

    Thanks!
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: How to filter merged cells

    We always advise against using merged cells, it creates all sorts of problems, 1 of which is sorting. Have not looked at our file, but if you have merged cells, unmerge them if at all possible
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    04-03-2017
    Location
    Germany
    MS-Off Ver
    MS Office 2013
    Posts
    36

    Re: How to filter merged cells

    I could unmerge the cells, but then my file wouldn't make sense anymore. Also, in my example, the problem would remain the same for column E.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: How to filter merged cells

    Try this, using a helper column - I used F...
    =IF(C5="",F4,C5)
    copied down

    Then filter on the helper

  5. #5
    Registered User
    Join Date
    04-03-2017
    Location
    Germany
    MS-Off Ver
    MS Office 2013
    Posts
    36

    Re: How to filter merged cells

    I don't get this. Can you please amend my file?

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: How to filter merged cells

    as per fdibbins suggestion
    Attached Files Attached Files
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  7. #7
    Registered User
    Join Date
    04-03-2017
    Location
    Germany
    MS-Off Ver
    MS Office 2013
    Posts
    36

    Re: How to filter merged cells

    Ok I get this now. The bigger problem however is column E. I want to filter single cells but the outcome should be 4 rows in total. And this amount of rows varies in my actual file. Sometimes it's more, sometimes less. Do you have a solution for this as well?

  8. #8
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: How to filter merged cells

    i would have a manual way of doing it but its probably not what you want to do
    another help column that looks at column rating to determine which country manager you should filter
    ie
    in column G
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    what it leaves you with is country manager to filter on...

    what you are asking probably requires VBA to do the automation but i dont know what your level of VBA is as you would need to understand it in order to amend it at a later stage

  9. #9
    Registered User
    Join Date
    04-03-2017
    Location
    Germany
    MS-Off Ver
    MS Office 2013
    Posts
    36

    Re: How to filter merged cells

    Ok thank you, I think I found a solution by doing it manually.
    Last edited by Superlan; 04-21-2017 at 05:50 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. filter on merged cells
    By carkalete23 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-03-2016, 05:56 AM
  2. Replies: 19
    Last Post: 02-10-2016, 05:49 AM
  3. Filter with merged cells
    By Simon.xlsx in forum Excel General
    Replies: 0
    Last Post: 10-21-2014, 07:57 AM
  4. How to use filter with merged cells
    By Elainefish in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-29-2013, 09:32 AM
  5. auto filter is now working with merged cells
    By jessy_com in forum Excel General
    Replies: 2
    Last Post: 02-07-2008, 12:36 PM
  6. Replies: 2
    Last Post: 07-05-2006, 05:10 AM
  7. auto filter in merged cells
    By plainclothman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-18-2006, 08:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1