Okay, Im still struggling..dont know VBA and the vlookup function is not working
.
I am using the following formula
=VLOOKUP(D2,A$2:B$347,2,FALSE)
The first two entries are correct and then I only get #N/A, even if the time in column D exist is column A (??). The value in E4 should be 228. What am I doing wrong?
<table width="452" border="0" cellpadding="0" cellspacing="0"><col style="width: 81pt;" width="108"> <col style="width: 48pt;" width="64"> <col style="width: 81pt;" width="108" span="2"> <col style="width: 48pt;" width="64"> <tbody><tr style="height: 12.75pt;" height="17"> <td class="xl25" style="height: 12.75pt; width: 81pt;" width="108" align="center" height="17">
DateTime</td> <td class="xl25" style="width: 48pt;" width="64" align="right">
Dir</td> <td class="xl25" style="width: 81pt;" width="108">
</td> <td class="xl25" style="width: 81pt;" width="108" align="center">
DateTime</td> <td class="xl25" style="width: 48pt;" width="64" align="right">
Dir</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="height: 12.75pt;" align="right" height="17">
22/09/2010 10:00</td> <td align="right">
227</td> <td>
</td> <td class="xl24" align="right">
22/09/2010 10:00</td> <td align="right">
227</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="height: 12.75pt;" align="right" height="17">
22/09/2010 11:00</td> <td align="right">
229</td> <td>
</td> <td class="xl24" align="right">
22/09/2010 11:00</td> <td align="right">
229</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="height: 12.75pt;" align="right" height="17">
22/09/2010 12:00</td> <td align="right">
228</td> <td>
</td> <td class="xl24" align="right">
22/09/2010 12:00</td> <td align="center">
#N/A</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="height: 12.75pt;" align="right" height="17">
22/09/2010 13:00</td> <td align="right">
228</td> <td>
</td> <td class="xl24" align="right">
22/09/2010 13:00</td> <td align="center">
#N/A</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="height: 12.75pt;" align="right" height="17">
22/09/2010 14:00</td> <td align="right">
226</td> <td>
</td> <td class="xl24" align="right">
22/09/2010 14:00</td> <td align="center">
#N/A</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="height: 12.75pt;" align="right" height="17">
22/09/2010 15:00</td> <td align="right">
227</td> <td>
</td> <td class="xl24" align="right">
22/09/2010 15:00</td> <td align="center">
#N/A</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="height: 12.75pt;" align="right" height="17">
22/09/2010 17:00</td> <td align="right">
228</td> <td>
</td> <td class="xl24" align="right">
22/09/2010 16:00</td> <td align="center">
#N/A</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="height: 12.75pt;" align="right" height="17">
22/09/2010 19:00</td> <td align="right">
227</td> <td>
</td> <td class="xl24" align="right">
22/09/2010 17:00</td> <td align="center">
#N/A</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="height: 12.75pt;" align="right" height="17">
22/09/2010 20:00</td> <td align="right">
228</td> <td>
</td> <td class="xl24" align="right">
22/09/2010 18:00</td> <td align="center">
#N/A</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="height: 12.75pt;" align="right" height="17">
22/09/2010 21:00</td> <td align="right">
230</td> <td>
</td> <td class="xl24" align="right">
22/09/2010 19:00</td> <td align="center">
#N/A</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="height: 12.75pt;" align="right" height="17">
23/09/2010 00:00</td> <td align="right">
228</td> <td>
</td> <td class="xl24" align="right">
22/09/2010 20:00</td> <td align="center">
#N/A</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="height: 12.75pt;" align="right" height="17">
23/09/2010 02:00</td> <td align="right">
228</td> <td>
</td> <td class="xl24" align="right">
22/09/2010 21:00</td> <td align="center">
#N/A</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="height: 12.75pt;" align="right" height="17">
23/09/2010 03:00</td> <td align="right">
239</td> <td>
</td> <td class="xl24" align="right">
22/09/2010 22:00</td> <td align="center">
#N/A</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="height: 12.75pt;" align="right" height="17">
23/09/2010 04:00</td> <td align="right">
225</td> <td>
</td> <td class="xl24" align="right">
22/09/2010 23:00</td> <td align="center">
#N/A</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="height: 12.75pt;" align="right" height="17">
23/09/2010 07:00</td> <td align="right">
228</td> <td>
</td> <td class="xl24" align="right">
23/09/2010 00:00</td> <td align="center">
#N/A</td> </tr> </tbody></table>
Pls help!