Hi
Desperately need a help to find two closest dates to today from the list of different people and dates. So the column C & D should show as follows. [TABLE="width: 500"]
<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]Nick[/TD]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="class: xl63, width: 94, align: right"]9/1/2016[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]1/1/2017[/TD]
[TD]10/1/2017[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Nick[/TD]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="class: xl65, width: 94, align: right"]1/1/2017[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Nick[/TD]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="class: xl65, width: 94, align: right"]10/1/2017[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]John[/TD]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="class: xl65, width: 94, align: right"]12/1/2016[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]12/1/2016[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Mary[/TD]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="class: xl65, width: 94, align: right"]8/1/2017[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]1/1/2017[/TD]
[TD]8/1/2017[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Mary[/TD]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="class: xl65, width: 94, align: right"]12/1/2015[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Mary[/TD]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="class: xl65, width: 94, align: right"]9/1/2016[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Mary[/TD]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="class: xl65, width: 94, align: right"]1/1/2017[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Izabella[/TD]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="class: xl65, width: 94, align: right"]9/1/2016[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="class: xl65, width: 94, align: right"]9/1/2016[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks a lot!!!!
Desperately need a help to find two closest dates to today from the list of different people and dates. So the column C & D should show as follows. [TABLE="width: 500"]
<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]Nick[/TD]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="class: xl63, width: 94, align: right"]9/1/2016[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]1/1/2017[/TD]
[TD]10/1/2017[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Nick[/TD]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="class: xl65, width: 94, align: right"]1/1/2017[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Nick[/TD]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="class: xl65, width: 94, align: right"]10/1/2017[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]John[/TD]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="class: xl65, width: 94, align: right"]12/1/2016[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]12/1/2016[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Mary[/TD]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="class: xl65, width: 94, align: right"]8/1/2017[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]1/1/2017[/TD]
[TD]8/1/2017[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Mary[/TD]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="class: xl65, width: 94, align: right"]12/1/2015[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Mary[/TD]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="class: xl65, width: 94, align: right"]9/1/2016[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Mary[/TD]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="class: xl65, width: 94, align: right"]1/1/2017[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Izabella[/TD]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="class: xl65, width: 94, align: right"]9/1/2016[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="class: xl65, width: 94, align: right"]9/1/2016[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks a lot!!!!