GOOGLEFINANCE function in Google Sheets: syntax, attributes list and examples
GOOGLEFINANCE pulls current and historical prices of stocks and currency pairs into Google Sheets. This guide covers the syntax, the complete list of attributes, historical data and candlestick charts, and works the currency formulas on one question a CEO asks: how much of this quarter's revenue is exposed to the exchange rate. It also covers sparkline charts, the limits Google documents, and the reasons the function returns #N/A.
The GOOGLEFINANCE function returns current or historical market data for a stock or a currency pair. The shortest form needs only a ticker:
=GOOGLEFINANCE("NASDAQ:GOOG")
It returns the current price, which can be delayed by up to 20 minutes. Add an attribute to ask for something else, and dates to get history:
| You need | Formula |
|---|---|
| Current price | =GOOGLEFINANCE("NASDAQ:AAPL", "price") |
| Another current value, for example the 52-week high | =GOOGLEFINANCE("NASDAQ:AAPL", "high52") |
| Closing prices for a period | =GOOGLEFINANCE("NASDAQ:AAPL", "close", DATE(2024,5,20), DATE(2024,5,31)) |
| The closing price on one day, as a single value | =INDEX(GOOGLEFINANCE("NASDAQ:AAPL", "close", DATE(2024,5,20)), 2, 2) |
| An exchange rate | =GOOGLEFINANCE("CURRENCY:USDEUR") |
| The rate for each row’s own currency, from a code in D2 | =GOOGLEFINANCE("CURRENCY:"&D2&"USD") |
For a company that bills in more than one currency, the exchange rate is the part of GOOGLEFINANCE that reaches the board. The question a CEO asks is short: how much of this quarter’s revenue is exposed to the exchange rate? Put differently: if the euro, the pound or the yen moves before the customers pay, how much of the quarter moves with it? On the invoices below, the answer is one column of rates and one SUMIFS, and it shows why “exposed” needs a definition: the same quarter has $36,489.50, $33,475.50 or $21,653.20 at risk, depending on what you count.
Reading to get this done?
The question and the sheet
A software company reports in US dollars and invoices customers in five countries, each in its own currency. The invoices export has eleven rows, from row 2 to row 12, on a tab called Invoices:
| Column | Holds |
|---|---|
| A | Invoice date |
| B | Invoice number |
| C | Customer country |
| D | Currency: USD, EUR, GBP, JPY or CAD, or nothing when the export did not record it |
| E | Amount, in the invoice’s own currency |
| F | Status: Paid, Open (not paid yet) or Credited (cancelled by a credit note) |
| G | The amount in USD at today’s rate (a formula, built below) |
The quarter is Q4 2026, from October 1. One invoice, INV-1041, is dated September 28 and belongs to the previous quarter. One euro invoice, INV-1046, was cancelled with a credit note. One UK invoice of 1,500, INV-1050, has no currency code.
GOOGLEFINANCE returns live data, so the rates on your sheet will differ from the ones in this guide. The example fixes every rate, and “today” is Friday, November 20, 2026, so each number on this page can be checked against the others. The formulas are the same on any date.

