Easily Retrieve a Company's Market Capitalization with QM_MarketCap
The QM_MarketCap function in the MarketXLS Excel Add-in allows you to quickly fetch the market capitalization of a specified symbol, right in your spreadsheet. This function is particularly helpful for performing comparisons, calculations, or analyses that rely on up-to-date company valuation figures. By using this function, you can enrich your workflows and streamline your research without leaving Excel.
Why Use This Function?
- Retrieve market cap data directly in Excel without manual lookups.
- Easily compare the relative size of multiple companies.
- Enhance portfolio analyses and trading strategies with instantaneous access to valuation data.
- Save time by automating data refreshes or manual data updates.
- Leverage normal Excel formulas in tandem with actual market data for better insights.
How to Use in Excel
=QM_MarketCap("Symbol")
To use this function:
• Choose any cell in your Excel sheet.
• Enter the formula with a valid stock symbol.
• For instance: =QM_MarketCap("AAPL") to retrieve Apple Inc.’s market capitalization.
• You can also reference cells, e.g.: =QM_MarketCap(A2) if A2 contains the ticker symbol.
MarketXLS will handle data retrieval behind the scenes, returning either the market capitalization value or a helpful message (e.g., "NA", "Refreshing", or "Please Refresh") based on the situation.
Parameters Explained
Parameter | Description | Example Values | Notes |
---|---|---|---|
symbol | The ticker symbol for which you want the market capitalization. | "AAPL", "GOOGL" | Must be a valid symbol recognized by the MarketXLS-supported data provider. If invalid or blank, you may see "NA" returned. |
• symbol: (Required) Enter the ticker symbol as a string (in quotes) or by referencing a cell containing the symbol. If you do not supply a recognized symbol, “NA” may be returned.
Example Usage
Basic Examples
-
=QM_MarketCap("AAPL")
• Retrieves Apple’s market cap and displays it directly in your cell. -
=QM_MarketCap("MSFT")
• Retrieves the market cap for Microsoft. -
Assuming cell A2 has the text "AMZN":
• =QM_MarketCap(A2)
• The function uses the cell reference to fetch Amazon’s market cap.
Each of these examples returns a numeric market cap value, unless the function needs to refresh data or the symbol is missing/invalid.
Advanced Scenarios
• Simultaneous Analysis with Multiple Symbols
- =AVERAGE( QM_MarketCap("AAPL"), QM_MarketCap("MSFT"), QM_MarketCap("TSLA") )
- Calculates the average market cap of three large companies.
• Integration with Conditional Logic
- =IF(QM_MarketCap("TSLA") > 500000000000, "Large Cap", "Medium/Small Cap")
- Classifies Tesla’s valuation automatically as “Large Cap” or “Medium/Small Cap” based on a market cap threshold.
• Refreshing Data for Real-Time Updates
- If your data is being refreshed, you might see "Refreshing" briefly. Once the refresh completes, the updated market cap is shown automatically.
Common Questions and Troubleshooting
-
Q: Why do I see "NA" instead of a number?
A: This could occur if the symbol is invalid, unrecognized by the data provider, or previously cached with no valid data. -
Q: What does "Refreshing" mean?
A: It indicates that a data update is in progress. Once the refresh completes, the market cap value should appear. -
Q: How do I fix "Please Refresh"?
A: You’ll need to perform a manual refresh or enable automated refresh so MarketXLS can pull in the latest data for the symbol. -
Q: Why am I seeing "ERR"?
A: This may indicate an unexpected error. Check your internet connection, your MarketXLS license status, or retry with a valid stock symbol.
With QM_MarketCap, MarketXLS ensures your workbooks stay informative and up to date. Whether you are comparing companies, evaluating investments, or just staying on top of market data, this function revolutionizes how you retrieve and manage market capitalization directly in Excel.