Date range within date range...

weissan

New Member
Joined
Jun 23, 2010
Messages
20
Ok, this is probably simple, but I can't ge my head around it...:confused:

I have two columns (A & B) containing start and end dates for contracts (som 1 week long, others several years long). What I want to do is create a formula that tells me how many contracts have been active (regardless of whether the contract has been active for just 1 day or 365 days) during each and every relevant calendar year. Basically this is statistics for HR workload.

I've created two additional columns with the start and end dates of each relevant calendar year and I've tried to use COUNTIF and COUNTIFS with these... but to no avail.

Help! :eek:

W
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Excel Workbook
ABCDE
1Contract StartContract EndYearCount
26/23/20116/24/201120100
36/23/20126/24/201220111
46/23/20126/23/201520122
56/23/20136/24/201320132
Sheet
 
Upvote 0
Ah, brilliant! Thanks!!!

By now I've already run into the next problem...

I have a list of 3000 names in one column and most names some appear multiple times. I need a way to count the number of unique individuals on the list... suggestions?

Also - but this get's pretty **** complicated - is there a way to get Excel to list every unique text entry in a range and how many times it appears? I have a list of 3000 entries of countries (including misspelled versions, old country names, i.e. Soviet Union). These will later on be made more coherent in the database from where I've export the data, but for now I'd like to get a complete list of all unique entries + how many times that entry appears... Hmmmm...
 
Upvote 0

Forum statistics

Threads
1,215,727
Messages
6,126,521
Members
449,316
Latest member
sravya

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