+ Reply to Thread
Results 1 to 3 of 3

Is there a way to use vlookup to produce an instance result from two columns of info

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Is there a way to use vlookup to produce an instance result from two columns of info

    Hi I am trying to get an instance result from using vlookup or something similar that draws the information from a separate sheet.

    Please see the attached file for details.
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Is there a way to use vlookup to produce an instance result from two columns of info

    hi john dalton. are you still using Excel 2003 like your profile says? your file is in xlsx. it's important for us to know, in order to give shorter & more efficient formulas. i have no idea what you need in column C of "outcome" sheet. i'm guessing the date if the client did not attend for 2nd time. for Excel 2007 & above, you can use:
    Formula: copy to clipboard
    =IFERROR(INDEX(data!$C$3:$C$15,SMALL(IF(data!$A$3:$A$15=$A5,IF(data!$B$3:$B$15="Did not attend",ROW(data!$C$3:$C$15)-ROW(data!$C$3)+1)),COLUMNS($B5:B5))),"")


    if it only appears once, you may consider:
    =IFERROR(INDEX(data!$C$3:$C$15,MATCH($A5&"Did not attend",data!$A$3:$A$15&data!$B$3:$B$15,0)),"")

    or:
    =SUMIFS(data!$C$3:$C$15,data!$A$3:$A$15,$A5,data!$B$3:$B$15,"Did not attend")

    the 1st 2 formulas are array formulas...confirmed by pressing CTRL-SHIFT-ENTER to activate the array. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL-SHIFT-ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    you can hide the zeros for the 3rd formula by selecting the cells, right-click -> Format cells -> Custom:
    d/m/yyyy;;
    just add two semi-colons to whatever format you have

    in Excel 2003 & below:
    =SUMPRODUCT(data!$C$3:$C$15,(data!$A$3:$A$15=$A5)*(data!$B$3:$B$15="Did not attend"))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Is there a way to use vlookup to produce an instance result from two columns of info

    Thank you works a treat.

+ 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.6.0 RC 1