Hi,
I need to lookup value in table and return value based on date range.
my table look like that:
[TABLE="width: 320"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD="align: left"]Number[/TD]
[TD="align: left"]Date1[/TD]
[TD="align: left"]Date2[/TD]
[TD="align: left"] Model[/TD]
[/TR]
[TR]
[TD="align: right"]109[/TD]
[TD="align: right"]02/12/2003[/TD]
[TD="align: right"]29/07/2005 [/TD]
[TD="align: left"] A[/TD]
[/TR]
[TR]
[TD="align: right"]109[/TD]
[TD="align: right"]29/07/2005[/TD]
[TD="align: right"]23/11/2009[/TD]
[TD="align: left"] B[/TD]
[/TR]
[TR]
[TD="align: right"]109[/TD]
[TD="align: right"]23/11/2009[/TD]
[TD="align: right"]11/11/2010[/TD]
[TD="align: left"] C[/TD]
[/TR]
[TR]
[TD="align: right"]109[/TD]
[TD="align: right"]11/11/2010[/TD]
[TD="align: right"]19/12/2010[/TD]
[TD="align: left"] D[/TD]
[/TR]
[TR]
[TD="align: right"]109[/TD]
[TD="align: right"]19/12/2010[/TD]
[TD="align: right"]25/04/2013[/TD]
[TD="align: left"] E[/TD]
[/TR]
[TR]
[TD="align: right"]109[/TD]
[TD="align: right"]25/04/2013[/TD]
[TD="align: right"]24/03/2015[/TD]
[TD="align: left"] F[/TD]
[/TR]
[TR]
[TD="align: right"]109[/TD]
[TD="align: right"]24/03/2015[/TD]
[TD="align: right"]28/12/2050[/TD]
[TD="align: left"] G[/TD]
[/TR]
[TR]
[TD="align: right"]110[/TD]
[TD="align: right"]02/12/2003[/TD]
[TD="align: right"]29/07/2005[/TD]
[TD="align: left"] A[/TD]
[/TR]
[TR]
[TD="align: right"]110[/TD]
[TD="align: right"]29/07/2005[/TD]
[TD="align: right"]23/12/2009[/TD]
[TD="align: left"] B[/TD]
[/TR]
[TR]
[TD="align: right"]110[/TD]
[TD="align: right"]23/12/2009[/TD]
[TD="align: right"]02/11/2010[/TD]
[TD="align: left"] C[/TD]
[/TR]
[TR]
[TD="align: right"]110[/TD]
[TD="align: right"]02/11/2010[/TD]
[TD="align: right"]19/12/2010[/TD]
[TD="align: left"] D[/TD]
[/TR]
[TR]
[TD="align: right"]110[/TD]
[TD="align: right"]19/12/2010[/TD]
[TD="align: right"]21/03/2013[/TD]
[TD="align: left"] E[/TD]
[/TR]
[TR]
[TD="align: right"]110[/TD]
[TD="align: right"]21/03/2013[/TD]
[TD="align: right"]24/03/2015[/TD]
[TD="align: left"] F[/TD]
[/TR]
[TR]
[TD="align: right"]110[/TD]
[TD="align: right"]24/03/2015[/TD]
[TD="align: right"]20/05/2015[/TD]
[TD="align: left"] G[/TD]
[/TR]
[TR]
[TD="align: right"]110[/TD]
[TD="align: right"]20/05/2015[/TD]
[TD="align: right"]26/05/2015[/TD]
[TD="align: left"] H[/TD]
[/TR]
[TR]
[TD="align: right"]110[/TD]
[TD="align: right"]26/05/2015[/TD]
[TD="align: right"]28/12/2050[/TD]
[TD="align: left"] J[/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: left"][/TD]
[/TR]
</tbody>[/TABLE]
In other sheet i have list of numbers such as the numbers above (in column A) with specific date, based on that i need to return the model that was between that time.
for example for number 110 in the date 1/1/2010 the model was C.
is there any function that can do that or even macro that can help in that case.
thank you in advance
Samuel
I need to lookup value in table and return value based on date range.
my table look like that:
[TABLE="width: 320"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD="align: left"]Number[/TD]
[TD="align: left"]Date1[/TD]
[TD="align: left"]Date2[/TD]
[TD="align: left"] Model[/TD]
[/TR]
[TR]
[TD="align: right"]109[/TD]
[TD="align: right"]02/12/2003[/TD]
[TD="align: right"]29/07/2005 [/TD]
[TD="align: left"] A[/TD]
[/TR]
[TR]
[TD="align: right"]109[/TD]
[TD="align: right"]29/07/2005[/TD]
[TD="align: right"]23/11/2009[/TD]
[TD="align: left"] B[/TD]
[/TR]
[TR]
[TD="align: right"]109[/TD]
[TD="align: right"]23/11/2009[/TD]
[TD="align: right"]11/11/2010[/TD]
[TD="align: left"] C[/TD]
[/TR]
[TR]
[TD="align: right"]109[/TD]
[TD="align: right"]11/11/2010[/TD]
[TD="align: right"]19/12/2010[/TD]
[TD="align: left"] D[/TD]
[/TR]
[TR]
[TD="align: right"]109[/TD]
[TD="align: right"]19/12/2010[/TD]
[TD="align: right"]25/04/2013[/TD]
[TD="align: left"] E[/TD]
[/TR]
[TR]
[TD="align: right"]109[/TD]
[TD="align: right"]25/04/2013[/TD]
[TD="align: right"]24/03/2015[/TD]
[TD="align: left"] F[/TD]
[/TR]
[TR]
[TD="align: right"]109[/TD]
[TD="align: right"]24/03/2015[/TD]
[TD="align: right"]28/12/2050[/TD]
[TD="align: left"] G[/TD]
[/TR]
[TR]
[TD="align: right"]110[/TD]
[TD="align: right"]02/12/2003[/TD]
[TD="align: right"]29/07/2005[/TD]
[TD="align: left"] A[/TD]
[/TR]
[TR]
[TD="align: right"]110[/TD]
[TD="align: right"]29/07/2005[/TD]
[TD="align: right"]23/12/2009[/TD]
[TD="align: left"] B[/TD]
[/TR]
[TR]
[TD="align: right"]110[/TD]
[TD="align: right"]23/12/2009[/TD]
[TD="align: right"]02/11/2010[/TD]
[TD="align: left"] C[/TD]
[/TR]
[TR]
[TD="align: right"]110[/TD]
[TD="align: right"]02/11/2010[/TD]
[TD="align: right"]19/12/2010[/TD]
[TD="align: left"] D[/TD]
[/TR]
[TR]
[TD="align: right"]110[/TD]
[TD="align: right"]19/12/2010[/TD]
[TD="align: right"]21/03/2013[/TD]
[TD="align: left"] E[/TD]
[/TR]
[TR]
[TD="align: right"]110[/TD]
[TD="align: right"]21/03/2013[/TD]
[TD="align: right"]24/03/2015[/TD]
[TD="align: left"] F[/TD]
[/TR]
[TR]
[TD="align: right"]110[/TD]
[TD="align: right"]24/03/2015[/TD]
[TD="align: right"]20/05/2015[/TD]
[TD="align: left"] G[/TD]
[/TR]
[TR]
[TD="align: right"]110[/TD]
[TD="align: right"]20/05/2015[/TD]
[TD="align: right"]26/05/2015[/TD]
[TD="align: left"] H[/TD]
[/TR]
[TR]
[TD="align: right"]110[/TD]
[TD="align: right"]26/05/2015[/TD]
[TD="align: right"]28/12/2050[/TD]
[TD="align: left"] J[/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: left"][/TD]
[/TR]
</tbody>[/TABLE]
In other sheet i have list of numbers such as the numbers above (in column A) with specific date, based on that i need to return the model that was between that time.
for example for number 110 in the date 1/1/2010 the model was C.
is there any function that can do that or even macro that can help in that case.
thank you in advance
Samuel