how to use vba code for vlookup function

monu

New Member
Joined
Jun 21, 2011
Messages
11
<TABLE style="WIDTH: 384pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=512><COLGROUP><COL style="WIDTH: 48pt" span=8 width=64><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #333333 0.5pt solid; BORDER-LEFT: #333333 0.5pt solid; BACKGROUND-COLOR: white; WIDTH: 48pt; HEIGHT: 12.75pt; BORDER-TOP: #333333 0.5pt solid; BORDER-RIGHT: #333333 0.5pt solid" class=xl66 height=17 width=64>symbol</TD><TD style="BORDER-BOTTOM: #333333 0.5pt solid; BORDER-LEFT: #333333; BACKGROUND-COLOR: white; WIDTH: 48pt; BORDER-TOP: #333333 0.5pt solid; BORDER-RIGHT: #333333 0.5pt solid" class=xl66 width=64>spot</TD><TD style="BORDER-BOTTOM: #333333 0.5pt solid; BORDER-LEFT: #333333; BACKGROUND-COLOR: white; WIDTH: 48pt; BORDER-TOP: #333333 0.5pt solid; BORDER-RIGHT: #333333 0.5pt solid" class=xl66 width=64>spot_change</TD><TD style="BORDER-BOTTOM: #333333 0.5pt solid; BORDER-LEFT: #333333; BACKGROUND-COLOR: white; WIDTH: 48pt; BORDER-TOP: #333333 0.5pt solid; BORDER-RIGHT: #333333 0.5pt solid" class=xl66 width=64>spot_% chg</TD><TD style="BORDER-BOTTOM: #333333 0.5pt solid; BORDER-LEFT: #333333; BACKGROUND-COLOR: white; WIDTH: 48pt; BORDER-TOP: #333333 0.5pt solid; BORDER-RIGHT: #333333 0.5pt solid" class=xl66 width=64>future</TD><TD style="BORDER-BOTTOM: #333333 0.5pt solid; BORDER-LEFT: #333333; BACKGROUND-COLOR: white; WIDTH: 48pt; BORDER-TOP: #333333 0.5pt solid; BORDER-RIGHT: #333333 0.5pt solid" class=xl66 width=64>fut_change</TD><TD style="BORDER-BOTTOM: #333333 0.5pt solid; BORDER-LEFT: #333333; BACKGROUND-COLOR: white; WIDTH: 48pt; BORDER-TOP: #333333 0.5pt solid; BORDER-RIGHT: #333333 0.5pt solid" class=xl66 width=64>fut_% chg</TD><TD style="BORDER-BOTTOM: #333333 0.5pt solid; BORDER-LEFT: #333333; BACKGROUND-COLOR: white; WIDTH: 48pt; BORDER-TOP: #333333 0.5pt solid; BORDER-RIGHT: #333333 0.5pt solid" class=xl66 width=64>basis</TD></TR><TR style="HEIGHT: 21pt" height=28><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 21pt; BORDER-TOP: #993366 0.5pt solid; BORDER-RIGHT: #993366 0.5pt solid" class=xl63 height=28 width=64>3IINFOTECH</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366 0.5pt solid; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>45.15</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366 0.5pt solid; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>1.20</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366 0.5pt solid; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 width=64>2.73</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366 0.5pt solid; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>45.55</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366 0.5pt solid; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>1.20</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366 0.5pt solid; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 width=64>2.71</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366 0.5pt solid; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>0.40</TD></TR><TR style="HEIGHT: 21pt" height=28><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 21pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl63 height=28 width=64>ADANIPOWER</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>114.15</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>2.40</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 width=64>2.15</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>114.70</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>2.35</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 width=64>2.09</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>0.55</TD></TR><TR style="HEIGHT: 21pt" height=28><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 21pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl63 height=28 width=64>AMBUJACEM</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>135.90</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>-2.65</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 width=64>-1.91</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>134.80</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>-0.75</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 width=64>-0.55</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>-1.10</TD></TR><TR style="HEIGHT: 21pt" height=28><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 21pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl63 height=28 width=64>ANDHRABANK</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>140.75</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>3.55</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 width=64>2.59</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>136.35</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>3.40</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 width=64>2.56</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>-4.40</TD></TR><TR style="HEIGHT: 21pt" height=28><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 21pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl63 height=28 width=64>APIL</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>546.05</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>4.90</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 width=64>0.91</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>541.30</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>4.90</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 width=64>0.91</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>-4.75</TD></TR><TR style="HEIGHT: 21pt" height=28><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 21pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl63 height=28 width=64>APOLLOTYRE</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>70.70</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>3.60</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 width=64>5.37</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>69.15</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>1.80</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 width=64>2.67</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>-1.55</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 12.75pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl63 height=17 width=64>SUNTV</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>391.80</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>3.45</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 width=64>0.89</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>393.30</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>3.65</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 width=64>0.94</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>1.50</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 12.75pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl63 height=17 width=64>SUZLON</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>51.10</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>0.30</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 width=64>0.59</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>51.45</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>0.40</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 width=64>0.78</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>0.35</TD></TR><TR style="HEIGHT: 21pt" height=28><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 21pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl63 height=28 width=64>ABAN</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>560.70</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>22.25</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 width=64>4.13</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>565.05</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>23.30</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 width=64>4.30</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>4.35</TD></TR><TR style="HEIGHT: 21pt" height=28><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 21pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl63 height=28 width=64>ABB</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>850.10</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>-5.90</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 width=64>-0.69</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>846.90</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>5.00</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 width=64>0.59</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>-3.20</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 12.75pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl63 height=17 width=64>ABGSHIP</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>372.85</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>12.60</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 width=64>3.50</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>374.95</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>14.15</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 width=64>3.92</TD><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl64 width=64>2.10</TD></TR></TBODY></TABLE>

