+ Reply to Thread
Results 1 to 10 of 10

Want to multiply cells if value is "USD"

  1. #1
    Registered User
    Join Date
    01-28-2010
    Location
    Ontario
    MS-Off Ver
    Excel 2016
    Posts
    43

    Want to multiply cells if value is "USD"

    I am pretty green using excel. I have a price list made with 7 colums. One of the columns specifies wheather the part is canadian CDN or United States US. The next column is our cost in US or CDN dollars. I have also created a chart that has the current exchange rate posted. How do I multiply our cost by the exchange rate if the value in the one column is US.

    Thanks
    Scott

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Want to multiply cells if value is "USD"

    =X1*IF(Y1="US",$Z$1,1)

    where X1 is the value, Y1 is the currency and Z1 is the exchange rate..

    So if Y1 has US, then it multiplies the value that is in X1 by the exchange rate in Z1...

    Adjust cell references as necessary.. Note if you copy formula down it will always refer to Z1 for the exchange rate.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-28-2010
    Location
    Ontario
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Want to multiply cells if value is "USD"

    the cell where the formula was added now reads #Value!

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Want to multiply cells if value is "USD"

    can you post the formula you actually used if it's different from NBVC's suggestion?

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Want to multiply cells if value is "USD"

    is X1 a number?

  6. #6
    Registered User
    Join Date
    01-28-2010
    Location
    Ontario
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Want to multiply cells if value is "USD"

    =F1*IF(D2="us",$I$2,1)
    I don't understand what the last 1 is refering to.

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Want to multiply cells if value is "USD"

    The IF statement returns either the exchange rate in $I$2 or 1 and then that number is multiplied by F1, so if currency is US you get F1 multiplied by the exchange rate, if it's not you get F1 multiplied by 1 (which, obviously, is the same as just F1, you could write it like this too

    =IF(D2="us",$I$2*F1,F1)

    perhaps a little more transparent

    either way if you get #VALUE! error that probably means that either F1 or $I$2 isn't a number

    test that by using these formulas

    =ISNUMBER(F1+0)

    =ISNUMBER($I$2+0)

    they should both be true

  8. #8
    Registered User
    Join Date
    01-28-2010
    Location
    Ontario
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Want to multiply cells if value is "USD"

    I got it to work. Yes I had an incorrect value for one of the cells.
    where could I go to find a break down on the symbols that are used for different comands.

  9. #9
    Registered User
    Join Date
    01-28-2010
    Location
    Ontario
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Want to multiply cells if value is "USD"

    next question with a similar function. I use 6 different magins based on different levels of purchase price. so with the =E3*IF(D3="US",$I$2,1) e3 being the value I want to mark up, how do I write this.
    This program is amazing and I beleive the possibilities are endless.

  10. #10
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Want to multiply cells if value is "USD"

    give us your 6 different margin values and the corresponding purchase price thresholds, then we can show you how to put that into a LOOKUP and combine with your formula, or how to set up a table where you can lookup the value you want to mark up based on the purchase price.

+ 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