Looup Exchange Rates over begin and end dates and country

Marc Enzi

Board Regular
Joined
Dec 13, 2004
Messages
92
Group,
I have a set of daily exchange rate data spanning one year. It has been a long time since I've done this and I am really struggling...
Data Set
A............... B............C...........D
Date.......... CAD.........EUR........GBP
01/01/2016 0.722932 1.086970 1.473860
01/02/2016 0.722932 1.086970 1.473860
01/03/2016 0.722932 1.086970 1.473860
01/04/2016 0.719057 1.086640 1.473360
01/05/2016 0.717226 1.078690 1.469320
.
.
12/31/2016 0.743959 1.052040 1.234120

I am given a Begin_date and an End_date and a CURRENCY, I need to find the average exchange rate to $USD over the range of dates for the Selected Currency.

Input Sheet

A...............B...............C..............D
Begin_Date End_Date CURRENCY RESULT
01/03/2016 01/05/2016 EUR 1.084100

Your help is greatly appreciated.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Assuming data in Sheet data in range A1:D366 (headers in row 1)

Maybe this
D2 of Input
=AVERAGEIFS(INDEX(Data!B2:D366,0,MATCH(C2,Data!B1:D1,0)),Data!A2:A366,">="&A2,Data!A2:A366,"<="&B2)

Hope this helps

M.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,217,433
Messages
6,136,599
Members
450,021
Latest member
Jlopez0320

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top