Help

Looking up a value if it matches 2 or more fields

1490 3
cancel
Showing results for 
Search instead for 
Did you mean: 
Peter_Schindler
5 - Automation Enthusiast
5 - Automation Enthusiast

Hello,

I don’t seem to understand Airtable.

I would like to have a Table of Transactions as follows:

Screenshot 2020-03-28 at 13.18.44.

  • TransactionID field is Autonumber
  • Date, Description, Amount, Currency are entered
  • Year is the formula Year(Date)

In addition, I have exchange rates between my business currency (HKD) and other currencies, by year: one set of exchange rate for 2019, one for 2020, in the future for 2021, 2022, etc.

I would like to have a table that contains the exchange rates for each year, for example like this:

Screenshot 2020-03-28 at 13.23.04

Finally, the RateForthisTx Field in the Transaction Table should be the result of a lookup(Currency, Year), e.g., lookup(AUD, 2019), or lookup (CHF, 2020), whatever corresponds to the actual values in a given transaction.

I must be thick, but I can’t find a solution Airtable, unless, perhaps, we’d have to resort to Scripts.

Once again, a big thank you to anyone who can help.

Peter

3 Replies 3

Hi @Peter_Schindler,

You can do the following,

  1. In the ExchangeRates table, copy the Primary Field into another field. (insert a new field and copy it)

  2. Now in the Primary Field, Make a formula that is Currency&", "&Year

  3. In the Transactions table, creat a Linked Field that links to the Exchange Rates (you can do this manually or via script, look in the community for scripts for linked records).

  4. Now you can do your lookup.

BR,
Mo

Peter_Schindler
5 - Automation Enthusiast
5 - Automation Enthusiast

Hello Mo,

thanks again very much. Will try it!

Cheers,
Peter

GavinA
8 - Airtable Astronomer
8 - Airtable Astronomer

@Peter_Schindler Unless I am mistaken, the app we have built, Currency Converter (Currency Converter - Apps - Airtable Marketplace) may be a help if this is still a problem. We are constantly looking for ways we may improve it so let us know if there is something missing :slightly_smiling_face: