+ Reply to Thread
Results 1 to 5 of 5

How can I calculate based on two variables

Hybrid View

  1. #1
    Registered User
    Join Date
    08-18-2017
    Location
    Mexico
    MS-Off Ver
    Office 2016
    Posts
    41

    How can I calculate based on two variables

    Hi,

    I would like to know how I can calculate a rate of local currency into USD based in the time period and country in 1 formula.

    It is hard to explain what I want to do but looking at the attached file might be helpful, column F contains the final outcome I want in the formula.

    Thank you in advance excel experts.

    -D2S
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: How can I calculate based on two variables

    Welcome to the forum, D2S. try:
    =D2/SUMIFS(Table1[Currency],Table1[Country],A2,Table1[Date],B2)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    08-18-2017
    Location
    Mexico
    MS-Off Ver
    Office 2016
    Posts
    41

    Re: How can I calculate based on two variables

    Hi Flame, thanks for your workaround, however, need to get the outcome of Column F into Column E.

    Thank you for taking time, I really appreciate.

    Regards,
    D2s

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,707

    Re: How can I calculate based on two variables

    Hi D2S,

    Try this in column E
    Formula: copy to clipboard
    =SUMIFS(K:K,I:I,A2,J:J,B2)
    and this in column F
    Formula: copy to clipboard
    =D2/K3


    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    1
    Country Year Units Local Currency USD Out Come that I need
    Exchange Rate
    2
    Argentina
    Jun-16
    20
    $53,000.00
    18.7
    $2,834.22
    $2,834.22
    Country Date Currency
    3
    Argentina
    Jul-16
    25
    $43,000.00
    19.1
    $2,251.31
    $2,251.31
    Argentina
    Jun-16
    $18.70
    4
    Peru
    Jun-16
    10
    $20,000.00
    15.5
    $0.47
    $1,290.32
    Argentina
    Jul-16
    $19.10
    5
    Ecuador
    Aug-16
    15
    $15,000.00
    17.5
    $857.14
    $857.14
    Argentina
    Aug-16
    $17.50
    6
    Peru
    Jun-16
    $15.50
    7
    Peru
    Jul-16
    $15.70
    8
    Peru
    Aug-16
    $15.90
    9
    Ecuador
    Jun-16
    $17.10
    10
    Ecuador
    Jul-16
    $17.20
    11
    Ecuador
    Aug-16
    $17.50
    Dave

  5. #5
    Registered User
    Join Date
    08-18-2017
    Location
    Mexico
    MS-Off Ver
    Office 2016
    Posts
    41

    Re: How can I calculate based on two variables

    Thanks Benis this was really quick..

    Regards,
    D2S

+ 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. [SOLVED] Calculate Banding based on 2 variables
    By Burt_100 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-02-2016, 06:32 PM
  2. how to calculate times based on two variables
    By Przymorze in forum Excel General
    Replies: 5
    Last Post: 05-10-2014, 06:48 PM
  3. To calculate the value for two different variables changes
    By balalikowshik in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-04-2013, 04:29 PM
  4. calculate cycle time based on other variables
    By brywhi11 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-05-2013, 10:34 AM
  5. Formula to calculate single cell based on many variables
    By malawimick in forum Excel General
    Replies: 7
    Last Post: 12-15-2011, 02:13 AM
  6. Replies: 2
    Last Post: 05-14-2008, 04:57 PM
  7. Selecting patient data based on multiple variables to calculate mean and SD
    By Andrew! in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2008, 02:14 PM

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