Consulting

Results 1 to 5 of 5

Thread: Solved: Index, Vlookup Function??

  1. #1
    VBAX Contributor
    Joined
    Nov 2006
    Posts
    107
    Location

    Solved: Index, Vlookup Function??

    I have a table of boolean values as denoted in the attached file. I would like to output a partnumber based on the three different boolean outputs( FIRE, HWY ACCESS and Key Operated). Is there a way i can do this?

  2. #2
    VBAX Mentor CBrine's Avatar
    Joined
    Jun 2004
    Location
    Toronto, Canada
    Posts
    387
    Location
    I have attached your solution.

    HTH
    Cal
    PS-I've hidden column G, which is the index for the multiple criteria vlookup.
    The most difficult errors to resolve are the one's you know you didn't make.


  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    =INDEX($G$4:$G$11,MATCH(1,($D$4:$D$11=$B$4)*($E$4:$E$11=$B$5)*($F$4:$F$11=$ B$6),0))

    which is an array formula, it should be committed with Ctrl-Shift-Enter, not just Enter.

  4. #4
    VBAX Expert Shazam's Avatar
    Joined
    Sep 2005
    Posts
    530
    Location
    See if this helps.

    non-array approach

    =INDEX($G$4:$G$11,MATCH(1,INDEX(($D$4:$D$11=$B$4)*($E$4:$E$11=$B$5)*($F$4:$ F$11=B6),0,1),0))


    Hit enter.
    SHAZAM!

  5. #5
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by Shazam
    See if this helps.

    non-array approach

    =INDEX($G$4:$G$11,MATCH(1,INDEX(($D$4:$D$11=$B$4)*($E$4:$E$11=$B$5)*($F$4:$ F$11=B6),0,1),0))


    Hit enter.
    So obvious, but nice! I like it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •