+ Reply to Thread
Results 1 to 7 of 7

Help wth Vlookup problem?

  1. #1
    Registered User
    Join Date
    02-25-2011
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    44

    Help wth Vlookup problem?

    I have attached spreadsheet book ifi helps and have tried several attemts but no success

    The data comes with a week number, and type. On the front page, I have 2 cells made for week number and type, I need it so that when I input the week number and type in the yellow cells, ALL the references that match the 2 criteria will be listed in the ref column.



    So if I say week number 1, Type A, I need all the references that are week 1 and type A to be listed. Within same week number, you can have multiple reference for the same type (so you can have like 3 type A within same week).

    Appreciate an help
    Thank you

    Steve
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Help wth Vlookup problem?

    Hello Steve
    There a a few ways to do this. If as you say there might be duplicate values for Week and Type, one way would be to use Array formulas (although you could use non-array formulas, or helper columns). But perhaps the easiest way would be to use a Pivot table. See attached.

    Hope this helps.
    DBY
    Attached Files Attached Files

  3. #3
    Spammer
    Join Date
    02-04-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    190

    Re: Help wth Vlookup problem?

    With unique week and type formula for the validation
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-25-2011
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: Help wth Vlookup problem?

    Thank you so much for help

    Steve

  5. #5
    Registered User
    Join Date
    02-25-2011
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: Help wth Vlookup problem?

    Excel Forum.xlsm

    Marked as solved on forum but I still seem to have problem. On template sheet I typed week 26 and selected PSB but it came up Fennel underneath, not sure if error from me and was wondering if easy to amend formula to fix problem?

    Thanks again and appreciate help

    Steve

    File attached called EXCEL FORUN

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Help wth Vlookup problem?

    Shouldn't C22 be

    =IFERROR(INDEX(Database!D$4:D$2000,SMALL(IF((Database!$A$4:$A$2000=Template!$C$16)*(Database!$E$4:$E$2000=Template!$C$18),ROW(Database!$A$1:$A$1996)),ROWS($C$22:C22))),"")
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  7. #7
    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: Help wth Vlookup problem?

    Modify the ARRAY formula in C22 like this.

    =IFERROR(INDEX(Database!D$4:D$2000,SMALL(IF((Database!$A$4:$A$2000=Template!$C$16)*(Database!$E$4:$E$2000=Template!$C$18),ROW(Database!$D$4:$D$2000)-3),ROW(Database!D1))),"")

    Copy down.
    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.

+ 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. Vlookup problem in a loop with cell property and variable cell problem (long title sry)
    By ExcelsiorLux in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2013, 10:38 AM
  2. Replies: 6
    Last Post: 05-28-2013, 05:08 PM
  3. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  4. vlookup problem and count problem
    By thy00123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-05-2009, 04:31 AM
  5. VLOOKUP Problem
    By robertguy in forum Excel General
    Replies: 4
    Last Post: 06-04-2009, 09:15 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