+ Reply to Thread
Results 1 to 4 of 4

if formula depend on currency

  1. #1
    Registered User
    Join Date
    08-02-2020
    Location
    Israel
    MS-Off Ver
    2016-2013
    Posts
    15

    if formula depend on currency

    Hi,

    I have a table in excel with a column that contains prices in $ and in local currency.
    I need a formula that can check if the amount is in $ or local currency.
    Now the formula must be : If the value is in $ it will be multiply for a rate and exchange to local currency and write the result in another column .If it is in local currency , it must be wrote in the same column that the amount that we exchange.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,005

    Re: if formula depend on currency

    UDF

    Please Login or Register  to view this content.
    In F2

    =IF(currcode($E2)="$",$E2*$N$3,$E2)
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-02-2020
    Location
    Israel
    MS-Off Ver
    2016-2013
    Posts
    15

    Red face Re: if formula depend on currency

    THANK YOUֱֱ!!!!

    I knew that this forum is full or very cleaver people!!!

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: if formula depend on currency

    ..another option is to use one of the little used old Excel 4 macros, i.e the Get.Cell

    Create a name say CurrSymbol and define it as
    =GET.CELL(7,OFFSET(INDIRECT("RC",FALSE),0,-1))

    Now in F2 copied down enter

    =IF(ISERROR(FIND("US",CurrSymbol)),E2*$N$3,E2)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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: 5
    Last Post: 04-23-2021, 06:13 AM
  2. Replies: 2
    Last Post: 09-26-2018, 03:19 PM
  3. vba to apply formula depend where header is
    By shiva_reshs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-14-2018, 07:06 AM
  4. [SOLVED] Formula needed to depend formula's range on specified cells
    By VincentNL in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-01-2014, 06:15 AM
  5. [SOLVED] Formula that contains currency not returning the results as currency
    By Triscia in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 07-17-2014, 03:02 PM
  6. formula to classify the quantity depend of its period
    By eing in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-15-2014, 05:17 AM
  7. Replies: 5
    Last Post: 06-30-2011, 07:48 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