Google Sheets Dividend Data: How to Pull It In
In this article
You can get dividend data into Google Sheets without retyping it: either pull it live with a built-in function, or import a CSV of dividend history and keep it refreshed. The quickest route is GOOGLEFINANCE, which returns the current dividend yield for a ticker, while a CSV import from your broker or a data provider gives you the actual payment history (ex-date, amount, frequency). Do the live function first if you only need a yield snapshot; use the import route if you need a dividend log you can total and chart.
What You'll Need
- A Google account with access to Google Sheets (sheets.google.com).
- The ticker symbols you care about, in the exchange format the function expects (for example
NASDAQ:AAPLorNYSE:KO). - For the import route: a CSV or Excel file of dividend history from your broker, or a data source that lets you export one.
- Basic comfort with typing a formula and dragging a fill handle.
Step-by-Step
- Open a blank sheet. Go to sheets.google.com, sign in, and create a new spreadsheet. Name it something like Dividend Tracker so you can find it later.
- Lay out your columns. In row 1 type headers: Ticker, Company, Dividend Yield, Annual Dividend, Last Ex-Date, Notes. Keep the ticker column as plain text so the formula can reference it.
- Enter tickers in the exchange format. In A2 type the full symbol, e.g.
NYSE:KO. If you only typeKO, the function may guess the wrong exchange or return an error. Fill down your list. - Pull the dividend yield. In C2 enter
=GOOGLEFINANCE(A2,"dividendyield"). This returns the current annual dividend divided by price, as a decimal. Format column C as a percentage (Format > Number > Percent) so 0.031 reads as 3.1%. - Pull the annual dividend amount. In D2 enter
=GOOGLEFINANCE(A2,"trailingannualdividend"). This gives the trailing twelve-month dividend per share. If your sheet returns#N/Ahere, the ticker may not report a trailing figure; move on and use the import route for history. - Drag the formulas down. Select C2:D2, grab the small square at the bottom-right of the selection, and drag down to the last row of tickers. Each row now updates independently.
- Import dividend history for the full picture. If you have a CSV from your broker, go to File > Import > Upload, choose the file, and pick Insert new sheet(s). Map the columns so Date, Ticker, Amount, and Type (ordinary vs special) land in separate columns.
- Build a running total. On a summary tab, use
=SUMIF(History!B:B,A2,History!C:C)to total dividends per ticker, where B is the ticker column and C is the amount column in the imported sheet. Adjust the letters to match your import. - Add a chart. Select your date and amount columns on the history tab, then Insert > Chart. A column chart by year makes it obvious whether the payout is growing.
- Refresh on a schedule. GOOGLEFINANCE values update while the sheet is open, but they are not a live stream when the sheet is closed. Reopen the sheet to refresh, and re-import the CSV when your broker posts a new payment.
Common Mistakes
- Using bare tickers.
AAPLmay resolve, butNASDAQ:AAPLis reliable. Mixed exchanges are the usual cause of#N/A. - Expecting full history from GOOGLEFINANCE. The function returns current and trailing figures, not a dated payment log. For a list of past ex-dates and amounts you need an import.
- Formatting yield as a plain number. 0.031 looks like a tiny number until you apply percent formatting. Do that before you judge the result.
- Hard-coding values. Typing 3.1% into a cell defeats the point; it will be stale the next day. Keep the formula and format the cell.
- Mixing currencies. A London-listed ticker returns figures in pence, not pounds. Note the currency per row or convert deliberately.
- Importing over live data. Choosing Replace current sheet during import can wipe formulas. Use Insert new sheet(s) and reference it.
Tips
- Put your ticker list on one tab and all formulas on another, so a bad import never touches your working sheet.
- Use
=IFERROR(GOOGLEFINANCE(A2,"dividendyield"),"check ticker")to keep errors from breaking a chart. - Add a Last Updated cell with
=TODAY()so you can see at a glance how stale the sheet is. - Keep a manual Notes column for special dividends and cuts; automated feeds rarely flag those clearly.
- Freeze row 1 (View > Freeze > 1 row) before you scroll a long list.
Troubleshooting
If a cell shows #N/A, the ticker is wrong, delisted, or on an exchange the function does not cover. Check the symbol on the exchange's own site, then retry with the full prefix. If the whole column shows #NAME?, the function name is misspelled or the quotes around the attribute are missing. If values look frozen, close and reopen the sheet; GOOGLEFINANCE does not keep updating in a closed tab. If an import lands in the wrong columns, delete the imported tab and re-import with the delimiter set correctly (comma vs semicolon) and headers mapped by hand. If a chart is empty, confirm the date column is formatted as dates, not text. If you share the sheet and others see errors, check they have edit access and that the ticker column was not converted to numbers.
Frequently Asked Questions
Does GOOGLEFINANCE give dividend payment history?
No. It returns current and trailing dividend figures such as yield and trailing annual dividend, not a dated list of past payments. Use a CSV import for history.
Why does my dividend yield look like 0.03?
It is a decimal. Format the cell as a percentage and it will read as 3%.
Can I track dividends for non-US stocks?
Sometimes. Coverage depends on the exchange prefix. If the ticker returns #N/A, the exchange may not be supported; use a broker export instead.
Will the data update automatically overnight?
Not reliably. Values refresh while the sheet is open. Reopen it, or re-import your CSV, to bring in new payments.
Can I total dividends per stock automatically?
Yes, with SUMIF against your imported history tab, matching the ticker column to your summary row.
Is this a substitute for tax records?
No. Treat it as a tracker and reconcile against your broker's official statements before filing.