98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel Training and help » Excel vlookup
Excel vlookup
Resolved · 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' .
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 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
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:New Normal WorksheetDo you want all your worksheets to confirm to a certain look? Then change the Defaults!!! |