+ Reply to Thread
Results 1 to 9 of 9

If statement with vlookup

  1. #1
    Forum Contributor
    Join Date
    03-09-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    235

    If statement with vlookup

    Hi

    I have attached the sample template and i have a hard time on thinking if there is a way of doing a vlookup and at the same this with IF nested statement to find values.

    from the summary tab i just need to enter ID number based on the data tab. and the details will appear with their names and campaigns.

    Hope got your response on this one.

    Thanks alot.
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: If statement with vlookup

    Try in D9 and copy down this ARRAY formula.

    =IFERROR(INDEX(data!$D$6:$D$100,SMALL(IF(data!$C$6:$C$100=$D$6,ROW(data!$D$6:$D$100)-5),ROW(data!D1))),"")

    -- Array(CSE) { }, formulae are confirmed with Control+Shift+Enter.
    Not just Enter.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    03-09-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    235

    Re: If statement with vlookup

    thanks Fotis 1991, it works actually but i have Not in list"values from my data and i don't want to see that NOT in LIST value.

    Can you please help me on this.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: If statement with vlookup

    Quote Originally Posted by albert28 View Post
    thanks Fotis 1991, it works actually but i have Not in list"values from my data and i don't want to see that NOT in LIST value.

    Can you please help me on this.
    Can you pls explain this a little more? I am not able to understand what you mean.

  5. #5
    Forum Contributor
    Join Date
    03-09-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    235

    Re: If statement with vlookup

    it is now okay.

    but this formula =IFERROR(INDEX(data!$D$6:$D$100,SMALL(IF(data!$C$6:$C$100=$D$6,ROW(data!$D$6:$D$100)-5),ROW(data!D1))),"")

    -- Array(CSE) { }, formulae are confirmed with Control+Shift+Enter.

    Won't worked in Excel 2003 version.

    I don't know what to do?

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: If statement with vlookup

    IFERROR does not works in Excel versions<2007. You profile says that you use Excel2007 and you uploaded a xlsx excel document.

    In any case for ALL versions try this..

    =IF(ISERROR(INDEX(data!$D$6:$D$100,SMALL(IF(data!$C$6:$C$100=$D$6,ROW(data!$D$6:$D$100)-5),ROW(data!D1)))),"",INDEX(data!$D$6:$D$100,SMALL(IF(data!$C$6:$C$100=$D$6,ROW(data!$D$6:$D$100)-5),ROW(data!D1))))

  7. #7
    Forum Contributor
    Join Date
    03-09-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    235

    Re: If statement with vlookup

    thanks its working now with 2003 version on my officemate desktop

    thank you so much

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: If statement with vlookup

    You are welcome and thanks for the feed back.

    As that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thank you.

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: If statement with vlookup

    Answering to your PM, i can not understand why when you reopen your pc formula does not work.

    Something wrong with copy paste? I attach a sample worksheet.

    Also N0. I saw the thread that you started in VBA section but I don't believe that you need VBA for this. If you want to do using VBA it's up to you.

    http://www.excelforum.com/excel-gene...vba-codes.html
    Attached Files Attached Files

+ 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. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  2. Using a VLOOKUP and IF statement inside an IF statement
    By Isis3 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-08-2011, 07:04 PM
  3. [SOLVED] IF Statement with VLOOKUP
    By berger01 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-27-2011, 10:21 AM
  4. IF Statement with VLOOKUP
    By Traymond in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-26-2010, 02:13 PM
  5. Vlookup with an IF Statement
    By aftabn10 in forum Excel General
    Replies: 1
    Last Post: 07-26-2010, 06:05 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