Back to CurrencyScoop in Excel
SheetXAI logo
CurrencyScoop logo
CurrencyScoop · Excel Guide

Pull Historical Exchange Rate Data Into a Google Sheet for FX Analysis

2026-05-14
5 min read

The Scenario

You manage treasury at a mid-sized importer. Every quarter, the CFO wants a chart showing how the currencies you pay suppliers in have trended against USD — specifically USD/MXN, USD/BRL, and USD/EUR over the trailing 90 days. The ask lands in your inbox on a Tuesday afternoon. The meeting is Thursday morning. Last quarter you built this by hand: pulled a data export from a rate aggregator, wrestled it into the right shape, realized the date format was wrong, fixed it, imported to Excel. It took most of Wednesday.

The bad version:

  • Navigate to a rate aggregator that offers a historical download, export 90 days of USD/MXN as a CSV, import to Excel, fix the date format because the export used MM/DD/YYYY and your workbook expects YYYY-MM-DD.
  • Repeat the export-and-import cycle for USD/BRL and USD/EUR — three separate CSVs, three separate imports, three separate cleanup passes.
  • Realize the three datasets have slightly different date ranges because the aggregator's export UI defaulted to different start dates for each pair, and now you need to align them on a shared date spine before the chart works.

By the time the chart is ready, you've spent a day on data prep for a ten-minute meeting. That's the entire budget for a Wednesday.

The Easy Way: One Prompt in SheetXAI

SheetXAI is an AI agent that lives inside your Excel workbook. It reads your data and, through its CurrencyScoop integration, can call the historical timeseries endpoint directly — pulling date-by-date rates for any currency pair over any date range and writing them into your workbook in whatever shape you need.

Use CurrencyScoop to fetch daily USD to MXN exchange rates from 2025-11-01 to 2026-01-31 and write each date and rate as a new row in the Rates worksheet, with dates in column A and rates in column B

What You Get

  • The Rates worksheet fills with one row per calendar day for the full date range.
  • Column A contains dates in YYYY-MM-DD format, column B contains the daily close rate.
  • The data is ready to drive a chart or a VLOOKUP against a transactions ledger without any additional cleanup.
  • If any dates in the range return no data (holidays, gaps in the feed), those rows are noted rather than silently skipped, so you know the date spine is complete.

What If the Data Is Not Quite Ready

You need multiple currency pairs in the same worksheet, each in its own column

Use CurrencyScoop to fetch daily close rates for USD/MXN, USD/BRL, and USD/EUR from 2025-11-01 to 2026-01-31 — write dates into column A and each pair's rates into columns B, C, and D with pair labels in the header row

The currency pairs to pull are listed in the workbook and you don't want to name them manually

Read the currency pair codes from column A of the Pairs worksheet, then use CurrencyScoop to fetch 90 days of daily rates for each pair and write the results into the Rates worksheet with dates as rows and pairs as columns

You need weekly averages rather than daily close rates

Use CurrencyScoop to fetch daily USD to EUR rates for the past 12 months, group them by week, calculate the weekly average rate, and write week-start date and average into columns A and B of the FX Summary worksheet

Full pipeline: fetch timeseries, join to transaction ledger, calculate FX gain/loss

Fetch daily USD/MXN rates from CurrencyScoop for the date range in my Transactions worksheet, match each transaction row to its closest rate by date, write the matched rate into column F, and calculate the FX gain or loss versus the budgeted rate in column G into column H

Every time you add a new requirement to the data, ask for it in the same prompt rather than running a second pass.

Try It

Get the 7-day free trial of SheetXAI and open any Excel workbook where you track foreign currency exposure, then ask it to pull a CurrencyScoop timeseries for whatever date range and pair you need. For per-row enrichment, see enrich transactions with historical rates. The hub overview is at How to Connect CurrencyScoop to Excel.

Stop memorizing formulas.
Tell your spreadsheet what to do.

Join 4,000+ professionals saving hours every week with SheetXAI.

Learn more