Selected Answer
Hi Hemant and welcome to the Forum.
I'm not a user of Yahoo Finance but please look at Don's tutorial here: Easy Excel Web Import - that shows you how to use a macro to download prices from that Yahoo Finance site.
People have had some problems with Yahoo Finance and -if you do- you'll find some previous Forum questions/answers e.g. Fetching Online Price (Yahoo Finance), VBA Error 91 "Object variable or with block variable not set" (in which I'm pretty sure Variatus meant to say Yahoo stopped bulk data scraping in 2018 not 1918!).
You say your file Sample1.xls has a problem in that the VLOOKUP formula can't return more than a few month's data - that can't be helped unless you add data to your sheet/ table. In the revised file attached, I've put an updating fromula in column F (and pointed the VLOOKUP to that column). The formula in cell F3 is:
=EOMONTH(NOW(),2-ROW())
where EOMONTH delivers the date of the End Of Month based on NOW() today's date less (second argument) a number of months. For F3 2- ROW() gives 1 (so end of last month. In F4, the ROW is $ so it's 2 months back etc. That means row 3 will become 31 January when the date is 01 Feb to 28 Feb.
In your VLOOKUP formula, I've wrapped around IFERROR so it becomes (e.g. in B3):
=IFERROR(VLOOKUP($F3,Table_0__2[#All],4,0),"Need data")
That means on 01 Feb, the row dates (and prices) will move down a month and row 3 will show the error message
"Need data" or whatever you like.
Hope this helps.