#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Triple lookup?

Hi,

Thanks for any help or direction on this question. I have an excel
spreadsheet with a dozen plus columns.

I would like to be able to create a lookup formula of sorts that will based
on meeting three values within the same row. If these three value are met
then the lookup could return the value of say a specified cell again within
the same row.

Its basically a vlookup but instead of meeting one it would meet three values.

Many thanks for any help!
Andy

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Triple lookup?

Give an example!
Regards,
Stefi


€žAndy the Yeti€ť ezt Ă*rta:

Hi,

Thanks for any help or direction on this question. I have an excel
spreadsheet with a dozen plus columns.

I would like to be able to create a lookup formula of sorts that will based
on meeting three values within the same row. If these three value are met
then the lookup could return the value of say a specified cell again within
the same row.

Its basically a vlookup but instead of meeting one it would meet three values.

Many thanks for any help!
Andy

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Triple lookup?

Sorry hope this example helps
A B C D G H
1 Fred 48 DD Car Blue 700
2 Bob 45 FF Car Red 600
3 John 63 FF Car Green 500
4 George 54 AA Bike Black 500
5 Ralf 67 BB Car Red 500
6 Bill 43 CC Car Blue 600
7 Charles 55 CC Bike Yellow 600

I would like to lookup for example in Row 3, if it meets the positive
lookups of 63 car and green I would like it to return John.

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Triple lookup?

This formula returns "John" if you searches these values: 63 car and green
=IF(OR(ISERROR(VLOOKUP(63,B:B,1,FALSE)),ISERROR(VL OOKUP("Car",D:D,1,FALSE)),ISERROR(VLOOKUP("Green", E:E,1,FALSE))),"Not Found",INDEX(A:A,MATCH(63,B:B,0)))


But it's still not clear where do you store data to be searched! Are they in
certain cells? If so, replace their actual values by cell references!

Regards,
Stefi

€žAndy the Yeti€ť ezt Ă*rta:

Sorry hope this example helps
A B C D G H
1 Fred 48 DD Car Blue 700
2 Bob 45 FF Car Red 600
3 John 63 FF Car Green 500
4 George 54 AA Bike Black 500
5 Ralf 67 BB Car Red 500
6 Bill 43 CC Car Blue 600
7 Charles 55 CC Bike Yellow 600

I would like to lookup for example in Row 3, if it meets the positive
lookups of 63 car and green I would like it to return John.

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 195
Default Triple lookup?

Hi Andy,

You can use the formula

=INDEX(A2:A8,MATCH(1,(63=B2:B8)*("Car"=D2:D8)*("Gr een"=E2:E8),0))

This is an array function so you should press ALT+CTRL+ENTER to execute
the formula.

Hope that helps you.

Thanks

Shail


Andy the Yeti wrote:
Sorry hope this example helps
A B C D G H
1 Fred 48 DD Car Blue 700
2 Bob 45 FF Car Red 600
3 John 63 FF Car Green 500
4 George 54 AA Bike Black 500
5 Ralf 67 BB Car Red 500
6 Bill 43 CC Car Blue 600
7 Charles 55 CC Bike Yellow 600

I would like to lookup for example in Row 3, if it meets the positive
lookups of 63 car and green I would like it to return John.

Thanks




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Triple lookup?

Saved from a previous post:

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))

Andy the Yeti wrote:

Hi,

Thanks for any help or direction on this question. I have an excel
spreadsheet with a dozen plus columns.

I would like to be able to create a lookup formula of sorts that will based
on meeting three values within the same row. If these three value are met
then the lookup could return the value of say a specified cell again within
the same row.

Its basically a vlookup but instead of meeting one it would meet three values.

Many thanks for any help!
Andy


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Triple lookup?

Thank you all for your help!!!!!




"Dave Peterson" wrote:

Saved from a previous post:

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))

Andy the Yeti wrote:

Hi,

Thanks for any help or direction on this question. I have an excel
spreadsheet with a dozen plus columns.

I would like to be able to create a lookup formula of sorts that will based
on meeting three values within the same row. If these three value are met
then the lookup could return the value of say a specified cell again within
the same row.

Its basically a vlookup but instead of meeting one it would meet three values.

Many thanks for any help!
Andy


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lookup problem RD Wirr Excel Worksheet Functions 4 February 8th 06 01:14 PM
Another way to lookup data David Vollmer Excel Worksheet Functions 1 September 23rd 05 05:16 AM
Lookup Vector > Lookup Value Alec Kolundzic Excel Worksheet Functions 6 June 10th 05 02:14 PM
Lookup function w/Text and Year Josh O. Excel Worksheet Functions 1 February 12th 05 11:27 PM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


All times are GMT +1. The time now is 09:33 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"