Count of Days per month for a contract period

sspilla

New Member
Joined
Dec 14, 2020
Messages
4
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi All -

I have a list of employees and their billing period against each contract.
I need to calculate the days billed for each employee against each contract by month for last 12 months.
My worksheet is as below:
1607939565979.png

My expected result is as below:
1607939666169.png


Thanks in advance.

Regards,
SSP
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
hi sspilla,
Welcome to the board.

Pasting screenshots of the data does not provide actual data to work with. I would suggest providing sample data using xl2bb addon. This way it would be much easier for everyone trying to help, to work with your query and suggest solution.
 
Upvote 0
Hi All -

20201214_Deployed Emp in FT_FT Utilization_WIP.xlsx
ABCDEFGH
1Employee IdEmployee NameEmployee Substatus NameContract noStart dateEnd dateDeployed- Jan'20Deployed- Feb'20
2491HALIMA MUHAMMEDUnder billingIND-FT-0098702/12/20203/12/2020No17
3793RAM LAKHANUnder billingIND-FT-00796312/15/20192/23/20203123
4800SHEIKH MATINUnder billingIND-FT-0089391/6/20204/4/20202529
5800SHEIKH MATINUnder billingIND-FT-0111104/5/20207/3/2020NoNo
61084FREWIENI MEDHN TESFAHANESUnder billingIND-FT-0070059/26/20196/30/20203129
71086YRGALEM GHEBREYESUS MATIWOSUnder billingIND-FT-00045110/22/20199/4/20203129
81088SENAYIT WELDEMIKAEL GEBREABUnder billingIND-FT-00822412/30/20191/23/2020NoNo
91088SENAYIT WELDEMIKAEL GEBREABUnder billingIND-FT-0027431/30/20202/1/202021
101088SENAYIT WELDEMIKAEL GEBREABUnder billingIND-FT-0097192/6/20209/30/2020No23
111089SHEWIT GEBREZGABIHER ARAYAUnder billingIND-FT-0028091/13/20209/3/20201829
121090TEGSTI TESFAY SEBHATUUnder billingIND-FT-00178112/7/20181/1/2020NoNo
131095SENAIT KFLEMARIAM MESGNAUnder billingIND-FT-0045501/17/20202/15/20201415
141095SENAIT KFLEMARIAM MESGNAUnder billingIND-FT-0110883/17/20204/8/2020NoNo
151753YODIT OQBATSION UQBAMIKAELUnder billingIND-FT-0111744/26/20206/25/2020NoNo
161756ALEM UQBAY ABRAHALEYUnder billingIND-FT-0110884/9/20204/14/2020NoNo
Sheet5
 
Upvote 0
hi sspilla,
Welcome to the board.

Pasting screenshots of the data does not provide actual data to work with. I would suggest providing sample data using xl2bb addon. This way it would be much easier for everyone trying to help, to work with your query and suggest solution.
Thanks for the pointer. I have given the data using xl2bb addon
 
Upvote 0
Thanks for the response.
please explain, what to make of "NO" in columns G and H.
 
Upvote 0
Thanks for the response.
please explain, what to make of "NO" in columns G and H.
In Cell G2, the start date is Feb-12,2020. Hence the deployment in Jan 2020 is No and in Feb (Cell H2) there will be 17 days.
 
Upvote 0
Make these changes. Enter dates.
G1=1 Jan 2020
H1 =1 Feb 2020
In G2 then copied across

=MAX(0,MIN(EOMONTH(G$1,0),$F2)-MAX(G$1,$E2)+1)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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