+ Reply to Thread
Results 1 to 2 of 2

Can you apply exchange rate to a cell based on the currency it is formatted as?

  1. #1
    Registered User
    Join Date
    10-18-2021
    Location
    London, England
    MS-Off Ver
    365
    Posts
    4

    Can you apply exchange rate to a cell based on the currency it is formatted as?

    Hopefully a quick answer. I have a sheet of costs that is formatted as different currencies (mainly USD & GBP). Is there a way to apply an exchange rate to the cells based on the currency it is formatted to? E.g. identifying the formatted currency in an "if" formula

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    896

    Re: Can you apply exchange rate to a cell based on the currency it is formatted as?

    Hi there,
    Yes that is possible for most currencies. It will extract the currency such as $, but won't distinguish between different $ (US, Canada, Australia...)
    You can use a UDF (User defined Function) to extract the currency symbol, then use that in a lookup table to get the exchange rate.

    Copy/Paste the code below in a VBA module (you will need to save your workbook as macro enabled workbook).

    In the spreadsheet use the UDF like other formulas in the cell you want the currency symbol extracted too: =GetCurr(A2) ..or wherever your currency amount is.

    Please Login or Register  to view this content.
    If your Question is answered; please mark it SOLVED. If you are happy with a member's solution, say 'Thanks' and click the 'Star' to Add Reputation.

+ 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. VBA: Exchange rate currency conversion in same cell
    By PGLeeM in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-09-2020, 10:46 AM
  2. Replies: 5
    Last Post: 09-16-2014, 01:24 PM
  3. Currency Converter based on pick list and exchange rate
    By rguliuzza in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-04-2012, 05:40 PM
  4. Possible to do in-cell query for currency exchange?
    By jamesv in forum Excel General
    Replies: 1
    Last Post: 05-30-2012, 07:09 PM
  5. Query for Currency Exchange in Cell - Possible?
    By jamesv in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-30-2012, 07:06 PM
  6. Historic Currency Exchange Rate Lookup
    By andy_dyer in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-01-2010, 12:17 AM
  7. [SOLVED] How to get exchange rate into cell
    By Piotr in forum Excel General
    Replies: 2
    Last Post: 01-29-2005, 07:08 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