Hi, I'm Glen Feechan. Welcome to my blog - Not Just Numbers.

Most of my content is aimed loosely at those of a financial bent (I am a Chartered Accountant), with a strong bias towards Microsoft Excel tips.

You can also sign up (below left) and get a free report and regular updates of new posts to the blog. Also have a look at the freebies section for free training videos, etc.

I hope you find the content useful and that every now and again it makes you smile.

Glen Feechan

Email me         Connect on LinkedIn      Follow me on Twitter      Visit Not Just Numbers on Facebook
Glen Feechan

Learn Pivot Tables in Excel 2003 and 2007 - with this FREE video

Friday, April 3, 2009

Excel Tip: Using VLOOKUP

Second only to pivot tables, the VLOOKUP formula is the one of the features of Excel that I am most often asked about. It is also one of the most useful.

Simply put, this formula allows you to look up an item from a list.

Its format is as follows:

=VLOOKUP(lookup value,range to lookup,column to return,TRUE or FALSE)

lookup value: This is the value you wish to search the first column of your table for (this can be the actual value, but it can be very powerful to refer to a cell containing the value).

range to lookup: This is the range (either named, or referred to directly) that contains the lookup table. It is useful to refer to whole columns as this allows your list to grow.

column to return: This is given as a number, where the first column (the one being searched) is 1.

TRUE or FALSE: This is a rather odd one. If you enter 'TRUE' or omit this argument, Excel will go to the closest value if the actual value being looked up is not there. This requires the first column to be sorted in ascending order. I can think of very few applications for this other than some form of conversion table, but as conversion tables are normally to help approximate a formula, there is not a lot of call for them in Excel where you can easily calculate the actual formula itself. For most financial applications you will need to enter 'FALSE' here as this will return an #NA error if it cannot find the lookup value.

The VLOOKUP formula is very useful for adding additional data to raw imported data in Excel. For one application, see my article on automating management accounts.

4 comments:

Anonymous said...

The TRUE argument is very useful when you want to select a value in ranges - so if you have financial periods that are 4 weeks long rather than months, you can have a table with the first day of the month and the period number, and use VLOOKUP to fetermine the period.

Glen Feechan said...

In response to Anonymous:

That's a great use for VLOOKUP with the TRUE argument. Thanks for the comment.

CCNA Training said...

My work demands the use of Vlookup function and now I can use it easily. Thanks for simplified information.

Glen Feechan said...

CCNA Training: Thanks for the positive comments. Pleased you found it useful.

There is a free video on VLOOKUP in a more recent post.

Post a Comment

Try these other services from Feechan Consulting Group: