How to Automate Currency Conversion in Excel (5 Easy Methods)

Method 1 – Automate Currency Conversion Using Multiplication

We have a sample dataset where the  price of each product is shown in USD, which we want to convert to EURO.

Automate Currency Conversion Using Multiplication

Steps:

  • Use the following formula in cell D5:

=C5*$G$6

Here, cell G6 is the conversion rate of USD to EURO.

  • Press Enter.

Automate Currency Conversion Using Multiplication


Method 2 – Utilizing Nested IF Formula to Automate Currency Conversion

In the following dataset, we want to convert USD to different currencies such as EUR, JPY, GBP, CHF, CAD, and AUD.

Utilizing Nested IF Formula to Automate Currency Conversion

Steps:

  • Use the following formula in cell D5:

=IF(C5="eur",0.94,IF(C5="jpy",127.4,IF(C5="gbp",0.8,IF(C5="chf",0.97,IF(C5="cad",1.28,IF(C5="aud",1.41))))))*B5

  • Press Enter.

How to Automate Currency Conversion in Excel

  • Drag the Fill handle icon.
  • The amount will be converted from USD to the different currencies entered.

Utilizing Nested IF Formula to Automate Currency Conversion

How Does the Formula Work?

  • Here, we define a condition whether cell C5 is equal to  EUR, JPY, GBP, CHF, CAD, or AUD. Once this condition is met, the function will return a value and the value will be multiplied by cell B5.

Method 3 – Using VLOOKUP Function to Automate Currency Conversion

Steps:

  • Use the following formula in the cell D5:

=B5*VLOOKUP(C5,$F$5:$G$10,2,0)

  • Press Enter.

Using VLOOKUP Function in Excel

  • Drag the Fill handle icon.
  • The amount will be converted from USD to the different currencies entered.

Using VLOOKUP Function in Excel

How Does the Formula Work?

  • The VLOOKUP function looks for a value in the table array F5:G10 and then returns a value in the row from the column we specify.
  • The returned value is multiplied by cell B5 to give the converted amounts for each currency.

Method 4 – Combination of INDEX and MATCH Functions in Excel

Steps:

  • Use the following formula in cell D5:

=INDEX($G$5:$G$10, MATCH(C5,$F$5:$F$10,0))*B5

  • Press Enter.

Combination of  INDEX and MATCH Functions to Automate Currency Conversion

  • Drag the Fill handle icon.
  • The amount will be converted from USD to the different currencies entered.

Combination of  INDEX and MATCH Functions to Automate Currency Conversion

How Does the Formula Work?

  • The MATCH(C5,$F$5:$F$10,0) function returns the relative position of an item in the array F5:F10 that matches a specified value C5 in the specified order.
  • The INDEX function returns the 0.94 which is in the first row of the range F5:F10.
  • Multiply the whole combined functions by cell B5 to get the final output.

Method 5 – Using External XML Source in Excel

Steps:

  • Go to the Data tab, select Get Data > From File > From XML.

Using External XML Source in Excel

  • When the Import Data window appears, enter the URL: http://www.floatrates.com/daily/usd.xml in the File name. Then, click on Import.

How to Automate Currency Conversion in Excel

  • Click on Transform Data.

Using External XML Source in Excel

  • When the Power Query Editor opens, go to the Item. Click on Table.

How to Automate Currency Conversion in Excel

  • Click on the arrow.Using External XML Source in Excel
  • Click on OK.

How to Automate Currency Conversion in Excel

  • You will get the exchange rate columns.

Using External XML Source in Excel

  • Select Home > Manage Columns > Choose Columns.

  • Check the required columns like the following and click on OK.

Using External XML Source in Excel

  • Click on Close & Load.

How to Automate Currency Conversion in Excel

  • You will get the exchange rate in the spreadsheet.

Using External XML Source in Excel

  • Now, you have to create a new worksheet
  • Use the following formula in the cell C5:

=VLOOKUP($C$4,usd[[item.targetCurrency]:[item.exchangeRate]],3,FALSE)

Here, C4 is the GBP currency and the final argument is False.

  • Press Enter.

  • The [[item.targetCurrency]:[item.exchangeRate]] is the lookup data in the linked XML file.

How to Automate Currency Conversion in Excel

  • Use the following formula in cell C6:

<span style="color: #000000;">=VLOOKUP($C$4,usd[[item.targetCurrency]:[item.exchangeRate]],3,FALSE)*B6</span>

Here, C4 is the GBP currency and the final argument is False. The whole formula is multiplied by cell B6 to get the converted currency.

  • Press Enter.

  • Drag the Fill handle icon.
  • It will convert USD TO GBP.

How to Automate Currency Conversion in Excel

  • Use the following formula in the cell D5:

<span style="color: #000000;">=VLOOKUP($D$4,usd[[item.targetCurrency]:[item.exchangeRate]],3,FALSE)</span>

Here, D4 is the EUR currency and the final argument is False. The [[item.targetCurrency]:[item.exchangeRate]] is the lookup data in the linked XML file.

  • Press Enter.

  • Use the following formula in the cell D6:

=VLOOKUP($D$4,usd[[item.targetCurrency]:[item.exchangeRate]],3,FALSE)*B6

Here, C4 is the GBP currency and the final argument is False. The whole formula is multiplied by cell B6 to get the converted currency.

  • Press Enter.

How to Automate Currency Conversion in Excel

  • Drag the Fill handle icon.
  • It will convert USD to different currencies.

Using External XML Source in Excel


Download Practice Workbook


<< Go Back to Currency Conversion in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Saquib Ahmad Shuvo
Saquib Ahmad Shuvo

Saquib Ahmad Bhuiyan, holding a BSc degree in Naval Architecture & Marine Engineering from Bangladesh University of Engineering and Technology, skillfully integrates engineering expertise with a passion for Excel. He provides solutions to complex issues as an Excel & VBA Content Developer for ExcelDemy Forum. He demonstrates an enthusiastic mindset and adeptness in managing critical situations with finesse, showcasing his commitment to excellence. Apart from creating Excel tutorials, he is interested in Data Analysis with MS Excel, Rhinoceros,... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo