How to calculate currency exchange rates in Google Sheets with GoogleFinance

It often happens that we need to attach a price to a certain currency. At the same time, the item may be sold in various currencies. Google Sheets contains an extremely convenient tool for currency conversion that you won't find in other programs.

I'm speaking about the GOOGLEFINANCE function. It retrieves current or archival financial information from Google Finance. And today we'll examine the function together.

How to use GOOGLEFINANCE to get current currency exchange rates

Even though GOOGLEFINANCE is capable of many things, we're interested in its ability to fetch currency exchange rates. The syntax of the function is as follows:

GOOGLEFINANCE("CURRENCY:<from currency symbol><to currency symbol>")

Get current exchange rates with GOOGLEFINANCE.

Note. The arguments of the function CURRENCY:<from currency symbol><to currency symbol> must be text strings.

For example, to get the current USD to EUR exchange rate, you can use the formula below:


The same can be applied to convert $ to £:


And US dollar to Japanese yen:


To convert currencies even easier, just replace the text in the formulas with cell references:
Use cell references to get the exchange rate.

Here B3 contains the formula that combines two currency names in A1 and A3:


Tip. You will find a full list of all currency codes including few cryptocurrencies below.

GOOGLEFINANCE to get currency exchange rates over any period of time

We can use the GOOGLEFINANCE function to see how the currency exchange rates have changed over a specified period of time or for the last N days.

Exchange rates over a specified period of time

To pull exchange rates over some period of time, you need to extend your GOOGLEFINANCE function with additional optional arguments:

GOOGLEFINANCE("CURRENCY:<from currency symbol><to currency symbol>", [attribute], [start_date], [num_days|end_date], [interval])
  • attribute (optional) - use "price" to get real time currency exchange rates (with a short delay up to 20 minutes)
    Tip. See a full list of available attributes here.
  • start_date, end_date (optional) - your period of interest. Use the DATE function in these arguments.
  • interval (optional) - how often you wish to pull the data. It can be "DAILY" or "WEEKLY", or in numbers - 1 for daily, 7 for weekly.

Here's an example of such a formula:

=GOOGLEFINANCE("CURRENCY:USDEUR", "price", DATE(2017,9,1), DATE(2017,9,10), "DAILY")

As a result, we have a table with the rates finalized at the end of the day.
Live daily currency exchange rates.

You can use cell references instead of dates to simplify the formula and adjust it in a couple of clicks:


A1 is a start date, and we add the needed number of days to it:
Cell references instead of dates in GOOGLEFINANCE.

Exchange rates for the last N days

We can also use the GOOGLEFINANCE function to pull the exchange rates for the last N days (10 days in the formula below):

Currency exchange rates for the last 10 days.

Get exchange rates easier using cell references

One more example of GOOGLEFINANCE in Google Sheets illustrates how you can use cell references in all arguments of the function.

Let's find out the EUR to USD exchange rates over a 7-day period:

=GOOGLEFINANCE(CONCATENATE("CURRENCY:", C2, B2), "price", DATE(year($A2), month($A2), day($A2)), DATE(year($A2), month($A2), day($A2)+7), "DAILY")
GOOGLEFINANCE with cell references in each argument.

The source data - currency codes and start date - are in A2:C2.

To combine a few variables into one, we use the CONCATENATE function instead of a traditional ampersand (&).

The DATE function returns year, month, and day from A2. Then we add 7 days to our start date.

We can always add months as well:

=GOOGLEFINANCE(CONCATENATE("CURRENCY:", C2, B2), "price", DATE(year($A2), month($A2), day($A2)), DATE(year($A2), month($A2)+1, day($A2)+7), "DAILY")

All currency codes for the GOOGLEFINCANCE function

Currency codes consist of ALPHA-2 Code (2-letter country code) and of the first letter of the currency name. For example, the currency code for Canadian dollar is CAD:

CAD = CA (Canada) + D (Dollar)

To use the GOOGLEFINANCE function properly, you need to know currency codes. Here's a full list of currencies of the world along with few cryptocurrencies supported by GOOGLEFINANCE.

