Historic currency conversion

gb24

New Member
Joined
Apr 16, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi, looking to do a exchange rate conversion at a specific date to return a result in the orange cell. The base currency is GBP, but the counter currency is selective from a drop down list of CHF / USD / EUR, the exchange rate date fluctuates dependent upon the payment date entered. Not sure if that's enough information or will work! TIA
1713262192420.png
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
do you have a table of conversion rates for all currencies in dropdown and the dates on a sheet
you could thne use a lookup of some kind
depends on the table
maybe a grid of dates and currencies with the conversion
and then a sumproduct() to lookup the grid to find the actual rate and conver
 
Upvote 0
Thanks! Hoping to avoid having the enter the currency conversions into a different spreadsheet, as once it's left me I won't be in charge of updating it. I was hoping that 'stockhistory' would work but my Excel skills don't make it happen! :D
 
Upvote 0
ok, no idea sorry never used stockhistory
 
Upvote 0
how far back would you need to go - just had a play
USED
=STOCKHISTORY("gbp/usd", TODAY()-30, TODAY(),0,2,0,1)
looks like it could be used in agrid somehow - will look further

Book1
AB
1GBPUSD
2DateClose
33/18/24$ 1.27
43/19/24$ 1.27
53/20/24$ 1.28
63/21/24$ 1.27
73/22/24$ 1.26
83/25/24$ 1.26
93/26/24$ 1.26
103/27/24$ 1.26
113/28/24$ 1.26
123/29/24$ 1.26
134/1/24$ 1.26
144/2/24$ 1.26
154/3/24$ 1.27
164/4/24$ 1.26
174/5/24$ 1.26
184/8/24$ 1.27
194/9/24$ 1.27
204/10/24$ 1.25
214/11/24$ 1.26
224/12/24$ 1.25
234/15/24$ 1.24
Sheet1
Cell Formulas
RangeFormula
A1:B23A1=STOCKHISTORY("gbp/usd", TODAY()-30, TODAY(),0,2,0,1)
Dynamic array formulas.
 
Upvote 0
had a play and mocked something up
not fully tested

But an idea - I may change and improve

=STOCKHISTORY(B6&":"&B5, TODAY()-200, TODAY(),0,2,0,1)

the exchange rate is created on the fly - based on the dropdown cells
and on one sheet for simplicity

on dropbox for a few days

so when you change the dropdown , it will update the list and then lookup the rate - i have used lowest - but could use exact lookup as 0) as its producing daily figures

can change the range of dates it looksup

issue will be the historic data will change as its all dynamic

just an idea

