+ Reply to Thread
Results 1 to 6 of 6

VLookup Substitute

  1. #1
    Forum Contributor
    Join Date
    12-06-2005
    Posts
    118

    VLookup Substitute

    Is there another formula that works like vlookup but isn't concerned about the source data being in ascending order? I know of one that works when you can look up based on 2 conditions but can't seem to make it work when I only have 1 condition to meet.

    My 2 condition formula is a CSE and is: =index(array to lookup(match(1,array of first condition=condition)*(array of 2nd condition=2nd condition))

    Can I do something like the above if I only have one condition to meet?

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    If you add the 4th argument, FALSE, to your Vlookup formula, it will not matter if you list is in Ascending order...

    Have a look at Vlookup help in Excel help files.
    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
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    VLOOKUP does not have to have the data in ascending order if you use the parameter FALSE as the last condition.

    Ed

  4. #4
    Forum Contributor
    Join Date
    12-06-2005
    Posts
    118
    Well, that was easy! Thank you!

  5. #5
    Registered User
    Join Date
    03-27-2008
    Posts
    2

    I just had the same problem

    and this answered my question.

    Why would you ever use the TRUE argument then ?

  6. #6
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    199
    You may want to use TRUE in your argument if the data is already in order, or if you are looking for the next closest value within the array. So if the exact isn't found, you may be OK with the next closest variable.

    Range_lookup A logical value that specifies whether you want VLOOKUP to find an exact match or an approximate match:

    If TRUE or omitted, an exact or approximate match is returned. If an exact match is not found, the next largest value that is less than lookup_value is returned.

    The values in the first column of table_array must be placed in ascending sort order; otherwise, VLOOKUP may not give the correct value. You can put the values in ascending order by choosing the Sort command from the Data menu and selecting Ascending. For more information, see Default sort orders.

    If FALSE, VLOOKUP will only find an exact match. In this case, the values in the first column of table_array do not need to be sorted. If there are two or more values in the first column of table_array that match the lookup_value, the first value found is used. If an exact match is not found, the error value #N/A is returned.
    Hope that helps.

+ 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