[TABLE="width: 500, align: left"]
<tbody>[TR]
[TD]Leader
[/TD]
[TD]Employee
[/TD]
[TD]Week Ending
[/TD]
[TD]Avg Hours Worked
[/TD]
[/TR]
[TR]
[TD]AA
[/TD]
[TD]Mr. Smith
[/TD]
[TD]06/30/2019
[/TD]
[TD]4.5
[/TD]
[/TR]
[TR]
[TD]AA
[/TD]
[TD]Mr. Smith
[/TD]
[TD]07/07/2019
[/TD]
[TD]5.75
[/TD]
[/TR]
[TR]
[TD]AA
[/TD]
[TD]Mr. Smith
[/TD]
[TD]07/14/2019
[/TD]
[TD]4.25
[/TD]
[/TR]
[TR]
[TD]AA
[/TD]
[TD]Mr. Smith
[/TD]
[TD]07/21/2019
[/TD]
[TD]5.0
[/TD]
[/TR]
[TR]
[TD]BB
[/TD]
[TD]Dr. Brown
[/TD]
[TD]06/30/2019
[/TD]
[TD]2.0
[/TD]
[/TR]
[TR]
[TD]BB
[/TD]
[TD]Dr. Brown
[/TD]
[TD]07/07/2019
[/TD]
[TD]2.5
[/TD]
[/TR]
[TR]
[TD]CC
[/TD]
[TD]Mrs. Taylor
[/TD]
[TD]06/30/2019
[/TD]
[TD]4.25
[/TD]
[/TR]
[TR]
[TD]CC
[/TD]
[TD]Mrs. Taylor
[/TD]
[TD]07/07/2019
[/TD]
[TD]6.5
[/TD]
[/TR]
[TR]
[TD]CC
[/TD]
[TD]Mrs. Taylor
[/TD]
[TD]07/14/2019
[/TD]
[TD]6.25
[/TD]
[/TR]
[TR]
[TD]CC
[/TD]
[TD]Mrs. Taylor
[/TD]
[TD]07/21/2019
[/TD]
[TD]7.5
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Hello everyone. I have 10000+ lines of data I use to create a pivot table every week. Is there an easy way to omit results in that do not meet a certain criteria. For example, in this graph, I would like to omit employees from the pivot table that had no hours or no entries for the two most recent week ending dates - 7/14 and 7/21 in this example. Using that logic, the pivot table would only summarize data for Mr. Smith and Mrs. Taylor. It would omit Dr. Brown because he did not have any hours for the most recent two weeks. Thoughts? Please bear in mind again there are over 10000 lines. Any help would be greatly appreciated. Thanks!
<tbody>[TR]
[TD]Leader
[/TD]
[TD]Employee
[/TD]
[TD]Week Ending
[/TD]
[TD]Avg Hours Worked
[/TD]
[/TR]
[TR]
[TD]AA
[/TD]
[TD]Mr. Smith
[/TD]
[TD]06/30/2019
[/TD]
[TD]4.5
[/TD]
[/TR]
[TR]
[TD]AA
[/TD]
[TD]Mr. Smith
[/TD]
[TD]07/07/2019
[/TD]
[TD]5.75
[/TD]
[/TR]
[TR]
[TD]AA
[/TD]
[TD]Mr. Smith
[/TD]
[TD]07/14/2019
[/TD]
[TD]4.25
[/TD]
[/TR]
[TR]
[TD]AA
[/TD]
[TD]Mr. Smith
[/TD]
[TD]07/21/2019
[/TD]
[TD]5.0
[/TD]
[/TR]
[TR]
[TD]BB
[/TD]
[TD]Dr. Brown
[/TD]
[TD]06/30/2019
[/TD]
[TD]2.0
[/TD]
[/TR]
[TR]
[TD]BB
[/TD]
[TD]Dr. Brown
[/TD]
[TD]07/07/2019
[/TD]
[TD]2.5
[/TD]
[/TR]
[TR]
[TD]CC
[/TD]
[TD]Mrs. Taylor
[/TD]
[TD]06/30/2019
[/TD]
[TD]4.25
[/TD]
[/TR]
[TR]
[TD]CC
[/TD]
[TD]Mrs. Taylor
[/TD]
[TD]07/07/2019
[/TD]
[TD]6.5
[/TD]
[/TR]
[TR]
[TD]CC
[/TD]
[TD]Mrs. Taylor
[/TD]
[TD]07/14/2019
[/TD]
[TD]6.25
[/TD]
[/TR]
[TR]
[TD]CC
[/TD]
[TD]Mrs. Taylor
[/TD]
[TD]07/21/2019
[/TD]
[TD]7.5
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Hello everyone. I have 10000+ lines of data I use to create a pivot table every week. Is there an easy way to omit results in that do not meet a certain criteria. For example, in this graph, I would like to omit employees from the pivot table that had no hours or no entries for the two most recent week ending dates - 7/14 and 7/21 in this example. Using that logic, the pivot table would only summarize data for Mr. Smith and Mrs. Taylor. It would omit Dr. Brown because he did not have any hours for the most recent two weeks. Thoughts? Please bear in mind again there are over 10000 lines. Any help would be greatly appreciated. Thanks!
Last edited: