intersection of row and column

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I have the following table on sheet 2
attribute a attribute b attribute 3 attribute 4
tom 55 67 32 77
harry 45 65 34 88
george 22 77 54 32
bill 4 87 45 12

On sheet 1 , I require the unique intersection value for the attrebutes
listed for eg:
look up attribute in row, look up name in coumn and return the intersection
value...

column A column B Column C
attribute a george


Please advice - i am trying to use the index formual but it is not working--
 
Hi!

Here's one way.

Assume this table is on Sheet2 in the range A1:E5:
attribute a attribute b attribute 3 attribute 4
tom 55 67 32 77
harry 45 65 34 88
george 22 77 54 32
bill 4 87 45 12

On Sheet1 you have:

A1 = attribute A
B1 = George
C1 = formula:

=VLOOKUP(B1,Sheet2!A2:E5,MATCH(A1,Sheet2!A1:E1,0),0)

Returns 22

Biff
 
... trying to use the index formula ...

Alternatively, on the same set-up but using INDEX,
you could also try in say, D1:
=INDEX(Sheet2!A1:E5,MATCH(B1,Sheet2!$A$1:$A$5,0),MATCH(A1,Sheet2!$A$1:$E$1,0
))
 
tHANK YOU MAX AND BIFF
- i was able to resolve the problem with the index solution suggested by
max..and it worked fine...... the vlook formula returned an erroe
message......regards,
 
You're welcome. Glad to hear that you got it working.
Biff's suggested formula works just as well (and is shorter!)
Maybe try copy > pasting his formula again into C1
- it works fine here.
 
With this layout you could also use the Intersection Operator

Select the table.

Insert>Name>Create. Top row and Left Column.

Now in an unused cell enter =george attribute_a (note the underscore, if you
had no space you would not require the underscore)


Gord Dibben Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top