How do I automatically omit certain info from a pivot table?

xoenix

New Member
Joined
Feb 17, 2015
Messages
15
[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!
 
Last edited:

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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