+ Reply to Thread
Results 1 to 5 of 5

Thread: IF Function

  1. #1
    Registered User
    Join Date
    08-04-2009
    Location
    Oxford, England
    MS-Off Ver
    Excel 2010
    Posts
    26

    IF Function

    Hi All

    I need to use a function (possibly IF) to look at 2 cells and return a value defined in another table

    I've attached my file to make the explanation make more sense

    I need the G cells to show IF phase = P1 and the cost is S then display £50 in G2 or if the cost is M then G2 needs to display £15

    If any further explanation is required then please let me know

    Thanks again everyone

    Dan
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2007/2010/2011
    Posts
    310

    Re: IF Function

    what do you mean by if the cost is m?

    Do you want it to look at the cost in M if the first condition is false?
    Last edited by GeneralDisarray; 01-09-2012 at 12:28 PM.
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    08-04-2009
    Location
    Oxford, England
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: IF Function

    Sorry i missed out a key point there

    Basically I want to be able to input P1 or P2 in cell A5 then input either S, H, M, L into A6 and then return the corresponding price under those referenced fields for example P1 and M = £15 whereas
    P2 and S would be £57

    Hope this makes more sense

  4. #4
    Registered User
    Join Date
    08-30-2010
    Location
    Here :)
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: IF Function

    Try this combination of INDEX and MATCH formulas where B1:F3 is your table source and B6 and C6 are lookup entry cells.
    =INDEX(B1:F3,MATCH(B6,B1:B3,0),MATCH(C6,B1:F1,0))
    I attached the example as well.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-04-2009
    Location
    Oxford, England
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: IF Function

    Thank you so much temple1

    That has solved my problem perfectly

    Dan

+ 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.2.0