Skip to Content
Start hereFinish setupEnter your first formula
All platforms

Enter your first MarketXLS formula

Use a simple stock-price formula to confirm that MarketXLS works in your workbook.

Use a simple last-price formula to test your installation. The formula name differs between the two add-ins.

Test the Windows desktop add-in

  1. Open a blank workbook in desktop Excel on Windows.
  2. Select an empty cell.
  3. Enter =Last("MSFT").
  4. Press Enter.
Windows desktop formulas generally use an unprefixed MarketXLS function name.

Test the Microsoft 365 add-in

  1. Open a blank workbook on a Mac or in Excel for the web.
  2. Select an empty cell.
  3. Enter =mxls.Last("MSFT").
  4. Press Enter.
Microsoft 365 formulas require the mxls. namespace.

The cell should return a value for Microsoft. The exact value depends on the market session, your subscription, and the data source available to the function.

Use a symbol from another cell

Put MSFT in cell A2. Then enter one of these formulas in B2:

Add-inFormula
Windows desktop=Last(A2)
Mac or Excel for the web=mxls.Last(A2)

You can now replace the symbol in A2 without editing the formula.

Fix a test that doesn't return a value

Next, learn how to use MarketXLS formulas or browse the formula reference.


© 2026 MarketXLS. Financial data documentation for Excel.