excel vlookup

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 vlookup

Excel vlookup

resolvedResolved · High Priority · Version 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

 

Training courses

 

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

New Normal Worksheet

Do you want all your worksheets to confirm to a certain look? Then change the Defaults!!!
1. Press Shift+F11 to create a new worksheet
2. Press Ctrl+A to select (higlight) all cells, Press Ctrl+1, make any formatting changes then click OK.
3. Press F12 (Function 12 key) click in the Save As Type, drop down, then select Template (*.xlt)
4. Click in the Save in drop-down, then find the folder; c:_program files_microsoft office_office_start. (For the underscores shown use backslash)
Name your templete sheet.xlt, then press Enter.
Sheet.xlt is used when you insert a new worksheet (Shift+F11)

Note: These changes are permanent changes on your PC.

View all Excel hints and tips


Server loaded in 0.09 secs.