Last Updated on September 22, 2023 by Mark Ursell
In this article and video, I show you how to download price data from Yahoo Finance into Excel.
Table of Contents
Yahoo Finance is the best source of free historical price data on the internet. If you regularly use Yahoo price data in Excel, this article will save you time and help you download the data quickly and easily.
What is the Free Spreadsheet?
I have created a spreadsheet to automate the download process.
This spreadsheet uses VBA to automate the downloading process. Making it quicker and easier for you to get the data you need for your analysis.
How to Use the Spreadsheet
When you open the spreadsheet you will see options to select the market, date range and frequency (period).
You then click the button, and the data is imported in your spreadsheet.
The spreadsheet was designed in Excel for Windows but should also work in Excel for Mac.
Watch The Video
In this YouTube video, I demonstrate the formulas and how to use the spreadsheet.
Get the Free Spreadsheet
You can download the spreadsheet for free by signing up to my mailing list:
If you want to create your own spreadsheet you can see the formulas that I used to create it.
URL Information Needed to Download the Data
Every time you download data from Yahoo Finance it generates a URL that corresponds to your query.
The URL format looks like this:
The market code is the information used by Yahoo to identify the stock, ETF or currency. These codes are not always the same as the codes you will find used elsewhere.
If you don’t know the code, you can get it by going to the Yahoo Finance page for the market you are
You need to specify the date range of the price data.
The dates are expressed in UNIX format. The formula to calculate the Unix Code is:
Yahoo Finance Data is available for daily, weekly and monthly periods. In the URL it is 1d, 1wk and 1mo.
The Next Step: Backtest Your Strategy
“The goal of a successful trader is to make the best trades. Money is secondary.”Dr Alexander Elder
Get More Winning Trades
If you are eager to take your trading strategies and market analysis to the next level, consider exploring Tradinformed Excel Backtest Models. These Excel-based models will help you design, optimize and track your trading strategies.
The 15-in-1 Package is our most powerful package. This will help you learn how to backtest trading strategies and make informed trading decisions while providing you with the tools you need to develop your own trading systems.