Why Excel STOCKHISTORY Volume Differs from Yahoo Finance
Question details
Users notice significant discrepancies in trading volume data when comparing Excel's STOCKHISTORY function with Yahoo Finance for certain stocks.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Analyzing historical stock market data using the STOCKHISTORY function.
- Observed behavior
- The trading volume reported by Excel's STOCKHISTORY function differs significantly from the volume displayed on Yahoo Finance for identical stocks and dates.
Ensure you are comparing the exact same date range, ticker symbol, and trading interval (daily, weekly, monthly) across both platforms before investigating data discrepancies.
Verify Market Data Parameters and Vendor Methodologies
Aligning your function parameters and understanding the differences in data source methodologies can explain and resolve volume discrepancies.
Different market-data providers consolidate exchanges differently, which is the primary cause of volume discrepancies. Some vendors include pre-market and after-hours trading, while others only count regular trading hours.
Verify that the ticker symbol includes the correct exchange prefix or suffix in your STOCKHISTORY formula (e.g., specifying the exact European exchange for EON.DE) to match the exact market Yahoo Finance is tracking.
Determine if Yahoo Finance is including extended hours trading volume. Excel's data provider may only report standard market hours volume, naturally resulting in a lower daily total.
Check if the volume represents a single primary exchange or a consolidated tape of all exchanges where the stock trades. Vendors often differ in how they aggregate volume across multiple routing networks.
Analyze Financial Data Seamlessly with WPS Office
While external market data discrepancies depend on the specific data vendor, you can rely on WPS Spreadsheet for robust financial modeling, data analysis, and seamless compatibility with Microsoft Excel formats. Enjoy a lightweight, free alternative for all your everyday financial tasks.
- 1. Download and Install: Download WPS Office from the official website and install it on your computer.
- 2. Open Your Financial Data: Launch WPS Spreadsheet and open your existing .xlsx workbook or import a CSV file downloaded from Yahoo Finance.
- 3. Analyze and Visualize: Use built-in financial formulas, pivot tables, and charting tools to continue your market analysis seamlessly.

Frequently Asked Questions
What data provider does Excel use for the STOCKHISTORY function?
Microsoft Excel typically partners with Refinitiv (formerly Refinitiv, now an LSEG business) to provide financial and market data for the STOCKHISTORY function and Data Types.
Can I change the data provider used in Excel's STOCKHISTORY?
No, the data provider is integrated natively into Microsoft Excel's backend and cannot be manually changed to Yahoo Finance or other third-party sources.
Does STOCKHISTORY include after-hours trading volume?
Excel's market data generally focuses on standard trading hours. This is a common reason why its reported volume might appear lower than platforms that consolidate extended trading sessions into the daily total.
How can I manually import Yahoo Finance data into my spreadsheet?
You can download historical data as a CSV file directly from the Yahoo Finance website. Once downloaded, open the CSV file in your spreadsheet software or use the Data import tools to integrate it into your existing workbook.