The finished answer sits in the block on the right:
| Report line | Formula | Value |
|---|---|---|
| Q4 billed, credits out | =SUMIFS(G2:G12, A2:A12, ">="&DATE(2026,10,1), A2:A12, "<="&DATE(2026,12,31), F2:F12, "<>Credited") |
$44,175.50 |
| Billed in other currencies | =SUMIFS(G2:G12, A2:A12, ">="&DATE(2026,10,1), A2:A12, "<="&DATE(2026,12,31), D2:D12, "<>USD", F2:F12, "<>Credited") |
$33,475.50 |
| Share of the quarter | =J3/J2 |
75.8% |
| Still open, other currencies | =SUMIFS(G2:G12, A2:A12, ">="&DATE(2026,10,1), A2:A12, "<="&DATE(2026,12,31), D2:D12, "<>USD", F2:F12, "Open") |
$21,653.20 |
| If the rates fall 5% | =-J5*5% |
−$1,082.66 |
| No currency, not converted | =SUMIFS(E2:E12, D2:D12, "", F2:F12, "<>Credited") |
1,500 |
Three quarters of the quarter, 75.8%, was billed in a currency other than the dollar. The money that is still exposed is smaller: $21,653.20 of foreign invoices are unpaid, and their dollar value is decided on the day they are paid. If every one of those rates is 5% lower by then, the quarter comes in $1,082.66 short of what the sheet shows today. The invoices already paid are cash; whether that cash is still exposed depends on whether finance converted it, which the invoices export does not say.
The invoice with no currency stays on its own line. Its customer is in the UK, which suggests pounds, but a guess is not an exchange rate. Every number in the block is one formula, and the rest of this guide builds them, after the syntax and the attributes the currency formulas share with stocks.
GOOGLEFINANCE syntax
=GOOGLEFINANCE(ticker, [attribute], [start_date], [end_date|num_days], [interval])
- ticker: the symbol of the security, in quotes. Google asks for the exchange and the ticker together, “NASDAQ:GOOG” rather than “GOOG”. Without the exchange, the function picks one itself. This is the only required argument. For a currency pair, the ticker is “CURRENCY:” and two currency codes, “CURRENCY:EURUSD”.
- attribute (optional): which value to return, in quotes. The default is “price”. The attribute is required as soon as you pass a date.
- start_date (optional): the first day of historical data. With a start date and no end date, the function returns that single day.
- end_date|num_days (optional): the last day of historical data, or a number of days counted from the start date.
- interval (optional): how often to return a row of history: “DAILY” or “WEEKLY”. The numbers 1 and 7 mean the same; any other number returns #N/A.
Two things in this syntax decide what you get back:
- No dates: the request is real-time and the result is one value in one cell.
- Any date: the request is historical and the result is a table with a header row (Date and the attribute), even for a single day. Use the historical attributes; “price” is also accepted and returns the closing price, while the other real-time attributes, such as “pe” or “marketcap”, return #N/A with a date.
Write dates with the DATE function, for example DATE(2024,5,20), or with TODAY, for example TODAY()-30.
GOOGLEFINANCE returns #N/A for some tickers and dates, and every total and chart built on it goes blank too.
Paste this into your AI assistant. It writes the GOOGLEFINANCE formulas for the tickers and currency pairs in your sheet, with the right attributes and a fallback for #N/A.
The prompt
Read https://www.owox.com/ai-agent-setup.md and follow it to set up OWOX Data Marts for me, starting from /blog/articles/googlefinance-function-google-sheets.md. The task: write me GOOGLEFINANCE formulas for the tickers in my sheet with the attributes I need, pull their history for the period I name, and handle the cells that return #N/A. Tag the links you give me with utm_campaign=ai-task and utm_term=m3. Use what you know about my context and goals
GOOGLEFINANCE attributes list
Real-time attributes
| Attribute | Returns |
|---|---|
| “price” | Price quote, delayed by up to 20 minutes |
| “priceopen” | Price at market open |
| “high” | Current day’s high price |
| “low” | Current day’s low price |
| “volume” | Current day’s trading volume |
| “marketcap” | Market capitalization |
| “tradetime” | Time of the last trade |
| “datadelay” | How far the real-time data is delayed |
| “volumeavg” | Average daily trading volume |
| “pe” | Price/earnings ratio |
| “eps” | Earnings per share |
| “high52” | 52-week high price |
| “low52” | 52-week low price |
| “change” | Price change since the previous trading day’s close |
| “changepct” | Percentage change since the previous trading day’s close |
| “beta” | Beta value |
| “closeyest” | Previous day’s closing price |
| “shares” | Number of outstanding shares |
| “currency” | Currency in which the security is priced |
Historical attributes
| Attribute | Returns |
|---|---|
| “open” | Opening price for the date or dates |
| “close” | Closing price for the date or dates |
| “high” | High price for the date or dates |
| “low” | Low price for the date or dates |
| “volume” | Volume for the date or dates |
| “all” | All of the above, one column each |
For a currency pair, use “price”: Google’s documentation notes that open, low, high and volume are not returned for currencies. The invoices in this guide need nothing else.
Mutual fund attributes are not supported
Older lists of GOOGLEFINANCE attributes include a third group for mutual funds: returnytd, netassets, yieldpct, morningstarrating, expenseratio and others. Google’s documentation now states that mutual fund attributes are not supported in Google Sheets, so do not build a sheet on them. It also notes that some attributes do not return a result for every symbol.
Get current stock data
The stock examples in this part use Apple’s ticker; the currency part below goes back to the invoices. To get the current price of a stock and several other values for one company, keep the attribute names in a column and pass the cell as the second argument:
=GOOGLEFINANCE("AAPL", C3)
- “AAPL”: the ticker of Apple Inc.
- C3: the cell that holds the attribute name, here price.

