kirtesh250187
New Member
- Joined
- Jul 18, 2013
- Messages
- 25
Hi,
Is there a way from which we can find the closest earlier date to a date from a range. My range for each date will change every time. I want to find the closest earlier date to the one in Dates column below.
[TABLE="width: 118"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Dates[/TD]
[/TR]
[TR]
[TD]15-Jun-18[/TD]
[/TR]
[TR]
[TD]15-Mar-18[/TD]
[/TR]
[TR]
[TD]15-Feb-18[/TD]
[/TR]
[TR]
[TD]5-Oct-17[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 304"]
<colgroup><col span="4"></colgroup><tbody>[TR]
[TD]Range for date 1[/TD]
[TD]Range for date 2[/TD]
[TD]Range for date 3[/TD]
[TD]Range for date 4[/TD]
[/TR]
[TR]
[TD]20-May-18[/TD]
[TD]31-May-18[/TD]
[TD]20-May-18[/TD]
[TD]16-Apr-18[/TD]
[/TR]
[TR]
[TD]18-Apr-18[/TD]
[TD]28-Feb-18[/TD]
[TD]18-Feb-18[/TD]
[TD]16-Jan-18[/TD]
[/TR]
[TR]
[TD]19-Mar-18[/TD]
[TD]30-Nov-17[/TD]
[TD]20-Nov-17[/TD]
[TD]16-Oct-17[/TD]
[/TR]
[TR]
[TD]18-Feb-18[/TD]
[TD]31-Aug-17[/TD]
[TD]20-Aug-17[/TD]
[TD]17-Jul-17[/TD]
[/TR]
[TR]
[TD]21-Jan-18[/TD]
[TD]31-May-17[/TD]
[TD]18-May-17[/TD]
[TD]18-Apr-17[/TD]
[/TR]
[TR]
[TD]17-Dec-17[/TD]
[TD]28-Feb-17[/TD]
[TD]16-Feb-17[/TD]
[TD]17-Jan-17[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]30-Nov-16[/TD]
[TD] [/TD]
[TD]17-Oct-16[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]31-Aug-16[/TD]
[TD] [/TD]
[TD]15-Jul-16[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]31-May-16[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
Thanks
Is there a way from which we can find the closest earlier date to a date from a range. My range for each date will change every time. I want to find the closest earlier date to the one in Dates column below.
[TABLE="width: 118"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Dates[/TD]
[/TR]
[TR]
[TD]15-Jun-18[/TD]
[/TR]
[TR]
[TD]15-Mar-18[/TD]
[/TR]
[TR]
[TD]15-Feb-18[/TD]
[/TR]
[TR]
[TD]5-Oct-17[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 304"]
<colgroup><col span="4"></colgroup><tbody>[TR]
[TD]Range for date 1[/TD]
[TD]Range for date 2[/TD]
[TD]Range for date 3[/TD]
[TD]Range for date 4[/TD]
[/TR]
[TR]
[TD]20-May-18[/TD]
[TD]31-May-18[/TD]
[TD]20-May-18[/TD]
[TD]16-Apr-18[/TD]
[/TR]
[TR]
[TD]18-Apr-18[/TD]
[TD]28-Feb-18[/TD]
[TD]18-Feb-18[/TD]
[TD]16-Jan-18[/TD]
[/TR]
[TR]
[TD]19-Mar-18[/TD]
[TD]30-Nov-17[/TD]
[TD]20-Nov-17[/TD]
[TD]16-Oct-17[/TD]
[/TR]
[TR]
[TD]18-Feb-18[/TD]
[TD]31-Aug-17[/TD]
[TD]20-Aug-17[/TD]
[TD]17-Jul-17[/TD]
[/TR]
[TR]
[TD]21-Jan-18[/TD]
[TD]31-May-17[/TD]
[TD]18-May-17[/TD]
[TD]18-Apr-17[/TD]
[/TR]
[TR]
[TD]17-Dec-17[/TD]
[TD]28-Feb-17[/TD]
[TD]16-Feb-17[/TD]
[TD]17-Jan-17[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]30-Nov-16[/TD]
[TD] [/TD]
[TD]17-Oct-16[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]31-Aug-16[/TD]
[TD] [/TD]
[TD]15-Jul-16[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]31-May-16[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
Thanks