TOP

Forex Function

FOREX() Description

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.


Internet connection is required for this function to work.

Key Features of the FOREX Function

Syntax:

=FOREX(Pair; [Date]; [Indicator])

Parameters:

Usage Example

Example 1

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:

Example of using the FOREX() function
Example of using the FOREX() function

The following values are used in this example:

Example 2

Example of using the FOREX() function
Example of using the FOREX() function

The following values are used in this example:

Corresponding data from the Yahoo Finance website:

FOREX formula usage

Download extension

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).


This function is also available in the following extensions: YLC FunctionsYLC Utilities

The YLC Utilities menu in LO Calc

The YLC Utilities menu in LO Calc

The YLC Utilities menu in Excel

The YLC Utilities menu in Excel