Copied down, the formula returns the price, the opening price, the day’s high and low, the market capitalization, the time of the last trade, the volume and the average volume. The same works in the other direction: tickers in a column, one attribute in the formula, =GOOGLEFINANCE(B3, "price").
One formula takes one ticker. A list such as “AAPL, GOOG” in a single formula returns #N/A.
Get historical stock data
Add a historical attribute and a start date. The fourth argument is either an end date or a number of days:
=GOOGLEFINANCE(B3, "close", DATE(2024,5,20), 7)
- B3: the cell with the ticker, AAPL.
- “close”: the closing price.
- DATE(2024,5,20): the first day, May 20, 2024.
- 7: the number of days to cover, counted from the start date.

The result is a table with two columns, Date and Close, and one row per trading day. Weekends and market holidays have no row: May 27, 2024 was Memorial Day, and the list goes from May 24 straight to May 28.
For one row per week instead of one per day, add the interval: =GOOGLEFINANCE("AAPL", "close", DATE(2024,5,1), DATE(2024,5,31), "WEEKLY") returns one closing price per week of May 2024 instead of one per trading day.
To put one historical price into one cell, take the value out of the table with INDEX: =INDEX(GOOGLEFINANCE("AAPL", "close", DATE(2024,5,20)), 2, 2) returns 191.04, the second row and second column of the result.
Build a candlestick chart
A candlestick chart shows four prices for each period: open, close, high and low. The body of the candle spans the open and the close, and the thin lines above and below it reach to the high and the low. It needs a stock: currency pairs return no open, high or low.
Step 1: get the data
The “all” attribute returns everything the chart needs:
=GOOGLEFINANCE("AAPL", "all", TODAY()-10, TODAY())

The formula returns the Date, Open, High, Low, Close and Volume columns for the trading days of the last 10 days.
Step 2: add a text date
The chart needs the dates as labels. Add a column next to the data and convert each date to text with the TEXT function:
=TEXT(C3, "MMM DD YYYY")
Copy the formula down for all rows.

Step 3: insert the chart
Select the data and choose Insert > Chart. In the chart editor, open the Setup tab and pick Candlestick chart as the chart type. The data range has to include the text date and the Open, High, Low and Close columns: the text date is the X-axis, the four prices are the series.

If the candles look flat, open Customize > Vertical axis and set the minimum and maximum close to the lowest and highest prices in the data. More chart types are covered in the guide to charts in Google Sheets.
Get currency exchange rates
For currencies the ticker is the word CURRENCY, a colon and two three-letter currency codes with nothing between them: the currency you convert from (the source currency), then the currency you convert to (the target currency).
=GOOGLEFINANCE("CURRENCY:USDEUR")
That returns how many euros one US dollar buys. The invoices need the opposite direction, how many dollars one euro, pound, yen or Canadian dollar is worth, so the reporting currency comes last: “CURRENCY:EURUSD”. Any other pair works the same way, USD to EUR, CAD to GBP or MXN to PLN.
With the codes in cells, join the parts with ampersands. The example keeps one row per currency on a second tab, Rates, with the code in column A:
=GOOGLEFINANCE("CURRENCY:"&A3&"USD")
Entered in B3 and copied down to B6, it returns the rate to the dollar for EUR, GBP, JPY and CAD. The dollar row, B2, holds a typed 1: the sheet never needs to ask GOOGLEFINANCE for a dollars-to-dollars rate. The same pattern with both codes in cells is =GOOGLEFINANCE("CURRENCY:" & B3 & C3).
Next to each rate, a SUMIFS adds the open invoices in that currency, and two multiplications turn them into dollars and into the cost of a 5% fall:
=SUMIFS(Invoices!$E$2:$E$12, Invoices!$D$2:$D$12, A3, Invoices!$F$2:$F$12, "Open")

