How to Convert Currency in Airtable

Jul 29, 2021Andy Cloke

In this guide, we'll convert currency in Airtable for a list of transactions with different currencies and amounts. To do this, we'll use exchangerate.host API, which provides current and historical exchange rates. This guide is 100% no-code, as we'll use the Data Fetcher Airtable extension to connect to exchangerate.host and pull in exchange rates.

Create Transactions Table

Create a table in your base called 'Transactions'. If you've already got a table with your currencies and amounts in, you can use that instead.

Add a field called 'Currency' with type 'Single line text'. Then add a field called 'Amount' with type 'Number' and a precision of '1.00'. Add records for the currency symbols you want to convert and the amounts for each transaction.

transactions currency converted in Airtable.png

Install Data Fetcher

Install Data Fetcher from the Airtable marketplace. After the extension launches, sign up for a free Data Fetcher account by entering a password and clicking 'Sign up for free'.

Group 1Data Fetcher Sign Up .png

Convert Currency in Airtable

On the home screen of the Data Fetcher extension, click 'Create your first request'. Requests in Data Fetcher are how you import data to or send data from your Airtable base.

click-create-your-first-request.png

On the create request screen in Data Fetcher, for Application, select 'exchangerate.host'.

exchange-rate-host-selected-application.png

For Endpoint, select 'Convert from one currency to another'.

convert from one currency to another endpoint.png

Enter a Name for your request, e.g. 'Import Exchange Rates'. Then click 'Save & Continue'.

convert-currency-save-continue.png

For From currency, we want to insert a reference to our 'Currency' field. First click the + button.

convert-currency-from-currency-add-icon.png

Then, on the modal that opens, select 'Transactions' for Table, 'Currency' for Field, 'Grid view' for Run for every record in view. Then click 'Confirm'.

convert-currency-from-currency-table-reference.png

The From currency field should now contain a reference to the table.

convert-currency-from-currency-field-table-refernce.png

Select the target currency you want to convert into for To currency, e.g. 'USD'.

convert-currency-to-currency.png

For Amount, use the + button to create a reference to the 'Amount' field in the 'Transactions' table.

convert-currency-amount.png

By default, we are going to import the latest exchange rates. If you want to convert currency in Airtable for particular historical dates, you can set the Historical date option. You can either set this to a particular date using the date picker, or reference a field in your Transactions table with type 'Date'.

Make sure the Output Table & View is set to 'Transactions' and 'Grid view'.

convert-currency-output-table-view.png

Click 'Save & Run'.

convert-currency-save-and-run.png

The request will run and the Response field mapping modal will open. This is where you set how the fields from exchangerate.host should map to fields in the 'Transactions' table. For each field, you can either import or filter it. For an imported field, you can set whether to map them to an existing field or create a new field.

Make sure you import the 'Result' field, which has the result of the currency conversion! Import any other fields you want. Then click 'Save & Run'.

convert-currency-response-field-mapping.png

Data Fetcher will create any fields that need to be created in the output table, then run the request and convert the currency for every record in the 'Transactions' table.

convert-currency-imported-data.png

Convert Currency in Airtable Automatically

At the moment, we have to manually run the request to update the exchange rates. We can use Data Fetcher's scheduled requests feature to update them by converting currencies every 15 minutes/ hour/ day etc.

In Data Fetcher, scroll to Schedule and click 'Upgrade'.

table-1-schedule-upgrade-button.png

A new tab will open where you can select a plan and enter your payment details to upgrade.

data fetcher upgrade pricing plans.png

Return to the Data Fetcher extension and click 'I've done this'.

table-1-schedule-ive-done-this-button.png

Under Schedule click '+ Authorize'.

Schedule Data Fetcher

A new window will open where you can authorize the particular Airtable bases for Data Fetcher to access.

By selecting 'All current and future bases in all current and future workspaces' you'll avoid having to authorize further bases for future use.

Click 'Grant access'.

schedule-authorize-bases.jpg

You'll now see Schedule this request has toggled to on.

Select how often you want the request to run, e.g. 'Every 15 mins'. Click 'Save' The request will now run on the schedule and update the exchange rates automatically.

Group 11(2).png

Related Posts

How To Import Data into Airtable When a Record is Updated

How To Import Data into Airtable When a Record is Updated

Oct 17, 2023

Rosie Threlfall

Currency ConversionNo-CodeAirtable
How to Import Company Revenue, EPS and Financial Ratios in Airtable

How to Import Company Revenue, EPS and Financial Ratios in Airtable

Mar 22, 2022

Rosie Threlfall

Alpha VantageFinance
Import Historical Exchange Rates in Airtable

Import Historical Exchange Rates in Airtable

Feb 20, 2022

Andy Cloke

FinanceCurrency Conversion