+ Reply to Thread
Results 1 to 3 of 3

Logic Formulas (IF,IFS etc)

  1. #1
    Registered User
    Join Date
    01-19-2015
    Location
    Dubai
    MS-Off Ver
    MS Office 2013
    Posts
    11

    Logic Formulas (IF,IFS etc)

    Hello,

    Col A Col B Col C
    Row 1 USD EUR AED
    Row 2 0.2724 1.2 1.00


    I have three difference currency exchange rates above. I want to create a formula in column F below, that looks up the currency ISO code (in this case EUR,AED or USD) in column D below and if the ISO currency code matches with either of ISO codes in cells A1,B1 or C1, it will multiply the currency exchange rate from above matrix with the correct currency pair. I.e. => IF(Cell D3=A1,(Cell E3*Cell A2), Cell D3=B1,(Cell E3*Cell B2), Cell D3 = Cell C1, (Cell E3*Cell C2). I tried IF formula and IFS, coupled with OR, but can't get it right. Can anyone help? Thanks in advance!

    Col D Col E Col F
    Row 3 EUR 100 X
    Row 4 EUR 100 X
    Row 5 AED 200 Y
    Row 6 USD 300 Z

    /Mackan7695
    Last edited by mackan7695; 03-24-2016 at 09:54 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Logic Formulas (IF,IFS etc)

    You can use an HLOOKUP instead. Your original little table is in A1:C2
    In F3 for example

    =HLOOKUP(D3, $A$1:$C$2, 2, FALSE) * E3

    If there's a chance the code might not be there, you can wrap an IFERROR around the HLOOKUP
    Questions?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Logic Formulas (IF,IFS etc)

    One way:
    Enter this in F3 and fill down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    A
    B
    C
    D
    E
    F
    1
    USD EUR AED
    2
    0.2724
    1.2
    1
    3
    EUR
    100
    120
    4
    EUR
    100
    120
    5
    AED
    200
    200
    6
    USD
    300
    81.72
    Last edited by newdoverman; 03-24-2016 at 11:18 AM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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] Nesting logic formulas
    By cjharwood in forum Excel General
    Replies: 3
    Last Post: 11-30-2015, 01:18 AM
  2. [SOLVED] USING LOGIC 1's AND O's WITH FORMULAS
    By heliskier89 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 04-30-2015, 01:02 PM
  3. Excel 2007 : Need help linking using logic formulas
    By luurkin in forum Excel General
    Replies: 3
    Last Post: 05-09-2012, 07:09 PM
  4. Logic formulas
    By isjones in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-02-2011, 11:40 AM
  5. Coin flipping - logic formulas
    By isjones in forum Excel General
    Replies: 0
    Last Post: 11-01-2011, 12:13 PM
  6. Help with inserting logic into formulas
    By ah432 in forum Excel General
    Replies: 1
    Last Post: 11-22-2010, 11:05 AM
  7. Several formulas in one cell + Logic fail
    By varmgang in forum Excel General
    Replies: 3
    Last Post: 05-03-2009, 07:11 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