The row-by-row answer to “where is the exposure”: $8,877.60 of it is in euros, $5,476.80 in yen, $3,947.40 in Canadian dollars and $3,351.40 in pounds. A 5% fall in the euro alone costs $443.88; in the yen, $273.84. The $3,200.00 of open dollar invoices moves by nothing.
Currencies have no trading day, so the open, high, low and volume attributes return #N/A for a currency pair.
Convert an amount
Multiply the amount by the rate. On the Invoices tab, column G looks up each row’s rate on the Rates tab and multiplies:
=IFERROR(E2*VLOOKUP(D2, Rates!$A$2:$B$6, 2, FALSE), "check")
Copied down to G12, it turns invoice INV-1049, 8,100 EUR, into $8,877.60, and INV-1045, 840,000 JPY, into $5,476.80. The dollar rows find a rate of 1 and stay as they are. Row 11 has no currency code, so VLOOKUP finds nothing and the cell says “check” instead of an error or a zero: a zero would look like a free invoice and vanish into the total, while text stays visible and SUMIFS skips it.
The full list of currency codes, converting a whole column with cell references, and which rate a closed quarter should be converted at are in the guide to currency conversion with GOOGLEFINANCE.
Get historical exchange rates
Historical rates follow the same rules as historical prices: an attribute, a start date and an end date. For the euro over this quarter, one row per week:
=GOOGLEFINANCE("CURRENCY:EURUSD", "price", DATE(2026,10,1), TODAY(), "WEEKLY")

The function returns the EUR to USD rate for each week of the quarter so far. For a fixed period, give two dates: =GOOGLEFINANCE("CURRENCY:USDEUR", "price", DATE(2024,5,25), DATE(2024,5,31)) returns the USD to EUR rate for each day of the last week of May 2024. Beside it, =MIN(B2:B9) and =MAX(B2:B9) give the quarter’s low, 1.0890, and high, 1.1085, and =E3/E2-1 the swing between them, 1.79%. That is how far the euro has already moved in seven weeks, and it is the honest way to choose the 5% in the answer block: a test somewhat larger than what the quarter has already seen.
To put the rate of one invoice’s date into one cell, wrap the request in INDEX, as with stock prices. For INV-1042, dated October 2 in A3:
=INDEX(GOOGLEFINANCE("CURRENCY:EURUSD", "price", A3), 2, 2)
It returns 1.1085. The invoice, 6,200 EUR, was worth $6,872.70 on the day it was issued and is worth $6,795.20 at today’s rate: $77.50 less, without anyone doing anything. Across all the open invoices, the best weekly rates of the quarter would have made them worth $21,977.55, $324.35 more than today.
Show a price trend in one cell with SPARKLINE
Show a price trend in one cell with SPARKLINE
SPARKLINE draws a small chart inside a cell, and it accepts the table that GOOGLEFINANCE returns. On the Rates tab, column F shows how each currency has moved this quarter:
=SPARKLINE(GOOGLEFINANCE("CURRENCY:"&A3&"USD", "price", DATE(2026,10,1), TODAY(), "WEEKLY"), {"charttype", "line"; "color", "blue"; "linewidth", 2})
- GOOGLEFINANCE(“CURRENCY:”&A3&“USD”, “price”, DATE(2026,10,1), TODAY(), “WEEKLY”): the weekly rates of the currency in A3 since the quarter began.
- {“charttype”, “line”; “color”, “blue”; “linewidth”, 2}: the chart options: a blue line, 2 pixels wide.
Copied down, it puts a trend line next to every exposure figure in the image above: the yen has slid all quarter, while the euro, the pound and the Canadian dollar fell and then partly recovered. For a stock, the same SPARKLINE formula with a ticker and a moving window, =SPARKLINE(GOOGLEFINANCE(B3, "price", TODAY()-30, TODAY()), {"charttype", "line"; "color", "blue"; "linewidth", 2}), gives a 30-day trend line next to a list of tickers.
How much is exposed: three correct answers
How much is exposed: three correct answers
The same eleven invoices give three totals for “revenue in other currencies this quarter”, each from one SUMIFS on a third tab:

