Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Mr Excel & excelisfun Trick 36: VLOOKUP w Approximate Match & Unsorted Table

Loading...

Sign in or sign up now!
4,825
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 13, 2009

See Mr Excel and excelisfun do a VLOOKUP for an approximate match when the table is not sorted. See Mr Excel create the exact match for his lookup with the MIN, IF, MATCH and INDEX functions. See excelisfun use the SMALL, ROWS and LOOKUP functions to sort the table inside the formula and to an approximate match.
PodCast 1144 Learn Mr Excel
Amazing Excel Trick.

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (ExcelIsFun)

  • I have a question. How does this work with random numbers? Lets say these random numbers generate, I do a sum of these. I then rank them. I cannot re-arrange the columns. I want to display the 5th highest number from the sum column (bearing in mind that its sum of random generations from =randtriangular(G$2,G$3,G$4) for example)

    Thank you for amazing tutorials!

  • I am not sure what you are trying to do. I also am not familiar with the randtriangular function. However, using the SMALL function sort trick should work. However, if you were using functions like RAND or RANDBETWEEN, they are volatile functions that change when things are re-calculates (like hitting Enter), so they may be problems in regard to that.

  • @ExcelIsFun I have a question.

    LOOKUP and VLOOKUP. Lets say I generate random numbers using =randtriangular, then I sum these numbers. I then rank them. I cannot sort the columns, but I know the SMALL function can be used. I want to display the 5th highest number (rank) from the sum column.

    I have tried and tried, with the result of #N /A, even when using the SMALL function, results are inconsistent and inaccurate.

    Hope this is clearer! Thanks a lot!

  • I am not sure. But no problem. THE best site to ask Excel questions is:

    mrexcel[dot]com/forum

  • The combination of small and lookup of small function takes into consideration lookup table with only 2 columns. What can we do in case there are 3 or 5 columns for instance?

  • Great question, By The Way!!

see all

All Comments (17)

Sign In or Sign Up now to post a comment!
  • Change the result_vector if it is just a single occurrence. If it involves copying, I would have to know how data is setup and which direction you are copying. But I think it would be a simple matter of putting the correct cell references in the result_vector SMALL function. Something like this if you had a 3rd column:

    =LOOKUP(E3,SMALL($A$1:$A$3,{1,­2,3}),SMALL(B$1:B$3,{1,2,3}))

    where second SMALL has just rows locked.

  • This is true. Even for me, when I forget how to do something I just lookup one of these videos!

    Did this answer your original question?

  • U do not realize the value of the videos until u are faced with an issue whose solution is demonstrated here so clearly. Awesome solution with lookup

  • Thanks!

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more