Way to retrieve employees working during a given year, pivot table filtering

Limone

Board Regular
Joined
Dec 20, 2018
Messages
57
Hi everyone.

I've got a table detailing all employee contract information, including hiring and quitting dates, with all the relative pie charts and pivot tables. I'm trying to find a way to filter the pivot tables so that when someone selects a fiscal year (e.g. "2018"), either in the pivot table or outside of it (but not in the employee table), the only information I get are about employees working in that time frame (including those that may have stopped working for us at some point during that same year or that have been hired right at the end of it).

I'd really want not to have to resort to ways that include lots of helper column in the employee table.

Thanks everyone in advance. I might not be able to report back until Dec 27th.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
I've figured out a formula to retrieve the right employees based on a given year but I'm not sure how to incorporate it into the pivot table.

Since the referenced table is about employees and not the company, the cell containing the year would need to be outside of the pivot table (I'm working on Excel 2007): I have a site detailing a VBA code that lets you insert a report filter based on an external cell (https://www.extendoffice.com/documents/excel/5325-excel-pivot-table-filter-based-on-cell-value.html), but I'm not sure I'd be able to base a formula to it to make everything works.
 
Upvote 0

Forum statistics

Threads
1,224,620
Messages
6,179,927
Members
452,949
Latest member
beartooth91

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