+ Reply to Thread
Results 1 to 10 of 10

Currency Calculations

Hybrid View

  1. #1
    Forum Contributor Bob@Sun's Avatar
    Join Date
    09-03-2009
    Location
    Montuak, Usa
    MS-Off Ver
    Excel 2007
    Posts
    438

    Currency Calculations

    Hello folks,

    I need your help for the following:

    My worksheet contains large amount of data and I need to sum up the values of all rows that meet two requirements: First, value in column A must be, for example, text ABC or ABC1 or ABC2, second Value in column D must be BCD or BCD2 or BCD3.
    If the row meets those two criteria then I need to add the value from Column B in the calculation.

    My problem here is that I need the total amount of the summed rows to be in EUR. Column C shows the currency.

    Can you please suggest me how this calculation can be done? Should I add additional column where all currencies are converted to EUR before summing it?

    Also, It will be great if the macro connects to the internet to check for the exchange rate before the currency conversions.

    Appreciate your help!
    Last edited by Bob@Sun; 03-08-2010 at 12:23 PM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Currency Calculations

    Bob,

    I don't know how to write a macro to connect to the internet to download the current rate, but I'm sure a search will generate some hits.

    Other than that here is the formula...

    =SUMPRODUCT(--(SEARCH("ABC",A1:A3)),--(SEARCH("BCD",D1:D3)),B1:B3)*0.734

    Maybe here...http://www.excelforum.com/excel-gene...e-linkage.html
    Last edited by jeffreybrown; 03-07-2010 at 03:36 PM.

  3. #3
    Forum Contributor Bob@Sun's Avatar
    Join Date
    09-03-2009
    Location
    Montuak, Usa
    MS-Off Ver
    Excel 2007
    Posts
    438

    Re: Currency Calculations

    With this formula I am getting #Value.

    I am attaching a sample file. Can you please appyl the formula on the sample sheets?

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Currency Calculations

    Sorry Bob,

    Try this instead...

    =SUMPRODUCT(--(ISNUMBER(SEARCH("ABC",A2:A7))),--(ISNUMBER(SEARCH("BCD",D2:D7))),B2:B7)*0.734

  5. #5
    Forum Contributor Bob@Sun's Avatar
    Join Date
    09-03-2009
    Location
    Montuak, Usa
    MS-Off Ver
    Excel 2007
    Posts
    438

    Re: Currency Calculations

    Yes now it is ok. Thanks!

  6. #6
    Forum Contributor Bob@Sun's Avatar
    Join Date
    09-03-2009
    Location
    Montuak, Usa
    MS-Off Ver
    Excel 2007
    Posts
    438

    Re: Currency Calculations

    Hi again,

    Actually when I tried to implement the formula into my file I figured out that this won’t work. This function is searching for some value and when found it it shows me just a single value. It is not summing up the amounts.

    So I need further help. Let say that I have values in Column A and Currencies in column B.
    So If I have in Column D all the exchange rates, how can I make the reference so if in column B I have GBP to multiple the numbers in column A by whatever the exchange rate is in Column D for that currency?

    Any ideas would be appreciated

  7. #7
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Currency Calculations

    Hi,

    You could try
    =SUMPRODUCT(--(ISNUMBER(SEARCH(A2,$A$2:$A$7))),--(ISNUMBER(SEARCH(D2,$D$2:$D$7))),$B$2:$B$7)
    HTH

  8. #8
    Forum Contributor Bob@Sun's Avatar
    Join Date
    09-03-2009
    Location
    Montuak, Usa
    MS-Off Ver
    Excel 2007
    Posts
    438

    Re: Currency Calculations

    Yes, this sums up the amounts.

    Now I need a formula to multiple the value based on the currency. I tried to do something like:

    =(IF(K6="GBP",J6*F1,IF(K6="AUD",J6*F2,J6)),IF(K6="USD",J6*F3,J6))

    but is giving me an error saying that I am using to many arguments.


    p.s.: I am not sure if I should keep this post running here as it is more up to formulas now and not macros. Moderator will say
    Last edited by Bob@Sun; 03-08-2010 at 11:52 AM.

  9. #9
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Currency Calculations

    Hi,

    You can try ... following :

    =IF(K6="GBP",J6*F1,IF(K6="AUD",J6*F2,IF(K6="USD",J6*F3,J6)))
    HTH

  10. #10
    Forum Contributor Bob@Sun's Avatar
    Join Date
    09-03-2009
    Location
    Montuak, Usa
    MS-Off Ver
    Excel 2007
    Posts
    438

    Re: Currency Calculations

    Many thanks! it is doing the job!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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