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

excel vlookup

ResolvedVersion 2003

Kingsley.k. has attended:
Excel Advanced course

Excel vlookup

I'd like to link selected contents of a table from one spreadsheet to another, but I would like the function to copy only the rows in which the value in first column equals 'X' .

Edited on Mon 7 Jul 2008, 10:38

RE: Excel vlookup

Hi Kingsley, Thank you for your post, after a bit of consideration I think that the following rambling explanation might be of help:

Question: I'd like to link selected contents of a table from one spreadsheet to another, but I would like the function to copy only the rows in which the value in first column equals 'X' .

If you've been using Excel for a while, you have invariably found someone who talks about using INDEX() and MATCH() instead of VLOOKUP. Give me a couple of minutes and I will try to explain them in simple English.

A 30 second review of VLOOKUP;

Say you have a table of employee records. The first column is an employee number, and the remaining columns are various pieces of data about the employee. Any time you have an employee number in the worksheet, you can use VLOOKUP to return a specific datum about the employee. The syntax is VLOOKUP(value,data range,col no.,FALSE). It says to Excel, "Go to the data range. Find a row that has (value) in the first column of the data range. Return the (col no.) the value from that row.

When the key field is to the right of the data you want to retrieve, VLOOKUP will not work.

One common solution is to temporarily insert a new column A, copy the column of names to the new column A, populate with VLOOKUP, Paste Special Values, then delete the temporary column A.

I am going to suggest you take a challenge to use a different method;

So, let me break it down into two pieces.

First, there is the INDEX() function. This is a horribly named function. When someone says "index", it does not conjure up anything in my mind that is similar to what this function does. Index requires three arguments. =INDEX(data range, row number, column number). In English; Excel goes to the data range and returns you the value in the intersection of the (row number) the row and the (column number) the column. Hey, that

Excel tip:

Switch on smart tags – Excel 2007

In order to use smart tags, make sure they are turned on, to do this:
1. Click on ‘Microsoft Office‘ button and then click on ‘Excel Options‘.
2. Click on ‘Proofing‘ category and then click on ‘Auto Correct Options‘.
3. In the ‘Auto Correct‘ dialogue box appears, click the ‘Smart Tags‘ Tab.
4. Tick the boxes, next to the Smart Tags you wish to use in Excel

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.13 secs.