Hi guys,
I often search this forums for advice for issues, you guys have been great. Today I come to you with my own problem. \
My goal is to fill in 'Number of days' using a Vlookup function with the number of days from Date sheet 2. Still not sure what the best way to do it is, either specifying the number of days or sum product total days if the dates in Data Sheet 1 correspond with dates in the Data Sheet 2.
Thanks for the help Drew
Data sheet 1
[TABLE="width: 700"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Employee ID[/TD]
[TD]Leave start date[/TD]
[TD]Leave end date[/TD]
[TD]Overlapping dates (Y/N)[/TD]
[TD]Number of days[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]200123[/TD]
[TD]27/04/2011[/TD]
[TD]6/01/2012[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]200123[/TD]
[TD]16/01/2012[/TD]
[TD]26/02/2012[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]200123[/TD]
[TD]22/04/2014[/TD]
[TD]27/05/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]200456[/TD]
[TD]01/03/2010[/TD]
[TD]01/09/2010[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Data sheet 2
[TABLE="width: 600"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Employee ID[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[TD]Days taken[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]200123[/TD]
[TD]4/05/2011[/TD]
[TD]31/05/2011[/TD]
[TD]26[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]200123[/TD]
[TD]22/01/2012[/TD]
[TD]29/01/2012[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]200123[/TD]
[TD]11/05/2014[/TD]
[TD]13/05/2014[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]200456[/TD]
[TD]9/06/2010[/TD]
[TD]11/06/2010[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
I often search this forums for advice for issues, you guys have been great. Today I come to you with my own problem. \
My goal is to fill in 'Number of days' using a Vlookup function with the number of days from Date sheet 2. Still not sure what the best way to do it is, either specifying the number of days or sum product total days if the dates in Data Sheet 1 correspond with dates in the Data Sheet 2.
Thanks for the help Drew
Data sheet 1
[TABLE="width: 700"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Employee ID[/TD]
[TD]Leave start date[/TD]
[TD]Leave end date[/TD]
[TD]Overlapping dates (Y/N)[/TD]
[TD]Number of days[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]200123[/TD]
[TD]27/04/2011[/TD]
[TD]6/01/2012[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]200123[/TD]
[TD]16/01/2012[/TD]
[TD]26/02/2012[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]200123[/TD]
[TD]22/04/2014[/TD]
[TD]27/05/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]200456[/TD]
[TD]01/03/2010[/TD]
[TD]01/09/2010[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Data sheet 2
[TABLE="width: 600"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Employee ID[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[TD]Days taken[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]200123[/TD]
[TD]4/05/2011[/TD]
[TD]31/05/2011[/TD]
[TD]26[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]200123[/TD]
[TD]22/01/2012[/TD]
[TD]29/01/2012[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]200123[/TD]
[TD]11/05/2014[/TD]
[TD]13/05/2014[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]200456[/TD]
[TD]9/06/2010[/TD]
[TD]11/06/2010[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]