Excel Employee vs Seminar Problem

seanpark22

New Member
Joined
Mar 16, 2017
Messages
4
Hi Champs,

I need some urgent help to sort out data for my organization.

Basically, we have employees who go on official trips mostly for various client locations, seminars, courses etc. Here I need to find number of days employees spent under each seminar.

The data looks like as mentioned below. Table 1: Employee Trips and Table 2: Seminar Schedule.

Here, when ever employees' trips (start/end dates) lie within a seminar start/end dates, I used an array formula to find which seminar did the employee attended (quite straight forward).

However, my formula fails when employee's trip (start/end dates) fall among more than one seminars.

For instance:
Employee XYZ had Trip 1 from 30-dec-2015 to 5-Jan-2016.
However, Seminars he was eligible had Table 2 listings. Here, you can see the his trip dates fall in more than 1 seminars. In this case, his 1st trip falls 2 days in seminar A and 5 days in seminar B.

So, similarly I need to find out number of days employees spent in various seminars during their trips.
Remember, I need to find both 'number of days' and 'seminar name'

TABLE 1
Employee
Trip
Start Date

<colgroup><col width="93"></colgroup><tbody>
</tbody>
End Date
Mr. XYZ

<colgroup><col width="81"></colgroup><tbody>
</tbody>
Trip# 1
30-Dec-15

<colgroup><col width="81"></colgroup><tbody>
</tbody>
5-Jan-16

<colgroup><col width="81"></colgroup><tbody>
</tbody>
Mr. XYZ

<colgroup><col width="81"></colgroup><tbody>
</tbody>
Trip# 2
2-Jul-16

<colgroup><col width="81"></colgroup><tbody>
</tbody>
5-Jul-16

<colgroup><col width="81"></colgroup><tbody>
</tbody>

<tbody>
</tbody>


TABLE 2
Seminar

<colgroup><col width="93"></colgroup><tbody>
</tbody>
Start Date
End Date
A
1-Feb-15

<colgroup><col width="93"></colgroup><tbody>
</tbody>
31-Dec-15

<colgroup><col width="93"></colgroup><tbody>
</tbody>
B
1-Jan-16

<colgroup><col width="93"></colgroup><tbody>
</tbody>
21-Mar-16

<colgroup><col width="93"></colgroup><tbody>
</tbody>
C
6-Jun-16

<colgroup><col width="93"></colgroup><tbody>
</tbody>
4-Jul-16

<colgroup><col width="93"></colgroup><tbody>
</tbody>
D
5-Jul-16

<colgroup><col width="93"></colgroup><tbody>
</tbody>
31-Dec-16

<colgroup><col width="93"></colgroup><tbody>
</tbody>

<tbody>
</tbody>

Feel free to ask question, if you may have.

Anticipating a quick solution for this riddle.

Thanks heaps.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Table 1
EmployeeTripStart DateEnd Date
Mr. XYZTrip# 130-Dec-155-Jan-16
Mr. XYZTrip# 22-Jul-165-Jul-16

<colgroup><col><col><col span="2"></colgroup><tbody>
</tbody>


Table 2
SeminarStart DateEnd Date
A1-Feb-1531-Dec-15
B1-Jan-1621-Mar-16
C6-Jun-164-Jul-16
D5-Jul-1631-Dec-16

<colgroup><col span="3"></colgroup><tbody>
</tbody>
 
Upvote 0
Cross posted https://www.excelforum.com/excel-pr...225379-excel-employee-vs-seminar-problem.html

Cross-Posting
While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0

Forum statistics

Threads
1,215,052
Messages
6,122,878
Members
449,097
Latest member
dbomb1414

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