+ Reply to Thread
Results 1 to 3 of 3

Vlookup checking multiple columns

  1. #1
    Registered User
    Join Date
    05-06-2010
    Location
    Des Moines
    MS-Off Ver
    Excel 2007
    Posts
    37

    Vlookup checking multiple columns

    I'm trying to return the results of two col_index_num on a vlookup and then use the result of those columns for a T or F statement.

    I am using my tab calculation sheet for my lookup value

    I then am going to the tab Deferred Segment for my Table_array

    Here is where I'm not sure if I should be using a different formula for my data. What I want to do is verify whether there is a Yes in column C or D and if there is a yes return a value of T if not then false or return a value of 1 or 0 I'm not picky either way there.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Vlookup checking multiple columns

    something like this?

    =Sumproduct(--(Range1=Criteria),(Range2="Y")+(Range3="Y"))>0

    this checks Range1 for your lookup value, then it checks if range2 or range3 has a "Ye" in it on the same row(s).

    If yes, it returns TRUE.

    if you want 1 or 0, then: =--(SUMPRODUCT(--(I2:I8=B1),(J2:J8="Y")+(K2:K8="Y"))>0)

    or if you want T or F: =LEFT(SUMPRODUCT(--(I2:I8=B1),(J2:J8="Y")+(K2:K8="Y"))>0)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-06-2010
    Location
    Des Moines
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Vlookup checking multiple columns

    Thanks very much. This worked.

+ 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