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

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,224,813
Messages
6,181,111
Members
453,021
Latest member
Justyna P

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