PIVOT - column for each month in service

wilkob

New Member
Joined
Nov 9, 2008
Messages
27
I am trying to make a report based on our employee data base

I have the following fields in my list:

Company, Department, Name, Date in service, Date out of service

For my pivot I have a start and end date (example 1-1-2015 till 31-12-2015)

I am showing employees that have a date out of service >= [Start date] or Null

Now my big challenge
For each month that a person has worked I would like to see a value of 1 in my pivot

Example:

Bill : Date in service 1-1-2014
Date out of service

Cathy : Date in service 1-1-2015
Date out of service 29-4-2015

Company Department Name Jan Feb Mar Apr May June Jul Aug
ABC Sales Bill 1 1 1 1 1 1 1 1
ABC Accounting Cathy 1 1 1 1

TOTAL 2 2 2 2 1 1 1 1

Can someone help me and tell me if and how I can make a report this way?
The problem is that I only have 2 dates per employee; in service and out of service
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
in servout serv01/01/201401/02/201401/03/201401/04/201401/05/201401/06/201401/07/201401/08/201401/09/201401/10/201401/11/201401/12/201401/01/201501/02/201501/03/201501/04/2015
bill01/01/201301/01/20991111111111111111
cathy01/03/201410/12/2014111111111
formula for bill under 1/1/14
=IF(AND($C6<E$5,$D6>E$5),1,"")

<colgroup><col><col><col span="2"><col span="3"><col span="14"></colgroup><tbody>
</tbody>
 
Upvote 0
I am sorry but I do not really understand how and where to use the formula :(

To make things clearer I wanted to add a sample Excel but for whatever reason I don't have permission to add attachment

What should I do to get permission?
 
Upvote 0
oooooopppssss this forum does not like the "<" sign



=IF(AND(b2 < a4<e$5,$d6>,b3 > a4),1,"")
b2 = in serv
b3 = out serv

note I used a default out serv date of 2099 for employees currently in service</e$5,$d6>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,216,098
Messages
6,128,812
Members
449,468
Latest member
AGreen17

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