We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
MS Excel: help with a formula for exchange rate
city_knight
Posts: 24 Forumite
in Techie Stuff
Hi!
I wondered if anybody uses formulae in Excel that are a function of an exchange rate..
What I'd like to do it to have a cell that updates its value each time the sheet is opened with the current interbank euro/pound fx rate so that I can formulate other amounts using the updated value.
The Help files suggest parsing a webpage with VB script but this sounds like far to much effort for something simple
All solutions appreciated!
I wondered if anybody uses formulae in Excel that are a function of an exchange rate..
What I'd like to do it to have a cell that updates its value each time the sheet is opened with the current interbank euro/pound fx rate so that I can formulate other amounts using the updated value.
The Help files suggest parsing a webpage with VB script but this sounds like far to much effort for something simple
All solutions appreciated!
0
Comments
-
try this method
Select any cell then go to Data | Get external data | New web query,
in the text box type:
http://finance.yahoo.com/currency/convert?amt=1&from=EUR&to=GBP&submit=Convert
(or wherever you want your data to come from)
click OK,
select New worksheet in the popup window,
click on Properties,
Under Refresh Control, select refresh every and refresh data on file open
set the amount of minutes interval you wish the data to refresh
click OK and OK again.0 -
That's great - I can see how that all would work

Now need to find out why the Excel browser doesn't display web pages!0 -
Check that your firewall is allowing Excel access to the net0
-
All very cool
One last issue - when I use this rate cell (B2) in a formula, then fill down, it looks to a value in B3 that doesn't exist. How should I format a cell reference within a formula so that when I "fill down", it doesn't increment the row number on this element of the function? 0 -
Put a $ symbol in between the cell x and y references so the cell reference becomes B$20
-
You're a legend
Thanks very much indeed! 0 -
I see it's been a long time since this thread was born, hopefully somebody will read and help me.
I like the idea discussed here but I want to control when the rates must be updated with a button.
Any idea on how i can achieve this?
To refine the process I would also like to retrieve only the currencies that I'm interested in and it can be done with separate buttons if necessary.
If this is not possible I will retrieve the full list.
Any help will be much appreciated.0 -
You can write code to run the refresh whenever you want. As for getting on ly certain queries, I'm not sure.
The code for controlling the refresh would be something along the lines of:-
Sub refresher()
dim ws as worksheet,qt as querytable
for each ws in worksheets
for each qt in ws.querytables
qt.refresh
next qt
next ws
End Sub:wall: Flagellation, necrophilia and bestiality - Am I flogging a dead horse? :wall:
Any posts are my opinion and only that. Please read at your own risk.0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 352.3K Banking & Borrowing
- 253.7K Reduce Debt & Boost Income
- 454.4K Spending & Discounts
- 245.4K Work, Benefits & Business
- 601.1K Mortgages, Homes & Bills
- 177.6K Life & Family
- 259.2K Travel & Transport
- 1.5M Hobbies & Leisure
- 16K Discuss & Feedback
- 37.7K Read-Only Boards