#1   Report Post  
VincentT
 
Posts: n/a
Default Two-way MATCH


Good afternoon,

Would anyone have some suggestion on how to proceed with the problem
below?

I have a table organised as follows:

Columns = different customers
Rows = different products
Table cells = sale value of each combination customer-product.

Given one of the sale value in the table, how to find back the
corresponding customer and product names?

This is no problem for an array (i.e. either one customer or one
product) using INDEX / MATCH, but how to do it for a table? A kind of
two-way match or reverse two-way lookup?

Many thanks in advance,

Cheers,

Vincent


--
VincentT
------------------------------------------------------------------------
VincentT's Profile: http://www.excelforum.com/member.php...o&userid=26046
View this thread: http://www.excelforum.com/showthread...hreadid=393930

  #2   Report Post  
Alan Beban
 
Posts: n/a
Default

If the functions in the freely downloadable file at
http://home.pacbell.net/beban are available to your workbook, then if
the range of your data, including the headers, is named "dataRange", the
specified sales value is in Cell F1, Column B is the first column of
dataRange and Row 3 is the first row of dataRange:

=INDEX(B:B,INDEX(ArrayMatch(F1,dataRange),1,1)+ROW (dataRange)-1)
for the product name, and

=INDEX(3:3,INDEX(ArrayMatch(F1,dataRange),1,2)+COL UMN(dataRange)-1)
for the customer name

Alan Beban

VincentT wrote:
Good afternoon,

Would anyone have some suggestion on how to proceed with the problem
below?

I have a table organised as follows:

Columns = different customers
Rows = different products
Table cells = sale value of each combination customer-product.

Given one of the sale value in the table, how to find back the
corresponding customer and product names?

This is no problem for an array (i.e. either one customer or one
product) using INDEX / MATCH, but how to do it for a table? A kind of
two-way match or reverse two-way lookup?

Many thanks in advance,

Cheers,

Vincent


  #3   Report Post  
Biff
 
Posts: n/a
Default

What if there are duplicates?

Biff

"Alan Beban" wrote in message
...
If the functions in the freely downloadable file at
http://home.pacbell.net/beban are available to your workbook, then if the
range of your data, including the headers, is named "dataRange", the
specified sales value is in Cell F1, Column B is the first column of
dataRange and Row 3 is the first row of dataRange:

=INDEX(B:B,INDEX(ArrayMatch(F1,dataRange),1,1)+ROW (dataRange)-1)
for the product name, and

=INDEX(3:3,INDEX(ArrayMatch(F1,dataRange),1,2)+COL UMN(dataRange)-1)
for the customer name

Alan Beban

VincentT wrote:
Good afternoon,

Would anyone have some suggestion on how to proceed with the problem
below?

I have a table organised as follows:

Columns = different customers
Rows = different products
Table cells = sale value of each combination customer-product.

Given one of the sale value in the table, how to find back the
corresponding customer and product names?

This is no problem for an array (i.e. either one customer or one
product) using INDEX / MATCH, but how to do it for a table? A kind of
two-way match or reverse two-way lookup?

Many thanks in advance,

Cheers,

Vincent


  #4   Report Post  
Alan Beban
 
Posts: n/a
Default

I assume you mean duplicate sales values.

=INDEX($3:$3,INDEX(ArrayMatch($F$1,dataRange),ROW( A1),2)+COLUMN(dataRange)-1)
for the customer name

=INDEX(B:B,INDEX(ArrayMatch($F$1,dataRange),ROW(A1 ),1)+ROW(dataRange)-1)
for the product name

If you enter them in two horizontally adjacent cells and fill down, you
will get the results for each occurrence of the duplicated sales value.

Alan Beban

Biff wrote:
What if there are duplicates?

Biff

"Alan Beban" wrote in message
...

If the functions in the freely downloadable file at
http://home.pacbell.net/beban are available to your workbook, then if the
range of your data, including the headers, is named "dataRange", the
specified sales value is in Cell F1, Column B is the first column of
dataRange and Row 3 is the first row of dataRange:

=INDEX(B:B,INDEX(ArrayMatch(F1,dataRange),1,1)+R OW(dataRange)-1)
for the product name, and

=INDEX(3:3,INDEX(ArrayMatch(F1,dataRange),1,2)+C OLUMN(dataRange)-1)
for the customer name

Alan Beban

VincentT wrote:

Good afternoon,

Would anyone have some suggestion on how to proceed with the problem
below?

I have a table organised as follows:

Columns = different customers
Rows = different products
Table cells = sale value of each combination customer-product.

Given one of the sale value in the table, how to find back the
corresponding customer and product names?

This is no problem for an array (i.e. either one customer or one
product) using INDEX / MATCH, but how to do it for a table? A kind of
two-way match or reverse two-way lookup?

Many thanks in advance,

Cheers,

Vincent



  #5   Report Post  
VincentT
 
Posts: n/a
Default


Alan,

Many thanks for your functions and your solutions.

I tried them, it is working after removing the "+ROW (dataRange)-1" and
") or "+COL UMN(dataRange)-1" parts. I have not yet understood why
these ROW and COLUMN parts would be necessary and if I keep them I do
not get the right references.

I appreciated your quick and very helpful reply to my problem! Thanks
again.

Have a good day,

Vincent


--
VincentT
------------------------------------------------------------------------
VincentT's Profile: http://www.excelforum.com/member.php...o&userid=26046
View this thread: http://www.excelforum.com/showthread...hreadid=393930



  #6   Report Post  
Alan Beban
 
Posts: n/a
Default

Without knowing where your dataRange is, and *exactly* what formula(s)
worked for for you, it's hard to respond. I don't think you should need
to remove those portions of the formulas, and in fact I believe they are
necessary if your dataRange does not begin at Cell A1. If you post the
information referred to in the first sentence above, I should be able to
clarify it for you.

In any event, thanks for the feedback.

Alan Beban

VincentT wrote:
Alan,

Many thanks for your functions and your solutions.

I tried them, it is working after removing the "+ROW (dataRange)-1" and
") or "+COL UMN(dataRange)-1" parts. I have not yet understood why
these ROW and COLUMN parts would be necessary and if I keep them I do
not get the right references.

I appreciated your quick and very helpful reply to my problem! Thanks
again.

Have a good day,

Vincent


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
Look up data in colum a and find match in colum b Chris(new user) Excel Discussion (Misc queries) 1 March 22nd 05 01:41 PM
Check data on colum A and find match on colum b Chris(new user) Excel Discussion (Misc queries) 3 March 20th 05 04:45 PM
Look up data in colum a and find match in colum b Chris(new user) Excel Discussion (Misc queries) 1 March 19th 05 09:27 PM
Find a match that;s not exact Phyllis Excel Worksheet Functions 0 November 8th 04 08:12 PM
Vlookup, Index & Match Phyllis Excel Worksheet Functions 1 November 8th 04 06:11 PM


All times are GMT +1. The time now is 05:15 PM.

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"