| What counts as exposed | Formula | Q4, USD |
|---|---|---|
| Every Q4 invoice in another currency | =SUMIFS(Invoices!G2:G12, Invoices!A2:A12, ">="&DATE(2026,10,1), Invoices!A2:A12, "<="&DATE(2026,12,31), Invoices!D2:D12, "<>USD") |
$36,489.50 |
| The same, credit note out | =SUMIFS(Invoices!G2:G12, Invoices!A2:A12, ">="&DATE(2026,10,1), Invoices!A2:A12, "<="&DATE(2026,12,31), Invoices!D2:D12, "<>USD", Invoices!F2:F12, "<>Credited") |
$33,475.50 |
| Only what is still unpaid | =SUMIFS(Invoices!G2:G12, Invoices!A2:A12, ">="&DATE(2026,10,1), Invoices!A2:A12, "<="&DATE(2026,12,31), Invoices!D2:D12, "<>USD", Invoices!F2:F12, "Open") |
$21,653.20 |
All three are arithmetically correct. The first counts the cancelled $3,014.00 euro invoice as revenue. The second is the quarter’s foreign-currency revenue. The third is the part whose dollar value is still undecided, which is what “exposed” usually means to the person who has to explain the gap at the end of the quarter. None of them counts the 1,500 with no currency, which is on its own line until someone finds out what currency it is.
Which one goes into the board deck is a business decision, so write it next to the number: “Q4 revenue in other currencies, unpaid, at the rate of November 20”. The next person who compares it with another report then knows what it carries.
Limits of GOOGLEFINANCE
Google’s documentation lists several limits that are worth knowing before you add its data to a report:
- Quotes can be delayed by up to 20 minutes and are not sourced from all markets. The “datadelay” attribute shows the delay for a ticker.
- Most international exchanges are not supported.
- Not for professional use. The data is provided for information, not for trading, and professional use may require a licence from the data provider.
- Historical data stays in the sheet. It cannot be read through the Sheets API or Apps Script: the cells return #N/A there.
- Dates are treated as noon UTC. For exchanges that close before that time, the result can be shifted by a day.
For the exposure question this means GOOGLEFINANCE is good for an estimate of how much the quarter could move. It is not the rate your bank pays you when a customer settles, and it is not the rate the finance team books. If finance keeps its own rate table, type those rates into the Rates tab instead of the GOOGLEFINANCE formulas, and the rest of the sheet works the same.
GOOGLEFINANCE errors
#N/A error
⚠️ Error: The function returns #N/A. This is its answer to almost every problem, so hover over the cell and read the message.
✅ Solution: Check these causes in turn:
- The ticker is not recognized. Add the exchange, “NASDAQ:AAPL”, and check the symbol on Google Finance. For a currency, check both codes; a ticker built from an empty cell, such as “CURRENCY:USD” from row 11 of the invoices, is not a pair.
- The attribute is misspelled or not available for this symbol. Compare it with the list above.
- A real-time attribute is used with dates. With a date in the formula, attributes such as pe, marketcap or high52 return #N/A. Use open, close, high, low, volume or all.
- The date is not a trading day. For a stock, a single date that falls on a weekend, such as Saturday 2026-09-05, or on a market holiday returns #N/A. Use a range of dates instead.
- The interval is a number other than 1 or 7.
- Several tickers are passed in one string. Use one formula per ticker.
To show something more useful than the error, wrap the formula: =IFERROR(GOOGLEFINANCE(B3, "price"), "no data"). On the invoices, IFERROR returns “check”, so a row without a rate stays in sight.
#REF! error
⚠️ Error: A historical formula returns #REF! with the message that the array result was not expanded.
✅ Solution: Historical data is a table and needs empty cells below and to the right of the formula. Clear those cells or move the formula. The weekly euro table above takes nine rows and two columns.
A date and a header where one number was expected
⚠️ Error: A formula with a single date fills four cells: Date, Close and a row of values.
✅ Solution: That is how historical requests work. Take the one value with INDEX: =INDEX(GOOGLEFINANCE("AAPL", "close", DATE(2024,5,20)), 2, 2).
#ERROR! (formula parse error)
⚠️ Error: The formula is not accepted at all.
✅ Solution: Check that the ticker and the attribute are in straight double quotes, that the parentheses are paired, and that the arguments are separated the way your spreadsheet locale expects: a comma in most English locales, a semicolon in many European ones.
The exposure is right and does not match the finance report
⚠️ Error: Your sheet says $21,653.20 of the quarter is exposed; finance says something else. Nothing in the formula is wrong.
✅ Solution: Line the two up condition by condition before anyone argues about the number:
- What counts as exposed: everything billed in other currencies, the same without credit notes, or only what is unpaid. Here that is $36,489.50, $33,475.50 or $21,653.20.
- Which rate: today’s rate, the rate on the invoice date or a budget rate. INV-1042 alone differs by $77.50 between the first two.
- Rate source: GOOGLEFINANCE, a bank or a central bank. Each publishes its own rates, and a bank adds its margin.
- Cash already converted: paid invoices kept in euros are still exposed; paid invoices converted to dollars are not. The invoices export cannot tell the two apart.
- Rows without a currency: a separate line in your sheet, here 1,500. In the finance report they are either fixed or missing.
- A plain SUM:
=SUM(E2:E12)returns 885,950, a number in no currency at all, because it adds yen to dollars.
Two numbers that differ for a reason you can name are a finding. Two numbers that differ for no reason anyone can name are a trust problem, and the next total from the same sheet will be doubted too.
Related Google Sheets functions
Related Google Sheets functions
Functions that are often used next to GOOGLEFINANCE, each with its own guide:
- Currency conversion with GOOGLEFINANCE: Currency codes, conversion formulas and historical rates in detail.
- SPARKLINE: Draws a chart inside a single cell.
- SUM, SUMIF and SUMIFS: Adds the rows that meet a currency, date or status condition, as in every total on this page.
- VLOOKUP: Looks up a value in a table, such as each invoice’s rate on the Rates tab.
- IMPORTXML: Imports data from a web page with an XPath query, for figures GOOGLEFINANCE does not provide.
- ARRAYFORMULA: Applies a formula to an entire range of data.
- QUERY: Filters, sorts and summarizes a table with SQL-like syntax, for example the table of historical prices.
- AVERAGE: Calculates the arithmetic mean of a range, for example the average closing price or exchange rate of a period.
- IF: Returns one result when a condition is true and another when it is false.
GOOGLEFINANCE brings the rate, your own numbers come from elsewhere
GOOGLEFINANCE brings the rate, your own numbers come from elsewhere
GOOGLEFINANCE covers one kind of data: public market prices and exchange rates. The figures you multiply by those rates are a different matter. Invoices by currency, revenue by country or ad spend in three currencies sit in a data warehouse, and they usually reach the sheet as an export that someone has to repeat every week. The exposure formula is exact; the rows may not be. If the invoices tab was pasted last Monday, the rates are today’s and the unpaid invoices are a week old, and nothing on the sheet says so.
The OWOX Data Marts extension for Google Sheets covers that half. A data analyst publishes a Data Mart (a table or an SQL query in your data warehouse, with the definitions the team agreed, such as what counts as a credited invoice and which currency each invoice was billed in) and makes it available for reports. In Sheets you open the extension, pick the Data Mart, tick the columns you want and run it. The rows land in a tab, ready for your formulas.

