Merged Cells and Filters

scotthannaford1973

Board Regular
Joined
Sep 27, 2017
Messages
115
Office Version
  1. 2010
Platform
  1. Windows
Hi all

any suggestions appreciated here...

Okay - to keep it simple, what I effectively have is a spread sheet with two columns:

(A) - the first column is made up of merged cells, three cells in each (i.e. A1 is made up of A1, A2, A3; A4 is made up of A$, A5, A6 etc)
(B) - this column has standard unmerged cells

Column A has the merged cells with content that I want to filter, and Column B has content - and I want all three cells of column B to appear when I filter column A.

Generally, when you filter a merged cell in Excel (i.e. A1, A2, A3), the results only show the cell that had the content, so I might see A2 and not A1 and A3.

What I would like is to be able to apply a filter that either shows all rows that form the merged cell, or be able to specify "display filtered row plus two rows above" or something similar.

cheers!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Best advice is to remove the merged cells & fill the now empty cells with the value
 
Upvote 0
In that case you will either need a helper column like


Excel 2013/2016
AB
1flufffluff
2fluff
3fluff
4fluff
5nextnext
6next
7next
Quote
Cell Formulas
RangeFormula
B1=A1
B2=IF(A2="",B1,A2)

Where A1:A4 & A5:A7 are merged

Or you'll need VBA, but VBA hates merged cells
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,185
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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