I need to know which function to use.

G

Guest

I need to take two values, cross-reference them on another table, find where
they match, and use that value in another box on my spreadsheet.

I need D8 to be compared to B1:AO1 on sheet BWP, and (F8-E8) to be compared
to A2:A45 on sheet BWP. From those, I need them to cross-reference and spit
out the corresponding value, such as B10 or E35. I don't know how to do this,
so any help would be appreciated.
 
G

Guest

I need to get it to correspond to a cell in the table. Say, for example, D8
matched C1. The difference of F8 minus E8 matched A3. I need the table to go
down from C1 until it got to C3. C3 would be the cell I need to display in
G8, where the function is going.

Basically:
A1 B1 C1 D1
A2 |
A3------- C3
A4

Does that clear things up?
 
B

Bernard Liengme

VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)

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:

a.. Less than 1, VLOOKUP returns the #VALUE! error value.
b.. 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:

a.. 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.

b.. 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.
For example
=VLOOKUP(F8-E8,A1:C50,3,FALSE)
best wishes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top