#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default lookup in a matrix

Hi,

I have two columns which I input data into, these correspond to the title
row in a matrix. I want to find a formula rather like Vlookup but for a
matrix which looks for the row and the column in one go. At the moment I am
getting round it by using a lengthy If function but I would really like to
get it into one formula.

See below example


A B C
1 Name Date
2 a Adam Nov <-- rows A & C are inputted, row B has the formula
3 b Bob Nov Which looks up the values from the lookup table
4 a Andrew Dec below.
5 b Barry Dec
6
7
8 Lookup Table
9 Nov Dec
10 a Adam Andrew
11 b Bob Barry


If any one could help i'd be very grateful.

Cheers
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 913
Default lookup in a matrix

On Sun, 13 Dec 2009 03:32:02 -0800, laandmc
wrote:

Hi,

I have two columns which I input data into, these correspond to the title
row in a matrix. I want to find a formula rather like Vlookup but for a
matrix which looks for the row and the column in one go. At the moment I am
getting round it by using a lengthy If function but I would really like to
get it into one formula.

See below example


A B C
1 Name Date
2 a Adam Nov <-- rows A & C are inputted, row B has the formula
3 b Bob Nov Which looks up the values from the lookup table
4 a Andrew Dec below.
5 b Barry Dec
6
7
8 Lookup Table
9 Nov Dec
10 a Adam Andrew
11 b Bob Barry


If any one could help i'd be very grateful.

Cheers


Try this formula in cell B2:

=INDEX(C$10:D$11,MATCH(A2,B$10:B$11,0),MATCH(C2,C$ 9:D$9,0))

Copy down to B5.

C$10:D$11 is the core of you Lookup Table
B$10:B$11 is the column of a, b, ... codes
C$9:D$9 is the row of Dates

Hope this helps / Lars-Åke


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default lookup in a matrix

Thanks thats spot on!

"Lars-Ã…ke Aspelin" wrote:

On Sun, 13 Dec 2009 03:32:02 -0800, laandmc
wrote:

Hi,

I have two columns which I input data into, these correspond to the title
row in a matrix. I want to find a formula rather like Vlookup but for a
matrix which looks for the row and the column in one go. At the moment I am
getting round it by using a lengthy If function but I would really like to
get it into one formula.

See below example


A B C
1 Name Date
2 a Adam Nov <-- rows A & C are inputted, row B has the formula
3 b Bob Nov Which looks up the values from the lookup table
4 a Andrew Dec below.
5 b Barry Dec
6
7
8 Lookup Table
9 Nov Dec
10 a Adam Andrew
11 b Bob Barry


If any one could help i'd be very grateful.

Cheers


Try this formula in cell B2:

=INDEX(C$10:D$11,MATCH(A2,B$10:B$11,0),MATCH(C2,C$ 9:D$9,0))

Copy down to B5.

C$10:D$11 is the core of you Lookup Table
B$10:B$11 is the column of a, b, ... codes
C$9:D$9 is the row of Dates

Hope this helps / Lars-Ã…ke


.

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 matrix Jack Excel Discussion (Misc queries) 1 May 15th 09 01:27 AM
Matrix lookup/mulitple criteria lookup MarkFranklin Excel Discussion (Misc queries) 3 March 31st 08 10:15 AM
Matrix Lookup C Brandt Excel Discussion (Misc queries) 4 May 1st 07 05:07 PM
lookup in MATRIX Forumchanin Excel Worksheet Functions 2 December 13th 05 01:29 PM
Lookup in Matrix Johannes Excel Worksheet Functions 5 May 4th 05 10:32 AM


All times are GMT +1. The time now is 11: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"