Hi,
I have two array columns; column A has dates and column B has values. I have onther column C with dates which are not always mach with the dates on column A. I want a formula which will look at column A and mach the date of columns A and C, if the dates are not matching look for previous closest date and put the value in column D.
A B
<table border="0" cellpadding="0" cellspacing="0" width="139"><colgroup><col style="mso-width-source:userset;mso-width-alt:2742;width:56pt" width="75"> <col style="width:48pt" width="64"> </colgroup><tbody><tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt; width:56pt" align="right" height="20" width="75">31/03/2011
</td> <td style="width:48pt" align="right" width="64">69</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" align="right" height="20">28/02/2011</td> <td align="right">67</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" align="right" height="20">31/01/2011</td> <td align="right">63</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" align="right" height="20">31/12/2010</td> <td align="right">69</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" align="right" height="20">30/11/2010</td> <td align="right">68</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" align="right" height="20">31/10/2010</td> <td align="right">59</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" align="right" height="20">30/09/2010</td> <td align="right">55</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" align="right" height="20">31/08/2010</td> <td align="right">49</td> </tr> </tbody></table>
The result it will be like that
C D
2/04/2011 69
3/03/2011 67
29/02/2011 67
30/01/2011 69
Thanks in advance
I have two array columns; column A has dates and column B has values. I have onther column C with dates which are not always mach with the dates on column A. I want a formula which will look at column A and mach the date of columns A and C, if the dates are not matching look for previous closest date and put the value in column D.
A B
<table border="0" cellpadding="0" cellspacing="0" width="139"><colgroup><col style="mso-width-source:userset;mso-width-alt:2742;width:56pt" width="75"> <col style="width:48pt" width="64"> </colgroup><tbody><tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt; width:56pt" align="right" height="20" width="75">31/03/2011
</td> <td style="width:48pt" align="right" width="64">69</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" align="right" height="20">28/02/2011</td> <td align="right">67</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" align="right" height="20">31/01/2011</td> <td align="right">63</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" align="right" height="20">31/12/2010</td> <td align="right">69</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" align="right" height="20">30/11/2010</td> <td align="right">68</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" align="right" height="20">31/10/2010</td> <td align="right">59</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" align="right" height="20">30/09/2010</td> <td align="right">55</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" align="right" height="20">31/08/2010</td> <td align="right">49</td> </tr> </tbody></table>
The result it will be like that
C D
2/04/2011 69
3/03/2011 67
29/02/2011 67
30/01/2011 69
Thanks in advance
Last edited: