Skip to main content
Solved

How to convert formula from Excel to Airtable


Forum|alt.badge.img+3

I have an Excel formula I'd like to replicate in Airtable.

This formula converts different currencies into GBP.

Excel:

=IF(M2+(N2/1.25)+(O2/1.2)+(P2/8.75)=0,"",M2+(N2/1.25)+(O2/1.2)+(P2/8.75))

Key:

£ GBP$ USD€ EUR¥ CNY
M2N2O2P2

How would I go about it?

 

Best answer by Nyaruko

Hi send_help_pls,

Since you're coming from Excel, I'll include the excel terminology parenthetically.

First, make a new table (sheet), and name fields (columns) 2-5:
GBP, USD, EUR, CNY
Set them up as currency fields (columns) with their respective symbols.

Next, add a Converted to GBP field (column) as a formula field.

Use the following formula:

IF( {GBP} + ({USD} / 1.25) + ({EUR} / 1.2) + ({CNY} / 8.75) = 0, "", {GBP} + ({USD} / 1.25) + ({EUR} / 1.2) + ({CNY} / 8.75) )

This should convert any of the currency fields into GBP.

View original
Did this topic help you find an answer to your question?

2 replies

Forum|alt.badge.img+5
  • Inspiring
  • 9 replies
  • Answer
  • May 23, 2024

Hi send_help_pls,

Since you're coming from Excel, I'll include the excel terminology parenthetically.

First, make a new table (sheet), and name fields (columns) 2-5:
GBP, USD, EUR, CNY
Set them up as currency fields (columns) with their respective symbols.

Next, add a Converted to GBP field (column) as a formula field.

Use the following formula:

IF( {GBP} + ({USD} / 1.25) + ({EUR} / 1.2) + ({CNY} / 8.75) = 0, "", {GBP} + ({USD} / 1.25) + ({EUR} / 1.2) + ({CNY} / 8.75) )

This should convert any of the currency fields into GBP.


Forum|alt.badge.img+3
  • Author
  • New Participant
  • 4 replies
  • May 24, 2024
Nyaruko wrote:

Hi send_help_pls,

Since you're coming from Excel, I'll include the excel terminology parenthetically.

First, make a new table (sheet), and name fields (columns) 2-5:
GBP, USD, EUR, CNY
Set them up as currency fields (columns) with their respective symbols.

Next, add a Converted to GBP field (column) as a formula field.

Use the following formula:

IF( {GBP} + ({USD} / 1.25) + ({EUR} / 1.2) + ({CNY} / 8.75) = 0, "", {GBP} + ({USD} / 1.25) + ({EUR} / 1.2) + ({CNY} / 8.75) )

This should convert any of the currency fields into GBP.


You're a legend, thank you!


Reply