This is sheet no. 1

I want the data in sheet 2. for the future data from sheet 1for the corresponding stocks
<TABLE style="WIDTH: 48pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=64><COLGROUP><COL style="WIDTH: 48pt" width=64><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #333333 0.5pt solid; BORDER-LEFT: #333333 0.5pt solid; BACKGROUND-COLOR: white; WIDTH: 48pt; HEIGHT: 12.75pt; BORDER-TOP: #333333 0.5pt solid; BORDER-RIGHT: #333333 0.5pt solid" class=xl66 height=17 width=64>symbol</TD></TR><TR style="HEIGHT: 21pt" height=28><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 21pt; BORDER-TOP: #993366 0.5pt solid; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 height=28 width=64>3IINFOTECH</TD></TR><TR style="HEIGHT: 21pt" height=28><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 21pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 height=28 width=64>ADANIPOWER</TD></TR><TR style="HEIGHT: 21pt" height=28><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 21pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 height=28 width=64>AMBUJACEM</TD></TR><TR style="HEIGHT: 21pt" height=28><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 21pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 height=28 width=64>ANDHRABANK</TD></TR><TR style="HEIGHT: 21pt" height=28><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 21pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 height=28 width=64>APIL</TD></TR><TR style="HEIGHT: 21pt" height=28><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 21pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 height=28 width=64>APOLLOTYRE</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 12.75pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 height=17 width=64>SUNTV</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 12.75pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 height=17 width=64>SUZLON</TD></TR><TR style="HEIGHT: 21pt" height=28><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 21pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 height=28 width=64>ABAN</TD></TR><TR style="HEIGHT: 21pt" height=28><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 21pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 height=28 width=64>ABB</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #993366 0.5pt solid; BORDER-LEFT: #993366 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 12.75pt; BORDER-TOP: #993366; BORDER-RIGHT: #993366 0.5pt solid" class=xl65 height=17 width=64>ABGSHIP</TD></TR></TBODY></TABLE>
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Dim a As Variant ' variable for vlook data
Dim b As Variant ' For VLook up
Dim c As Variant ' for VLook Up
Dim d As Variant
Dim i As Long
a = Sheet5.Range("A")
b = Sheet1.Range("C4:J300")
'a = Sheet5.Range("A" & j)
For i = 2 To 6
Debug.Print Sheet5.Range("D").Value = Application.VLookup(a, b, 5, False)
Next

End Sub


this in my code.
what is wrong in my code
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,135
Members
452,890
Latest member
Nikhil Ramesh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top