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

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!

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.
  • 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!
  • Check that your firewall is allowing Excel access to the net
  • 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?
  • Put a $ symbol in between the cell x and y references so the cell reference becomes B$2
  • You're a legend :) Thanks very much indeed!
  • 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.
  • rmg1
    rmg1 Posts: 3,159 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    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.
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

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

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.