I hope that this article will help you get the up-to-date information about currency exchange rates and you won't be caught unawares when it comes to working with finances.

You may also be interested in

Table of contents

39 responses to "How to calculate currency exchange rates in Google Sheets with GoogleFinance"

  1. Eric says:


    Thank you for sharing this useful formula.
    I have some trouble to use it, and I would like to know if there is a solution to my problem.

    On my google sheet, I have a column for our delivery dates. It's not daily nor monthly, it depends on our customers.
    I would like to have the currency exchange rate on a 2nd column, using dates from the first one, and extend the function so when we put a new date, the currency exchange rate appear automatically.

    For the moment I have two problems:
    - When I use the formula to refer to a specific date (using the cell instead of the date), the result takes 4 cells because it creates the table date/close that we can see on your examples. So I can't extend the formula to have a column of rates corresponding to the column of dates.
    - If I use the formula by indicating the column of dates, it creates a table date/close with daily results from the oldest date to the newest (dates are not in order in our column, depending on when we bill the customer), it means that if I have two order separated by 10 days, I will have a date/close table with 10 lines.

    I spent two hours trying to "play" with the formula, but perhaps you can avoid me a headache!

    Best regards,

  2. HANS DAVIDSEN says:

    How to do to have in a cell in google sheet with today USD currency ?
    Thank you for your help

  3. Joe says:

    I am looking to use a currency code that is not listed in the GOOGLEFINANCE exchange list. The currency is kwacha to USD. Is there a way to insert the exchange rate in google sheets?

  4. David Robottom says:

    This is an incredibly useful article, especially for those of us new to Google Finance. Thank you.

    I am trying to match the dates on historical USD/GBP rates with those of historical stock prices. Unfortunately there is a currency entry 7 days a week, whilst stock prices are only given when the market is open, so typically 5 entries per week. The dates in the two columns get quickly out of sync. Is there a way around this please?
    Many thanks

  5. Neil says:

    I want to try this soon. But, I don't think if I can do it! Thanks for sharing this idea! I will follow these instructions, also will share it with my friends!

  6. Mazarin says:

    Houston, we have a problem or two!
    This doesn't seem to work in my Google Sheets.
    In addition: it is unfortunate to include fixed currency names as parameters. What I mean?
    I have the base currency in a specific cell and the currency to convert to in other cell. So I need googlefinance("CURRENCY:$cellx$celly") or something like this.

  7. Luke says:

    Amazing. This sorted my problem out in ten seconds. Perfect solution, thank you.

  8. William Young says:

    This is a great article thank you.

    Is it possible to have the exchange rate update only values entered today?
    Hence any historical calculations using the exchange rate wouldn't be changed by the new exchange rate?

    • Thank you for your feedback, William.

      The result changes depending on the attributes you select. You can find the full list here.
      If you use attributes for realtime data, depending on your choice, the result will be updated every now and then.
      If you use attributes for historical data and specify exact dates, the result will be returned once and won't change in the future.

  9. Ignacio says:

    Awesome Post
    Many thanks for the insigth!

  10. Andrew Black says:

    I use paypal is it possible to change the formula to take into account their commission structure. Apologies if this is too easy a question. For Example If I were to change $1000 it is £767.995 using your formula but the actual exchange using paypal is £802.

    Thank you

  11. Martin says:

    Hi, I copy and paste =GOOGLEFINANCE("CURRENCY:USDEUR","price",TODAY()-10,TODAY()) and answer is #ERROR! . Why? What Did I Do Wrong? 10 in TODAY()-10 didnt light.

  12. Beka says:

    Formula works perfectly but when I convert EUR to PLN it shows 69.36530277!
    It's exactly correct but I don't want to have so many number on a single cell. Is there a possibility to round the number to 67 for example?

  13. Cristina says:

    Hello, I have a list with three columns, base currency, foreign currency and date, the formula =GOOGLEFINANCE("currency:"&E2&F2,"price",G2) works, but only with one row, I am trying to expand it to use it for all rows, but I get an error since the result is not just a cell but a table with a row of titles (date and close) and a row of values. Is there any workaround for this?

  14. Michael Kubik says:

    Hi How do i display the Currency name? eg. for IRR or AUD? in teh column beside the currency symbol?

    • Hi Michael,

      If I'm getting your task correctly and if it's these two currencies only, you can create an IF formula like this:
      =IF(ISNUMBER(SEARCH("AUD",A2))=TRUE,"Australian Dollar",IF(ISNUMBER(SEARCH("IRR",A2))=TRUE,"Iranian Rial",""))

      If there can be literally any currency, you should use Scripts. Here's an overview of Google Apps Script with a lot of helpful content and links.

      • Curious says:

        I saw your response about getting currency full-names in Google Sheets. It seems to be impossible to do via GOOGLEFINANCE. For stocks (e.g. Tesla), one can just do "GOOGLEFINANCE("TSLA", "name"). However, for currencies, there is no way to retrieve the full name. Also, Google AppScripts does not support any GoogleFinance functionality, so the GoogleFinance APIs can only be used from within Google Sheets itself

        • Thank you for pointing that out, Curious.

          In this case, I'm afraid, some other function, like IF in my example, is the easiest workaround since GOOGLEFINANCE doesn't return full currency names. Alternatively, one could learn more about Google Data Studio or even other finance APIs, like Yahoo Finance API. As for the latter, I would look through its documentation first. We don't use it and cannot guarantee anything, it's just an alternative the Web offers. If you have any other ways in mind, feel free to share!

  15. Sumit says:

    I'm trying to convert many currencies to INR but while the formula encounters INRINR it throws up an error. Can you help me out?

  16. Jeremy says:

    Thanks for the article, i would like to calculate the average exchange rate between two dates with only one formula. Do you know how we could do that ?

  17. john says:

    great. thank you.

  18. Alice says:

    Hi, I was wondering if there's any possibility of automating the process - I'm creating a spreadsheet for around 40 currencies and I have a defined period of time (05/31/2017-05/29/2020) but for now I have been just copying and pasting more or less the same formula "GOOGLEFINANCE("CURRENCY:USDAED";"Close"; DATE(2017;5;31); DATE(2020;5;29); "DAILY")" and then I would just change the name of the second currency, but since I have a lot of them it takes quite some time, is there any way to make google sheet just copy and paste the names of the currencies automatically without me having to do it manually?

    • Hi Alice,

      Well, there are lots of currencies and you will still have to say Google which one you need. You can try and enter all currency names in another sheet and reference them in the formula like this:
      =GOOGLEFINANCE("CURRENCY:USD"&Sheet2!A2,"Close", DATE(2017,5,31), DATE(2020,5,29), "DAILY")

      But since cell references adjust themselves when you copy the formula to other cells, you need to arrange currency names in that second sheets in such a way so when you copy the formula in Sheet1 to, say, C2, C2 in Sheet2 would contain another currency name.

  19. gerardo says:

    Hi, Is it possible to obtain BID and ASK foreign prices with = GOOGLE FINANCE?

  20. Brian says:

    I don't need to list the exchange rate. I would like to simply grab it to use a multiplier.
    For example:
    Column A: Date
    Column B: price in CNY
    Column C: price in EUR
    I want to use a formula in Column C to convert the amount in B using the rate from the date in A.
    Is this possible using the googlefinance functionality?
    Thanks for all your help.

    • Hello Brian,

      you can use GOOGLEFINANCE straight in the formula as a multiplier only if you don't reference any date:

      As soon as you add the date attribute, the formula will fetch historic data in two columns: date and rate. Only then you'll be able to reference a column with the rate in your multiplication.

  21. Olly says:

    You haven't included cryptocurrencies such as Bitcoin (BTC) in your full list

Post a comment

Thank you for your comment! When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to your query. We cannot guarantee that we will answer every question, but we'll do our best :)