Modifying Training due date based upon Leave date

amit_16

New Member
Joined
Oct 4, 2019
Messages
1
Hello,

I've below two sets of data in different excel sheets

1) Training data - it contains User ID, Training Start date and Training Due date
2) Leave data - it contains User ID, Leave Start date and Leave End date


User can have multiple training which are assigned through out the year and similarly a User can be on leave multiple times in a year.

I need a Vba code which should check a) if a leave falls during Training duration, if yes add back certain number of days in Training due date
b) if Leave duration doesn't fall between Training duration, it should show original Training due date c) there are other conditions as well but i believe if i knew these two I'll able to add other conditions.

Vba code should loop first each training against all the Leave dates and then move to second user.

Let me know if any other information is required.

Thanks in advance!!!
 

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.

Forum statistics

Threads
1,223,885
Messages
6,175,179
Members
452,615
Latest member
bogeys2birdies

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