How calc mnths emps were emply'd fm dts of hire,fire+rehire?

Jandy

New Member
Joined
Apr 30, 2003
Messages
41
Hi, how would I create a report like this one? It looks to me like a pivot table's the way to go, but how would I feed it? There are 1041 records so it would be great to either find a formula for the database or one to create a calculated field in the table.
MrXL BBS que.xls
ABCDE
1Dummy Data
2Employee IDDeptDOHTermDtRehireDt
3434Charlie29-Apr-77
450Alpha3-Jan-055-Oct-05
551Alpha1-Mar-66
6260Echo3-Sep-042-Nov-04
7221Alpha15-Jun-0414-Aug-048-Sep-04
8
9Sample Report (doesn't correspond to dummy data)
10DepartmentDateActive EmployeesTerminations
11Alpha30-Apr-0420
1231-May-0420
1330-Jun-0430
14Bravo30-Apr-0421
1531-May-0410
1630-Jun-0410
17Charlie30-Apr-0410
1831-May-0410
1930-Jun-0410
Samples


TIA,

Jandy
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Found an answer:

Filter col F for blanks & enter "1" in col's G:I

Flter col F for non-blanks & enter this in col's G:I:
=IF(AND((G$3>=MIN($C5,$D5)),G$3<=MAX($C5,$D5)),1,"")

Filter col F for non-blanks & enter this in col's J:L:
=IF($F5="","",IF($F5=J$3,1,""))

Create pivot table
MrXL BBS que.xls
ABCDEFGHIJKL
1Dummy DataActive EmployeesTerminations
2
3Employee IDDeptDOHTermDtHire EOMONTHTerm EOMONTH30-Apr-0431-May-0430-Jun-044/30/045/31/046/30/04
4434Charlie29-Apr-7730-Apr-77 111   
550Alpha3-Apr-045-Jun-0430-Apr-0430-Apr-0411 1  
651Alpha1-Mar-6631-Mar-66 111   
7260Echo3-Mar-022-Nov-0431-Mar-0231-Mar-02111   
8221Alpha15-Jun-0414-Aug-0430-Jun-0430-Jun-04  1  1
9221Alpha8-Sep-0430-Sep-04 111   
Samples
 
Upvote 0

Forum statistics

Threads
1,214,826
Messages
6,121,795
Members
449,048
Latest member
greyangel23

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