Posted to microsoft.public.excel.worksheet.functions
|
|
Complicated Lookup
Bernard,
I just sent an update to Pete with all the data. If I simply replace Pete's
formula with your formula I get #N/A.
C10:G10 in my sheet are column headers, not data. Sorry I am missing
something here.
--
Trefor
"Bernard Liengme" wrote:
In C10:G10 I have the letters a,b,c,.....
In H11,H20 I have aa,bb,cc,dd,ee,ff,....
In C3 I have: b
In C4 I have: dd
In D3 I use =MATCH(C3,C10:G10,0) this returns 2 since "b" is the second
entry in C10:G10
In D4 I use =MATCH(C4,H11:H20,0) this returns 4 since "dd" is the fourth
entry in H11:H20
In D5 I used =INDEX(C11:G20,D4,D3) to locate the item in row 4, column 2
I could combine this to one formula
=INDEX(C11:G20,MATCH(C4,H11:H100,0),MATCH(C3,C10:G 10,0))
Not so complicated after all <grin
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email
"Trefor" wrote in message
...
There is to be a lot of discussion on multiple column lookups but they are
exact matches and I just can't wrap my head around this one.
I have 2 text values in C3 and C4.
C3 needs to exactly match a value from column D, E, F or G. (column
headings
at row 10, so data from 11 down).
C4 must be found within a list of CSV's in each cell in column H. (column
headings at row 10, so data from 11 down).
I then need the value under the heading in Column C that matches the same
row.
--
Trefor
|