The FOREX() function is designed to automatically retrieve international currency exchange rates directly from the Yahoo Finance website (finance.yahoo.com) for a specified currency pair (e.g., EURUSD, USDJPY) and selected date. It supports both historical quotes and real-time values.
This function is convenient for creating stock trackers in Excel (LibreOffice Calc) spreadsheets and will be useful for investors, traders, and financial analysts.
=FOREX(Pair; [Date]; [Indicator])
The FOREX() function is easy to use. You just need to specify a cell with the currency pair code and Excel (Calc) will automatically import the exchange rate of these currencies for the specified date:
=FOREX(Pair; Date)
We will get the following result:
The following values are used in this example:
The following values are used in this example:
Corresponding data from the Yahoo Finance website:
You can use the FOREX() function by installing the YLC Utilities extension.
After this, this function will be available in all files opened in Excel (LibreOffice Calc).