+ Reply to Thread
Results 1 to 8 of 8

Convert Currencies and adjust by rates

  1. #1
    Registered User
    Join Date
    05-06-2017
    Location
    Canada
    MS-Off Ver
    Office 365 subscription
    Posts
    44

    Talking Convert Currencies and adjust by rates

    Hi, this is my first post in the forum and I'm not very knowledgeable in Excel. I'm a student and received the software from my University. I'm doing a semester abroad and thought I'd use the calculations I'd like to do as a learning task for Excel.

    So here's what I want to do:

    List all the funds that I receive in my home-currency (Euro, if it matters at all) and subtract everything from it in the foreign currency (Canadian $)

    So I can keep track of everything much better it I see the item's price in Euro.

    I already figured out how to create the sheets and tables. And I read about all the basic functions I need. But what I have so far is for example:

    2000 € | =(M2)*1.500 so this gives me the amount in CAN$, but the rates are changing. I have entered the conversion rate in multiple cells and wouldn't want to change them individually.

    The question(s):

    a) is there a way to directly tell Excel that I want to convert currencies so it can update the rates using the internet directly?

    b) can I assign values x and y, x being the rate €-->$ and y being $-->€ , so that I can change those values with the rates.

    Thank you so much for your tipps!

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Convert Currencies and adjust by rates

    Try this Link

    http://www.codepal.co.uk/show/MS_Exc...ency_Converter

    I am reading it and will try and modify it for you.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Convert Currencies and adjust by rates

    Ok

    I have something for you to look at.

    First I modified the function to work as an auto open macro.

    So each time you open the workbook or run the auto open macro

    Cell A3 will show the latest currency rate.

    Then I inserted a worksheet change macro to do the calculations for you.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mehmetcik; 05-06-2017 at 06:06 PM.

  4. #4
    Registered User
    Join Date
    05-06-2017
    Location
    Canada
    MS-Off Ver
    Office 365 subscription
    Posts
    44

    Re: Convert Currencies and adjust by rates

    Thank you so much. This is exactly what I was looking for.

    But how can I add the other exchange rate as well to this live update?

    1 CAD
    0.6xxxx EUR?

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Convert Currencies and adjust by rates

    You do not need the reverse exchange rate.

    if 1 CAD = 5.63 Euro then 1 euro = 1/5.63 CAD

  6. #6
    Registered User
    Join Date
    05-06-2017
    Location
    Canada
    MS-Off Ver
    Office 365 subscription
    Posts
    44

    Re: Convert Currencies and adjust by rates

    Thanks for your reply. I mean I know the math obviously, I was actually curious about how to edit this. So let's say I want to add taiwanese dollar. How can I populate the cells below to make them change irt as well? I tried changing the currency code and the link but I suspect this has to be edited, changed somewhere else in the Macro? Maybe this is a little to much then for the beginning, I should rather concentrate on the basics first. Anyway, I will be able to work with what you've provided me with.

  7. #7
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Convert Currencies and adjust by rates

    It is difficult to show you because I cannot post the code on the forum.

    I tried but the firewall blocks it.

    The main code is in the auto Open Macro.

    Select the Developer Tab, then Macros,

    Select Auto_Open and then Edit to see the Macro.

    You have my Last post.

    i will modify the spreadsheet and paste it below.

    I made the converter a subroutine and called it twice.

    The Currency codes you can get from the Web Site in Cell D1

    http://www.xe.com/iso4217.php
    Attached Files Attached Files
    Last edited by mehmetcik; 05-07-2017 at 07:14 PM.

  8. #8
    Registered User
    Join Date
    05-06-2017
    Location
    Canada
    MS-Off Ver
    Office 365 subscription
    Posts
    44

    Re: Convert Currencies and adjust by rates

    https://pastebin.com/pi46LPfC

    I tried it this way but I get the error: Next without For

    EDIT: I see you already edited your post. Now that's really great. I thank you very much sir!
    Last edited by MinisoftEggshell; 05-07-2017 at 07:58 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Convert values with different currencies, from different years to EUR
    By Copiloc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-01-2016, 08:31 AM
  2. working out weekday rates vs weekend rates
    By scott11106 in forum Excel General
    Replies: 3
    Last Post: 08-29-2015, 12:14 PM
  3. Getting Historical Fx Rates for Multiple Currencies
    By ptmuldoon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-26-2015, 01:47 PM
  4. [SOLVED] Help - How to convert multiple currencies with one VBA
    By indik in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-03-2015, 01:33 PM
  5. Replies: 7
    Last Post: 06-15-2014, 10:16 PM
  6. Replies: 4
    Last Post: 10-20-2010, 04:41 AM
  7. Replies: 0
    Last Post: 01-29-2005, 06:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1