excel computer training london - vlookup function

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel Training and help » excel computer training london - VLOOKUP function

excel computer training london - VLOOKUP function

resolvedResolved · Low Priority · Version Standard

Katie has attended:
Excel Advanced course

VLOOKUP function

I'm having some trouble with VLOOKUP. It doesn't seem to work unless the data table it is reading from is in alphabetical/numerical order.... but I'm sure this can't be right!

RE: VLOOKUP function

Hi Katie

Thanks for your question.

I think the answer lies in what you enter in for the 'range lookup' part of this function. This is the last part of the function where you enter in true or false.

If you enter in true for this part of the function, then the vlookup function will find the nearest possible match and display this. If you use true then the result that is displayed does depend on how the information is sorted - you do need to put it in some kind of order (alpahabetical or numerical) for it to work.

If you enter false for this part of the function, then the vlookup function needs to find an exact match. If you enter false then the result is not dependant on the information being sorted in a particular order.

I hope this helps you.

Amanda


 

Excel tip:

Use RANDBETWEEN to generate random numbers

There may be occassions where you need to generate random numbers in your spreadsheet. Use the RANDBETWEEN function to generate random numbers between two values that you specify.

The function looks like this:

=randbetween(LOW,HIGH)

where LOW is the lowest number you want generated; and HIGH is the highest number you want generated.

This formula will work with both positive and negative LOWs and HIGHs. Also it will only generate integer numbers unless forced to do otherwise by the following:

=randbetween(LOW*10^PRECISION,
HIGH*10^PRECISION)/(10^PRECISION).

where PRECISION represents the levels of decimal precision needed (i.e. if you need numbers with one decimal place, PRECISION would be 1; 2 for two decimal places and so on).

One final note, if the RANDBETWEEN formula does not work in your spreadsheet or returns a "#NAME" error, you need to install the Analysis Toolpak Add-In. You will need to press F2 then Enter following the installation.

View all Excel hints and tips


Server loaded in 0.08 secs.