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 » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Search columns and rows for values to return common value



 
 
Thread Tools Display Modes
  #1  
Old December 18th, 2003, 03:27 PM
Dale
external usenet poster
 
Posts: n/a
Default Search columns and rows for values to return common value

I have a table that I would like to retrieve data from by
using two different user inputs to specify the values in
the start of the columns and rows. I want the formula to
search for the value in the colums and the rows. Not by
specific columns or rows.

Example:

A1 SIZE
A2 10
A3 18
A4 30

B1 JA
C1 JK
D1 LJ
E1 HT

B2 15
B3 22
B4 27
C2 19
C3 26
C4 32

In two other cells a user might enter,

18
JK

Then in another cell I want to have the two user entries
to search the tables Rows and colums to return the value
from cell C3 or 26.
Then another user might enter,

10
JA

This should return the value from cell B2 or 15.


Any ideas?

Thanks.


  #2  
Old December 18th, 2003, 03:41 PM
drabbacs
external usenet poster
 
Posts: n/a
Default Search columns and rows for values to return common value

See http://www.cpearson.com/excel/lookups.htm for double
lookups
-----Original Message-----
I have a table that I would like to retrieve data from by
using two different user inputs to specify the values in
the start of the columns and rows. I want the formula to
search for the value in the colums and the rows. Not by
specific columns or rows.

Example:

A1 SIZE
A2 10
A3 18
A4 30

B1 JA
C1 JK
D1 LJ
E1 HT

B2 15
B3 22
B4 27
C2 19
C3 26
C4 32

In two other cells a user might enter,

18
JK

Then in another cell I want to have the two user entries
to search the tables Rows and colums to return the value
from cell C3 or 26.
Then another user might enter,

10
JA

This should return the value from cell B2 or 15.


Any ideas?

Thanks.


.

  #3  
Old December 18th, 2003, 03:45 PM
Paul
external usenet poster
 
Posts: n/a
Default Search columns and rows for values to return common value

"Dale" wrote in message
...
I have a table that I would like to retrieve data from by
using two different user inputs to specify the values in
the start of the columns and rows. I want the formula to
search for the value in the colums and the rows. Not by
specific columns or rows.

Example:

A1 SIZE
A2 10
A3 18
A4 30

B1 JA
C1 JK
D1 LJ
E1 HT

B2 15
B3 22
B4 27
C2 19
C3 26
C4 32

In two other cells a user might enter,

18
JK

Then in another cell I want to have the two user entries
to search the tables Rows and colums to return the value
from cell C3 or 26.
Then another user might enter,

10
JA

This should return the value from cell B2 or 15.


Any ideas?

Thanks.



Supposing your two cells for user entry are G1 and H1:
=INDEX(A1:E4,MATCH(G1,INDEX(A1:E4,,1),0),MATCH(H1, INDEX(A1:E4,1,),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 08:25 AM.


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