another lookup brute force question

  • Thread starter been drilbled to 2007
  • Start date
B

been drilbled to 2007

is it possible to make a lookup_reference and lookup result directly from a
non-adjacent cells,,

maybe something like this...

=LOOKUP(A1,{U1:V1&","&X1:Y1&","&AA1:AB1},{I1:J1&","&L1:M1&","&O1:p1})

like if the value on A1
is exactly equal to a value on either U1 or V1, then RESULT will be from L1
or M1, and if not found, it will search again on the next...

if not possible, please advice

thanks and more power
driller
 
B

Bernie Deitrick

Driller,

Something like

=INDEX(I1:p1,MATCH(A1,U1:AB1,FALSE))

HTH,
Bernie
MS Excel MVP
 
B

Bernie Deitrick

4pinoyjunior,

False = 0, and forces an exact match rather than finding the value before the first value that
exceeds the "looked up" number (using a 1) or the converse (using a -1) in a sorted table.

HTH,
Bernie
MS Excel MVP
 
B

Bernie Deitrick

=IF(NOT(ISERROR(MATCH(A1,U1:V1,FALSE))),INDEX(I1:J1,MATCH(A1,U1:V1,FALSE)),IF(NOT(ISERROR(MATCH(A1,X1:Y1,FALSE))),INDEX(L1:M1,MATCH(A1,X1:Y1,FALSE)),IF(NOT(ISERROR(MATCH(A1,AA1:AB1,FALSE))),INDEX(O1:p1,MATCH(A1,AA1:AB1,FALSE)),"Not
Found")))

HTH,
Bernie
MS Excel MVP
 
B

Bernie Deitrick

IF you want to use a simple formula, create links to cells U1:AB1 (with the summing cells W1 and Z1
left out) in another range, say I4:p4, and use the formula

=INDEX(I1:p1,MATCH(A1,I4:p4,FALSE))

HTH,
Bernie
MS 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

Top