MS Excel 2003 Lookup on another Workbook

By mbonanno090 ·
Hello Everyone. I have a complicated lookup that I need to do. I have two separate excel workbooks. For simplicity purposes we can use workbook A and B. there is a blank column in Workbook A that has to be filled with data from Workbook B. Here is the scenario that must occur, please let me know if this is possible. I need the blank column in A look up a value in a cell from A. Take the value from A and match it to the same value in a specific column in B. Once this is matched in B, it must grab a value from that Row, but a difference column, and fill the blank Cell in A.

Here is the situation in normal terms. I work for a health care organization, and we are getting a report sent to us with a CPT (Procedure) code in it. We need this CPT code to have a Technical Charge associated with it. WE want to take the CPT code and do a lookup in the Charge master, and fill the blank column with the Hospital Charge Code.

ANy help would be greatly appreciated. I have had NO experience with lookups like this, so you will be bailing me out with help!!!

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

It is a simple VLOOKUP........

by ThumbsUp2 In reply to MS Excel 2003 Lookup on a ...

In the blank column in workbook A, put the VLOOKUP formula, tell it what cell in workbook A to use as the lookup value, then point it to workbook B to find the value. The only thing you have to look out for is keeping workbook B sorted on the column containing the value you're looking up.

Column A Row 1 in workbook A would be something like this, then copied down, where column C is the value you're using to look up from within cells A1:C52 of workbook B, then fill the value in column 3 from that row back into cell A1 of workbook A:



Lookup_value The value to search in the first column of the table array (array: Used to build single formulas that produce multiple results or that operate on a group of arguments that are arranged in rows and columns. An array range shares a common formula; an array constant is a group of constants used as an argument.). Lookup_value can be a value or a reference. If lookup_value is smaller than the smallest value in the first column of table_array, VLOOKUP returns the #N/A error value.

Table_array Two or more columns of data. Use a reference to a range or a range name. The values in the first column of table_array are the values searched by lookup_value. These values can be text, numbers, or logical values. Uppercase and lowercase text are equivalent.

Col_index_num The column number in table_array from which the matching value must be returned. A col_index_num of 1 returns the value in the first column in table_array; a col_index_num of 2 returns the value in the second column in table_array, and so on. If col_index_num is:

Less than 1, VLOOKUP returns the #VALUE! error value.
Greater than the number of columns in table_array, VLOOKUP returns the #REF! error value.
Range_lookup A logical value that specifies whether you want VLOOKUP to find an exact match or an approximate match:

If TRUE or omitted, an exact or approximate match is returned. If an exact match is not found, the next largest value that is less than lookup_value is returned.
The values in the first column of table_array must be placed in ascending sort order; otherwise, VLOOKUP may not give the correct value. You can put the values in ascending order by choosing the Sort command from the Data menu and selecting Ascending. For more information, see Default sort orders.

If FALSE, VLOOKUP will only find an exact match. In this case, the values in the first column of table_array do not need to be sorted. If there are two or more values in the first column of table_array that match the lookup_value, the first value found is used. If an exact match is not found, the error value #N/A is returned.

Related Discussions

Related Forums