I'm trying to make a calculation of hours worked for each employee on each project that he worked on. But i don't know how to select because the cells that are containing the name of the employee are merged like in the picture. And if i want to see on project no. 3 which are the employees that worked on, the Excel Filtering can't take the name "John" which corresponds only to project no.1. To be more clear, I need to know how the filtering will be made for cells A3 and A4. If i will unmerge the cells, John will be only on cell A2, and in fact he worked also on projects 2 & 3.
Thanks!
If you have a Merged Cell, and you attempt to Filter for it, you will only get the first row:
To fix this, you first need to start by creating your Merged Cells somewhere else, unmerge your filter-cells, and fill the values into all cells:
Then, you can Copy the merged cells, and Paste Special > Formats over the cells you want to merge:
You can now delete your temporary merged cells, and when you filter you will get all rows for the merged cell:
{EDIT} Here is a macro that will automatically apply the changes above to a specified range:
Use
Filter
. It is smart enough to deal with the merged cells. E.g., if you have a filter like this:and you filter projects 2, 3 and 4 then you get this:
which is quite ok.