+ Reply to Thread
Results 1 to 5 of 5

Trying to combine an if statement & a dual vlookup...its doing something but....

  1. #1
    Registered User
    Join Date
    10-25-2013
    Location
    North West England
    MS-Off Ver
    Excel 2010
    Posts
    7

    Angry Trying to combine an if statement & a dual vlookup...its doing something but....

    Hi,

    I am trying to combine an if statement, with a dual vlookup...

    What I am trying to get a result for is: If a cell in sheet 1 has a "yes" value, then lookup that name & type with a value on sheet 2 which is in sheet 3...

    I know that it is doing something correct as cells that have a "yes" in is coming up n/a but cells which are blank are coming up false.

    This is my formula any help is very much appreciated: (PS I am a novice, please be nice and try to explain as simple as possible)

    =IF(Games!B6="YES",VLOOKUP(Games!A6,'Appearance Fees'!$A$4:$P$100,MATCH('Amounts '!B5,'Appearance Fees'!$B$2:$P$100,0)+1,0))

    Thanks

  2. #2
    Registered User
    Join Date
    10-25-2013
    Location
    North West England
    MS-Off Ver
    Excel 2010
    Posts
    7

    Lightbulb Re: Trying to combine an if statement & a dual vlookup...its doing something but....

    forgot my value if false... so now the formula looks like this:

    =IF(Games!E17="YES",VLOOKUP(Games!D17,'Appearance Fees'!$A$4:$P$100,MATCH('Amounts '!E16,'Appearance Fees'!$B$2:$P$100,0)+1,0)," ")

    and I no longer get the 'false' just the n/a where I should have a figure returned from the lookup part of the formula

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Trying to combine an if statement & a dual vlookup...its doing something but....

    Ahh, almost posted about the FALSE value.

    Are you able to provide a sample of your work or can you create one that we can see the data?

    N/A is a result of the VLOOKUP erroring out.

  4. #4
    Registered User
    Join Date
    10-25-2013
    Location
    North West England
    MS-Off Ver
    Excel 2010
    Posts
    7

    Unhappy Re: Trying to combine an if statement & a dual vlookup...its doing something but....

    Hi, I am not able to provide what i'm working on or the actual data - but have tried to put something similar together with Dummy Data.

    There are 3 sheets, and on sheet 3 I need it to return the relevant values.

    It has to match the persons name & type (B,D,L)

    Its actually a lot more complicated, but highly confidential & no one I work with has barely any excel knowledge at all...
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-16-2013
    Location
    Blair, NE
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Trying to combine an if statement & a dual vlookup...its doing something but....

    In your sample workbook, if you put this formula in B3 and drag down/right it will return what you want. It uses a an index with 2 match formulas nested inside. Let me know if you have any questions.

    =IF(INDEX(Sheet2!$B$2:$D$9,MATCH(Sheet3!$A3,Sheet2!$A$2:$A$9,0),MATCH(Sheet3!B$2,Sheet2!$B$1:$D$1,0))="YES",INDEX(Sheet1!$B$2:$D$9,MATCH(Sheet3!$A3,Sheet1!$A$2:$A$9,0),MATCH(Sheet3!B$2,Sheet1!$B$1:$D$1,0)),"")

+ 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] Need help correcting a possible dual VLOOKUP formula
    By pearsonj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2013, 02:01 PM
  2. [SOLVED] Combine VLOOKUP and IF statement to reorganize the data. Can someone help me?
    By vademo0o in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-11-2013, 09:01 AM
  3. Help! Dual Vlookup function? Sumproduct with index array?
    By thaprofessor33 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-03-2012, 09:08 AM
  4. Dual Lookup/Vlookup/Match criteria
    By jj72uk in forum Excel General
    Replies: 6
    Last Post: 10-16-2009, 04:03 PM
  5. Combine a VLOOKUP and an IF statement?
    By jvegastn in forum Excel General
    Replies: 2
    Last Post: 04-28-2009, 11:21 AM

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