What changes for the person who maintains the sheet:
- Refresh replaces re-export. Refresh current report in the extension menu re-runs the same pull, and a scheduled refresh keeps the tab current without anyone touching it.
- The source is written on the sheet. The header cell of an imported tab carries a note with the Data Mart it came from, the time of the import and a link to the report.
- No SQL and no data warehouse access needed. The analyst decides which Data Marts and columns are available. You choose from that list.
The extension does not write or change the analyst’s SQL. GOOGLEFINANCE stays in the sheet for the rates, and the invoices next to it come from the same Data Mart on every refresh. The extension comes with the OWOX Cloud plans of OWOX Data Marts; spreadsheet reporting describes both ways data reaches a sheet.
GOOGLEFINANCE returns #N/A for some tickers and dates, and every total and chart built on it goes blank too.
Paste this into your AI assistant. It writes the GOOGLEFINANCE formulas for the tickers and currency pairs in your sheet, with the right attributes and a fallback for #N/A.
The prompt
Read https://www.owox.com/ai-agent-setup.md and follow it to set up OWOX Data Marts for me, starting from /blog/articles/googlefinance-function-google-sheets.md. The task: write me GOOGLEFINANCE formulas for the tickers in my sheet with the attributes I need, pull their history for the period I name, and handle the cells that return #N/A. Tag the links you give me with utm_campaign=ai-task and utm_term=m3. Use what you know about my context and goals
Prefer to start on your own? Get started free
Frequently Asked Questions
What are some common issues I might face while using the GOOGLEFINANCE function, and how can I solve them?
Almost every problem shows up as #N/A: a ticker that is not recognized, a misspelled attribute, a real-time attribute such as pe used together with dates, a single date that is not a trading day, or an interval other than DAILY or WEEKLY. A currency ticker built from an empty cell fails too: an invoice with no currency code asks for "CURRENCY:USD", which is not a pair. Wrap the formula in IFERROR and return a word such as "check" rather than 0, so the row stays visible and SUMIFS skips it. Historical formulas return a table and show #REF! when the cells below them are not empty.
How can I import and analyze historical currency exchange rates?
Use GOOGLEFINANCE with "price", a start date and an end date. =GOOGLEFINANCE("CURRENCY:EURUSD", "price", DATE(2026,10,1), TODAY(), "WEEKLY") returns one row per week with the EUR to USD closing rate. MIN and MAX over the Close column give the period's low and high; in this guide's example they are 1.0890 and 1.1085, a swing of 1.79%. To get the rate of one date as a single number, wrap the request in INDEX(…, 2, 2). The rates are live data, so your sheet returns different ones.
Can I obtain historical stock data with the GOOGLEFINANCE function? How?
Yes. Add a historical attribute, a start date and an end date: =GOOGLEFINANCE("NASDAQ:AAPL", "close", DATE(2022,1,1), DATE(2022,12,31)) returns a table with the date and the closing price for each trading day of 2022. Add "WEEKLY" as the fifth argument for one row per week, or use "all" to get the open, high, low, close and volume columns a candlestick chart needs. To put one day's price into one cell, wrap the formula in INDEX(…, 2, 2).
Is it possible to track currency exchange rates using GOOGLEFINANCE?
Yes. Use the word CURRENCY, a colon and the two currency codes written together: =GOOGLEFINANCE("CURRENCY:EURUSD") returns how many US dollars one euro is worth. With the codes in a column, =GOOGLEFINANCE("CURRENCY:"&A3&"USD") gives one rate per currency, and multiplying unpaid invoices by those rates shows how much of the quarter moves with the exchange rate. In this guide's example, $21,653.20 of open invoices are in other currencies, and a 5% fall in the rates would cost $1,082.66.
How do I start using the GOOGLEFINANCE function to track my favorite stocks?
Type the ticker with its exchange into a cell, for example =GOOGLEFINANCE("NASDAQ:AAPL") for the current price, which can be delayed by up to 20 minutes. Add an attribute as the second argument for other values, such as "high52" or "marketcap". Keep the tickers in a column and copy =GOOGLEFINANCE(B3, "price") down to track several stocks; one formula takes one ticker. For a trend next to each one, put the history inside SPARKLINE.
What exactly does the GOOGLEFINANCE function do in google sheets?
GOOGLEFINANCE brings current or historical market data into Google Sheets: stock prices, trading volume, market capitalization and other attributes, and exchange rates between currencies. Without dates it returns one value; with dates it returns a table with a header row. For a business that invoices in several currencies, it supplies the rates that turn each invoice into the reporting currency, so you can see how much revenue depends on the exchange rate. Google notes that the data is for information, not for trading.
