pick from table based on row and column header

P

PBcorn

whats the best way to pick single values from a table based on text column
and row headers, i.e:

ABC
D 2
E
F

B:D=2

it has to be done using headers as new columns may be added

thanks
 
R

Roger Govier

Hi

=INDEX($1:$65536,MATCH("D",$A:$A,0),MATCH("B",$1:$1,0))
That would deal with the whole of a sheet (in XL2003) and assumes that your
letters D, E, F etc are in Column A, and your A, B, C etc are in Row 1

Adjust accordingly
 
T

T. Valko

One way:

=VLOOKUP("D",A1:D4,MATCH("B",A1:D1,0),0)

Or, use cells to hold the criteria:

A10 = D
B10 = B

=VLOOKUP(A10,A1:D4,MATCH(B10,A1:D1,0),0)
 

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

Top