+ Reply to Thread
Results 1 to 5 of 5

How to calculate "IF"

Hybrid View

  1. #1
    Registered User
    Join Date
    12-18-2012
    Location
    Thailand
    MS-Off Ver
    Excel 365 for Mac & Windows
    Posts
    35

    How to calculate "IF"

    I have a problem trying to make a calculation based on the whether a cell contains a certain value. The easiest way to explain it would be by showing my problem:

    A B C D E
    1 QTY Currency Unit Total Total USD
    2 2 SGD 2,500.00 5,000.00
    3 2 USD 1,000.00 2,000.00 2,000.00
    4 1 SGD = 0.790936

    So, my problem is IF I want cell E2 to check to see whether cell B2 contains the value SGD, then to multiply cell D2 by the exchange rate shown in cell B4. IF it contains the value USD though, to equal the value of D2.

    How do I do this?

    Any help much appreciated as I am beginning to look like Yul Brynner!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: How to calculate "IF"

    Put this in E2:

    =IF(B2="SGD",B$4,1)*D2

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    12-18-2012
    Location
    Thailand
    MS-Off Ver
    Excel 365 for Mac & Windows
    Posts
    35

    Re: How to calculate "IF"

    What a beauty!

    Thank you very much Pete_UK!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: How to calculate "IF"

    Thanks for feeding back.

    You can mark the thread as Solved by clicking on the Thread Tools button above your first post.

    Pete

  5. #5
    Registered User
    Join Date
    05-25-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How to calculate "IF"

    Good one, hope to refer to for myself

+ 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