Thread: vlookup()
View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default vlookup()

If you want exact matches for just two columns (and return a value from a
third), you could use:

=index(othersheet!$c$1:$c$100,
match(1,(a2=othersheet!$a$1:$a$100)*(b2=othersheet !$b$1:$b$100),0))

(all in one cell)

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

Adjust the range to match--but you can't use the whole column.

This returns the value in othersheet column C when column A and B (of
othersheet) match A2 and B2 of the sheet with the formula.

And you can add more conditions by just adding more stuff to that product
portion of the formula:

=index(othersheet!$d$1:$d$100,
match(1,(a2=othersheet!$a$1:$a$100)
*(b2=othersheet!$b$1:$b$100)
*(c2=othersheet!$c$1:$c$100),0))



I Maycotte wrote:

I have used false but do not achieve the appropriate results.

Here are two sample rows

ProdName Type Option Schedule Band Age Range
Rate
Product1 A 1 Level 10 61-70
1.50%
Product2 B 2 Heap 1 0-5
19.50%

I apologize for the formatting, I couldn't get it any better.

So, If I were linking to another sheet in the same workbook, I'd like
to use the in thie fashion: VLOOKUP(ProdName & Type & Option & Schedule
& Band & Age & Range, Table, 8, False)

I have tried this but get a #N/A. So, I do not know what I am doing
wrong or even if vlookup will work in this way.

Thanks.

--
I Maycotte
------------------------------------------------------------------------
I Maycotte's Profile: http://www.excelforum.com/member.php...o&userid=35604
View this thread: http://www.excelforum.com/showthread...hreadid=562873


--

Dave Peterson