+ Reply to Thread
Results 1 to 6 of 6

assigning condition on Vlookup

  1. #1
    Forum Contributor
    Join Date
    07-08-2009
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003
    Posts
    142

    assigning condition on Vlookup

    Hi all,

    can anyone help me ?
    where to use the condition 0 & where to use 1 ?

    =Vlookup(a2,array,column5,0)

    The above the syntax ( to my knowledge, I have given the correct one )

    Thanks
    Mani
    Last edited by Shadmani; 07-21-2009 at 08:09 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: assigning condition on Vlookup

    well the syntax is true/false not 1/0(but they work as well)
    =Vlookup(a2,array,column5,true) returns largest closet to or = to if range is sorted ascending
    =Vlookup(a2,array,column5,false) returns only if exact match
    from help file which i suggest you read!
    · If VLOOKUP can't find lookup_value, and range_lookup is TRUE, it uses the largest value that is less than or equal to lookup_value.
    · If lookup_value is smaller than the smallest value in the first column of table_array, VLOOKUP returns the #N/A error value.
    · If VLOOKUP can't find lookup_value, and range_lookup is FALSE, VLOOKUP returns the #N/A value.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: assigning condition on Vlookup

    Hi,

    Take a look here on VLOOKUP

    http://www.contextures.com/xlFunctions02.html
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  4. #4
    Forum Contributor
    Join Date
    07-08-2009
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003
    Posts
    142

    Re: assigning condition on Vlookup

    Hi Thanks for your response.

    I am not clear. I have enclosed a excel sheet. Sheet 2.

    I tried to Vlookup true as well as False from the master data, which is the sheet 1.

    It is confusing. can you please explain ? sorry guys I am new to Excel.

    Thanks
    Mani
    Attached Files Attached Files

  5. #5
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: assigning condition on Vlookup

    Hi,

    hope this is what you want? I've inserted a helper column (which you can hide if you want) only on you have a FredK on Sheet2 and FredF on Master sheet so this will pick the right Fred
    Attached Files Attached Files

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: assigning condition on Vlookup

    1. wasnt this resolved with the index match i gave you previously?
    http://www.excelforum.com/excel-new-...n-vlookup.html
    2. you need to make the range references absolute
    =VLOOKUP(A2,mASTER!A3:E23,5,0)
    should be
    =VLOOKUP(A2,mASTER!$A$3:$E$23,5,false)
    or else the range will change as you drag the formula down

+ 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