Formulas for

Stock Index Values

Finance5 credits/cellSheets · Excel
=VERVE("stockindex", "sp500", "field", "name")

Track major indexes from a cell. Returns live S&P 500, Nasdaq or Dow values, auto-refreshing — Sheets or Excel.

It's one of 250+ live sources you reach with a single =VERVE() function — served from APIVerve's production data engine, billed at 5 credits per resolved cell, and refreshed on whatever cadence you set. No API keys to wrangle, no scripts, no exports.

A real example — the input you type, and the values you can pull from it. Click any cell to see the formula behind it.

stockindex.xlsxsample data
B2fx=VERVE("stockindex", A2, "field", "name")
A
B
C
D
E
1
Index
Name
Year
Month
Count
2
sp500
S&P 500
2023
6
21
3
4
click any cell to see its formula5 credits / cell

Live financial model

Drop =VERVE("stockindex", "sp500", "field", "name") into a cell and your model reads the latest number every refresh — no more pasting figures from a browser tab into a stale sheet.

Track a whole watchlist

Fill a column beside your list of tickers or currencies and every row updates together, so a hundred-row watchlist stays current on its own.

Dashboards that don't rot

Point a chart at the cell =VERVE("stockindex", "sp500", "field", "name") feeds and the chart re-draws as the data moves — a finance dashboard that's live instead of a Monday-morning snapshot.

The same function works in both apps — install once, sign in with your key, and type it into any cell.

Google SheetsAdd-on

Install from the Workspace Marketplace, then drop the formula into a cell. Autocomplete suggests the source and its fields.

=VERVE("stockindex", "sp500", "field", "name")
Microsoft ExcelAdd-in

Same source, same arguments, same key — in Excel on desktop, the web, or mobile. Excel namespaces it as VERVE.CALL. Drag to fill a whole column.

=VERVE.CALL("stockindex", "sp500", "field", "name")

Tune the result by adding name=value before the field argument — in any order. Leave one out and its default applies.

  • yearPremium

    Year to retrieve data for (2010-present). Requires month parameter.

    =VERVE("stockindex", "sp500", "year", "2023")
  • monthPremium

    Month to retrieve data for (1-12). Required when year is specified.

    =VERVE("stockindex", "sp500", "month", "6")

Add a field name as the last argument to land just that value in the cell.

  • Name
    =VERVE("stockindex", "sp500", "field", "name")
  • Count
    =VERVE("stockindex", "sp500", "field", "count")
  • Entries
    =VERVE("stockindex", "sp500", "field", "entries")
  • Entries › Date
    =VERVE("stockindex", "sp500", "field", "entries.0.date")
  • Entries › Value
    =VERVE("stockindex", "sp500", "field", "entries.0.value")
  • Index
    =VERVE("stockindex", "sp500", "field", "index")
  • Year
    =VERVE("stockindex", "sp500", "field", "year")
  • Month
    =VERVE("stockindex", "sp500", "field", "month")

Premium marks data included on paid plans. On the Free plan a marked field is withheld and a marked input is ignored — either way the cell reads #PREMIUM(name) instead of a value, so a gated answer can never be mistaken for a real one. Everything unmarked works on every plan. Compare plans

Stock Index Values, answered

Everything you need to wire it into a sheet.

How do I pull Stock Index Values into Google Sheets?
Install the VerveSheets add-on, sign in once with your key, and type =VERVE("stockindex", "sp500", "field", "name") into any cell. The "field" argument names the value you want back, so the cell resolves to a single number or string you can chart, sort, or feed into another formula.
What data can I pull from Stock Index Values?
Stock Index Values returns name, count, entries, entries.0.date and entries.0.value, plus 3 more — name any one of them as the "field" argument and that value lands in the cell. Leave the field out and the whole record spills into a two-column table instead.
Can I narrow what Stock Index Values returns?
Yes — Stock Index Values takes "year" and "month" as optional inputs. They go in as "name", value pairs after the required ones, in any order, so =VERVE("stockindex", "sp500", "year", "2023") shapes the result without changing anything else.
Can I fill a whole column of Stock Index Values at once?
Yes. Put your index values down a column and point the formula at the range — A2:A50 instead of A2 — and one call returns a value for every row. Dragging the formula down works too, but the range form is a single billed call per column rather than one per cell.
How many credits does each Stock Index Values cell cost?
Each resolved cell costs 5 credits. A cell only re-bills when it actually refreshes, so a sheet you aren't touching doesn't keep charging.
Does Stock Index Values work in Excel as well as Google Sheets?
Yes — same arguments, same key, same fields. Excel namespaces custom functions, so the call is =VERVE.CALL() there and =VERVE() in Google Sheets; nothing else about it changes.

Put Stock Index Values in your next spreadsheet. Add the extension, paste the formula, and the cell keeps itself current.

Scaling up?

Volume pricing, custom SLAs, and dedicated support for high-traffic teams.

Contact sales