+ Reply to Thread
Results 1 to 4 of 4

Help - How to convert multiple currencies with one VBA

  1. #1
    Registered User
    Join Date
    05-24-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    35

    Post Help - How to convert multiple currencies with one VBA

    Hi

    I have a set of data that has multiple companies and their revenues. However each company has revenue in a different currency. I want to convert them all to USD.

    i have downloaded a set of currencies and their conversion rates. In order to do the conversion I have created a IF Formula based VBA. However as there is about 165 currencies I was wondering if there is a more simple way to write the code rather than doing a IF formula based on all the currencies (i.e. IF Company X Currency code is = currency code in list, that multiply revenue by the associated conversion rate)?? This would mean I wrote the IF Formula 165 times which would take me ages.

    The VBA code I have currently is picking up 3 of the currencies which can be seen below. I have also attached an example of what I am working on.

    Could someone give me some advise please??

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Help - How to convert multiple currencies with one VBA

    You don't necessarily need a macro.

    =VLOOKUP(B2,$M$2:$N$166,2,0)*C2 solves it just fine.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Help - How to convert multiple currencies with one VBA

    You could use VLOOKUP.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    05-24-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    35

    Re: Help - How to convert multiple currencies with one VBA

    Thank you both!!

+ 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. Replies: 7
    Last Post: 06-15-2014, 10:16 PM
  2. [SOLVED] How to display multiple currencies in one cell
    By AndyMan81 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-12-2014, 10:15 AM
  3. Multiple currencies in Excel
    By titaneu in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-15-2014, 10:51 AM
  4. Multiple Currencies
    By Nikamorphosis in forum Excel General
    Replies: 5
    Last Post: 08-13-2013, 04:51 PM
  5. Adding Multiple Currencies
    By n00bie in forum Excel General
    Replies: 2
    Last Post: 10-08-2007, 10:53 AM

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