Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Two dimensional look up

HI,
I am looking for a function which returns a value by looking in to 2
dimensional table.For example
Joe Mike Sandy Andy
Maths 10 35 10 35
Science 20 65 20 65
Trignomtry 30 98 30 98
Eenglish 40 65 40 65

If I pass Joe and Maths as two inputs to fuction,it should give me 10.
I was using round about methods using IF conditions and LOOKUP functions.
Butif the number of of columns and rows are huge,its not a practical solution.

Can you please suggest me a practical solution which I cam implement for
looking in to huge tables containing like 100 rows and 100 columns.

THanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Two dimensional look up

Hi,

I think the way you have started the is flawed because what will happen if 2
people have the same name. Having said that based upon your sample data try
this which assumes you table is in A1 (actually blank) to E5

=SUMPRODUCT((A2:A5=F1)*(B1:E1=G1)*(B2:E5))

Where F1 = Subject
G1 = Name

Mike
"2 D lookup" wrote:

HI,
I am looking for a function which returns a value by looking in to 2
dimensional table.For example
Joe Mike Sandy Andy
Maths 10 35 10 35
Science 20 65 20 65
Trignomtry 30 98 30 98
Eenglish 40 65 40 65

If I pass Joe and Maths as two inputs to fuction,it should give me 10.
I was using round about methods using IF conditions and LOOKUP functions.
Butif the number of of columns and rows are huge,its not a practical solution.

Can you please suggest me a practical solution which I cam implement for
looking in to huge tables containing like 100 rows and 100 columns.

THanks in advance.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Two dimensional look up

Hey Thanks Mike.
Ya I know,Two guys having same name would create problems.I just gave it for
an example.
Your solution is working fine.
Thanks a lot.



"Mike H" wrote:

Hi,

I think the way you have started the is flawed because what will happen if 2
people have the same name. Having said that based upon your sample data try
this which assumes you table is in A1 (actually blank) to E5

=SUMPRODUCT((A2:A5=F1)*(B1:E1=G1)*(B2:E5))

Where F1 = Subject
G1 = Name

Mike
"2 D lookup" wrote:

HI,
I am looking for a function which returns a value by looking in to 2
dimensional table.For example
Joe Mike Sandy Andy
Maths 10 35 10 35
Science 20 65 20 65
Trignomtry 30 98 30 98
Eenglish 40 65 40 65

If I pass Joe and Maths as two inputs to fuction,it should give me 10.
I was using round about methods using IF conditions and LOOKUP functions.
Butif the number of of columns and rows are huge,its not a practical solution.

Can you please suggest me a practical solution which I cam implement for
looking in to huge tables containing like 100 rows and 100 columns.

THanks in advance.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Two dimensional look up

Glad I could help

"2 D lookup" wrote:

Hey Thanks Mike.
Ya I know,Two guys having same name would create problems.I just gave it for
an example.
Your solution is working fine.
Thanks a lot.



"Mike H" wrote:

Hi,

I think the way you have started the is flawed because what will happen if 2
people have the same name. Having said that based upon your sample data try
this which assumes you table is in A1 (actually blank) to E5

=SUMPRODUCT((A2:A5=F1)*(B1:E1=G1)*(B2:E5))

Where F1 = Subject
G1 = Name

Mike
"2 D lookup" wrote:

HI,
I am looking for a function which returns a value by looking in to 2
dimensional table.For example
Joe Mike Sandy Andy
Maths 10 35 10 35
Science 20 65 20 65
Trignomtry 30 98 30 98
Eenglish 40 65 40 65

If I pass Joe and Maths as two inputs to fuction,it should give me 10.
I was using round about methods using IF conditions and LOOKUP functions.
Butif the number of of columns and rows are huge,its not a practical solution.

Can you please suggest me a practical solution which I cam implement for
looking in to huge tables containing like 100 rows and 100 columns.

THanks in advance.

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
3-dimensional matrix XL comp. Excel Worksheet Functions 5 October 23rd 08 11:12 PM
Transposing from two dimensional to one dimensional VickiMc Excel Worksheet Functions 3 July 17th 08 09:00 AM
two dimensional arrays Dave Breitenbach Excel Worksheet Functions 4 September 19th 07 09:12 PM
2-dimensional lookup Madhu Excel Discussion (Misc queries) 1 October 11th 06 07:31 AM
How to do a 2-dimensional lookup? Madhu Excel Discussion (Misc queries) 0 October 11th 06 06:46 AM


All times are GMT +1. The time now is 10:19 PM.

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

About Us

"It's about Microsoft Excel"