A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

lookup matrix



 
 
Thread Tools Display Modes
  #1  
Old May 15th, 2009, 12:22 AM posted to microsoft.public.excel.misc
Jack
external usenet poster
 
Posts: 463
Default lookup matrix

I have the following matrix. I'm given the values of C and bb
How would i write a macro to get the result? which is 8.

aa bb cc
A 1 2 3
B 4 5 6
C 7 8 9
D 10 11 12
E 13 14 15

thanks
Jack
  #2  
Old May 15th, 2009, 01:27 AM posted to microsoft.public.excel.misc
smartin
external usenet poster
 
Posts: 780
Default lookup matrix

Jack wrote:
I have the following matrix. I'm given the values of C and bb
How would i write a macro to get the result? which is 8.

aa bb cc
A 1 2 3
B 4 5 6
C 7 8 9
D 10 11 12
E 13 14 15

thanks
Jack


With your data in A1:B6 here is a worksheet function that will do it.

=INDEX(B26,MATCH("C",A2:A6,0),MATCH("bb",B11,0 ))
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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