Hello Gurus,
Need your help with the following:
Table 1: Has the following values
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Employee[/TD]
[TD]Value[/TD]
[TD]Numbering[/TD]
[/TR]
[TR]
[TD]2019-05-15[/TD]
[TD]12345[/TD]
[TD]10[/TD]
[TD]Fill this row[/TD]
[/TR]
[TR]
[TD]2019-01-04[/TD]
[TD]11111[/TD]
[TD]1[/TD]
[TD]Fill this row[/TD]
[/TR]
</tbody>[/TABLE]
Table 2: has the following values with a start date and end date as a range and 2019-05-15 could be in one of the range for this employee
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Employee[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[TD]Value[/TD]
[TD]Units[/TD]
[TD]Numbering[/TD]
[/TR]
[TR]
[TD]11111[/TD]
[TD]2019-01-01[/TD]
[TD]2019-01-05[/TD]
[TD]11[/TD]
[TD]days[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]2019-01-01[/TD]
[TD]2019-04-05[/TD]
[TD]72[/TD]
[TD]days[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]12345[/TD]
[TD]2019-05-10[/TD]
[TD]2019-05-25[/TD]
[TD]13[/TD]
[TD]days[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
My aim is to get the table 1 filled with Numbering from Table 2 based on the following checks:
1. Check the Employee number from Table 1 equals employee number in Table 2.
2. When the match is found, check the corresponding date falls in between the start date and end date of table 2 (including these dates).
3. When this match is found, then choose the number in table 2, and enter that in numbering column in Table 1.
Thank You.
Excel1404
Need your help with the following:
Table 1: Has the following values
<tbody>[TR]
[TD]Date[/TD]
[TD]Employee[/TD]
[TD]Value[/TD]
[TD]Numbering[/TD]
[/TR]
[TR]
[TD]2019-05-15[/TD]
[TD]12345[/TD]
[TD]10[/TD]
[TD]Fill this row[/TD]
[/TR]
[TR]
[TD]2019-01-04[/TD]
[TD]11111[/TD]
[TD]1[/TD]
[TD]Fill this row[/TD]
[/TR]
</tbody>[/TABLE]
Table 2: has the following values with a start date and end date as a range and 2019-05-15 could be in one of the range for this employee
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Employee[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[TD]Value[/TD]
[TD]Units[/TD]
[TD]Numbering[/TD]
[/TR]
[TR]
[TD]11111[/TD]
[TD]2019-01-01[/TD]
[TD]2019-01-05[/TD]
[TD]11[/TD]
[TD]days[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]2019-01-01[/TD]
[TD]2019-04-05[/TD]
[TD]72[/TD]
[TD]days[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]12345[/TD]
[TD]2019-05-10[/TD]
[TD]2019-05-25[/TD]
[TD]13[/TD]
[TD]days[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
My aim is to get the table 1 filled with Numbering from Table 2 based on the following checks:
1. Check the Employee number from Table 1 equals employee number in Table 2.
2. When the match is found, check the corresponding date falls in between the start date and end date of table 2 (including these dates).
3. When this match is found, then choose the number in table 2, and enter that in numbering column in Table 1.
Thank You.
Excel1404