Book1
ABCDEFGHIJKLMN
1
2GBPUSD
3DateClose
49/29/23$ 1.22
5USDCHF10/2/23$ 1.21
6GBPUSD10/3/23$ 1.21
7EUR10/4/23$ 1.21
8conversionstirling10/5/23$ 1.22
910/1/2350$ 1.2240.99368710/6/23$ 1.22
102/1/24100$ 1.2778.480615310/9/23$ 1.22
113/1/241000$ 1.27790.51383410/10/23$ 1.23
124/1/2455550$ 1.2644262.948210/11/23$ 1.23
1310/12/23$ 1.22
1410/13/23$ 1.21
1510/16/23$ 1.22
1610/17/23$ 1.22
1710/18/23$ 1.21
1810/19/23$ 1.21
1910/20/23$ 1.22
2010/23/23$ 1.22
2110/24/23$ 1.22
2210/25/23$ 1.21
2310/26/23$ 1.21
2410/27/23$ 1.21
2510/30/23$ 1.22
2610/31/23$ 1.22
2711/1/23$ 1.22
2811/2/23$ 1.22
2911/3/23$ 1.24
3011/6/23$ 1.23
3111/7/23$ 1.23
3211/8/23$ 1.23
3311/9/23$ 1.22
3411/10/23$ 1.22
3511/13/23$ 1.23
3611/14/23$ 1.25
3711/15/23$ 1.24
3811/16/23$ 1.24
3911/17/23$ 1.25
4011/20/23$ 1.25
4111/21/23$ 1.25
4211/22/23$ 1.25
4311/23/23$ 1.25
4411/24/23$ 1.26
4511/27/23$ 1.26
4611/28/23$ 1.27
4711/29/23$ 1.27
4811/30/23$ 1.26
4912/1/23$ 1.27
5012/4/23$ 1.26
5112/5/23$ 1.26
5212/6/23$ 1.26
5312/7/23$ 1.26
5412/8/23$ 1.25
5512/11/23$ 1.26
5612/12/23$ 1.26
5712/13/23$ 1.26
5812/14/23$ 1.28
5912/15/23$ 1.27
6012/18/23$ 1.26
6112/19/23$ 1.27
6212/20/23$ 1.26
6312/21/23$ 1.27
6412/22/23$ 1.27
6512/25/23$ 1.27
6612/26/23$ 1.27
6712/27/23$ 1.28
6812/28/23$ 1.27
6912/29/23$ 1.27
701/1/24$ 1.27
711/2/24$ 1.26
721/3/24$ 1.27
731/4/24$ 1.27
741/5/24$ 1.27
751/8/24$ 1.27
761/9/24$ 1.27
771/10/24$ 1.27
781/11/24$ 1.28
791/12/24$ 1.28
801/15/24$ 1.27
811/16/24$ 1.26
821/17/24$ 1.27
831/18/24$ 1.27
841/19/24$ 1.27
851/22/24$ 1.27
861/23/24$ 1.27
871/24/24$ 1.27
881/25/24$ 1.27
891/26/24$ 1.27
901/29/24$ 1.27
911/30/24$ 1.27
921/31/24$ 1.27
932/1/24$ 1.27
942/2/24$ 1.26
952/5/24$ 1.25
962/6/24$ 1.26
972/7/24$ 1.26
982/8/24$ 1.26
992/9/24$ 1.26
1002/12/24$ 1.26
1012/13/24$ 1.26
1022/14/24$ 1.26
1032/15/24$ 1.26
1042/16/24$ 1.26
1052/19/24$ 1.26
1062/20/24$ 1.26
1072/21/24$ 1.26
1082/22/24$ 1.27
1092/23/24$ 1.27
1102/26/24$ 1.27
1112/27/24$ 1.27
1122/28/24$ 1.27
1132/29/24$ 1.26
1143/1/24$ 1.27
1153/4/24$ 1.27
1163/5/24$ 1.27
1173/6/24$ 1.27
1183/7/24$ 1.28
1193/8/24$ 1.29
1203/11/24$ 1.28
1213/12/24$ 1.28
1223/13/24$ 1.28
1233/14/24$ 1.28
1243/15/24$ 1.27
1253/18/24$ 1.27
1263/19/24$ 1.27
1273/20/24$ 1.28
1283/21/24$ 1.27
1293/22/24$ 1.26
1303/25/24$ 1.26
1313/26/24$ 1.26
1323/27/24$ 1.26
1333/28/24$ 1.26
1343/29/24$ 1.26
1354/1/24$ 1.26
1364/2/24$ 1.26
1374/3/24$ 1.27
1384/4/24$ 1.26
1394/5/24$ 1.26
1404/8/24$ 1.27
1414/9/24$ 1.27
1424/10/24$ 1.25
1434/11/24$ 1.26
1444/12/24$ 1.25
1454/15/24$ 1.24
146
Sheet2
Cell Formulas
RangeFormula
L2:M145L2=STOCKHISTORY(B6&":"&B5, TODAY()-200, TODAY(),0,2,0,1)
C9:C12C9=INDEX($M:$M,MATCH(A9,$L:$L,1))
D9:D12D9=B9/C9
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
B5List=$G$5:$G$7
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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