Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default another lookup brute force question

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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default another lookup brute force question

Driller,

Something like

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

HTH,
Bernie
MS Excel MVP


"been drilbled to 2007" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default another lookup brute force question

thanks Sir Bernie,

i've seen the help file about the match_types 1,0,-1

what does this False mean
=INDEX(I1:P1,MATCH(A1,U1:AB1,FALSE))<<<<<


thanks for any enlightenment
4pinoyjunior
--
*****
birds of the same feather flock together..



"Bernie Deitrick" wrote:

Driller,

Something like

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

HTH,
Bernie
MS Excel MVP


"been drilbled to 2007" wrote in message
...
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




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default another lookup brute force question

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


"been drilbled to 2007" wrote in message
...
thanks Sir Bernie,

i've seen the help file about the match_types 1,0,-1

what does this False mean
=INDEX(I1:P1,MATCH(A1,U1:AB1,FALSE))<<<<<


thanks for any enlightenment
4pinoyjunior
--
*****
birds of the same feather flock together..



"Bernie Deitrick" wrote:

Driller,

Something like

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

HTH,
Bernie
MS Excel MVP


"been drilbled to 2007" wrote in message
...
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






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default another lookup brute force question

Thanks Sir Bernie,

i place it in my worksheet and tested it, yet got minor problem..
Data is

A1 = 3 (generated by a formula)

W1=U1+V1
Z1=X1+Y1
AC1=AA1+AB1

K1=I1+J1
N1=L1+M1
Q1=O1+P1

iam looking if there is an exact addend "3" on {U1:V1&","&X1:Y1&","&AA1:AB1}
to give me the its derivative from addends in {I1:J1&","&L1:M1&","&O1:P1}
the problem comes in a coincidence when the value of U1 =1 and V1=2, which
gave me a result of 3 located on W1.
then the formula result gave me the sum located on K1.
i cannot change the structure of the cells, since this is not mySheet.

it seem to work when there is no coincidence of match value from the cells
on W1 and Z1.

any suggestion, please Sir,
--
*****
birds of the same feather flock together..



"Bernie Deitrick" wrote:

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


"been drilbled to 2007" wrote in message
...
thanks Sir Bernie,

i've seen the help file about the match_types 1,0,-1

what does this False mean
=INDEX(I1:P1,MATCH(A1,U1:AB1,FALSE))<<<<<


thanks for any enlightenment
4pinoyjunior
--
*****
birds of the same feather flock together..



"Bernie Deitrick" wrote:

Driller,

Something like

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

HTH,
Bernie
MS Excel MVP


"been drilbled to 2007" wrote in message
...
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








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default another lookup brute force question

=IF(NOT(ISERROR(MATCH(A1,U1:V1,FALSE))),INDEX(I1:J 1,MATCH(A1,U1:V1,FALSE)),IF(NOT(ISERROR(MATCH(A1,X 1:Y1,FALSE))),INDEX(L1:M1,MATCH(A1,X1:Y1,FALSE)),I F(NOT(ISERROR(MATCH(A1,AA1:AB1,FALSE))),INDEX(O1:P 1,MATCH(A1,AA1:AB1,FALSE)),"Not
Found")))

HTH,
Bernie
MS Excel MVP


"been drilbled to 2007" wrote in message
...
Thanks Sir Bernie,

i place it in my worksheet and tested it, yet got minor problem..
Data is

A1 = 3 (generated by a formula)

W1=U1+V1
Z1=X1+Y1
AC1=AA1+AB1

K1=I1+J1
N1=L1+M1
Q1=O1+P1

iam looking if there is an exact addend "3" on {U1:V1&","&X1:Y1&","&AA1:AB1}
to give me the its derivative from addends in {I1:J1&","&L1:M1&","&O1:P1}
the problem comes in a coincidence when the value of U1 =1 and V1=2, which
gave me a result of 3 located on W1.
then the formula result gave me the sum located on K1.
i cannot change the structure of the cells, since this is not mySheet.

it seem to work when there is no coincidence of match value from the cells
on W1 and Z1.

any suggestion, please Sir,
--
*****
birds of the same feather flock together..



"Bernie Deitrick" wrote:

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


"been drilbled to 2007" wrote in message
...
thanks Sir Bernie,

i've seen the help file about the match_types 1,0,-1

what does this False mean
=INDEX(I1:P1,MATCH(A1,U1:AB1,FALSE))<<<<<

thanks for any enlightenment
4pinoyjunior
--
*****
birds of the same feather flock together..



"Bernie Deitrick" wrote:

Driller,

Something like

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

HTH,
Bernie
MS Excel MVP


"been drilbled to 2007" wrote in message
...
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








  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default another lookup brute force question

perfect sir,
i never thought i will need an if- long formula.

TFH "thanks for help"
4pinoyjunior

--
*****
birds of the same feather flock together..



"Bernie Deitrick" wrote:

=IF(NOT(ISERROR(MATCH(A1,U1:V1,FALSE))),INDEX(I1:J 1,MATCH(A1,U1:V1,FALSE)),IF(NOT(ISERROR(MATCH(A1,X 1:Y1,FALSE))),INDEX(L1:M1,MATCH(A1,X1:Y1,FALSE)),I F(NOT(ISERROR(MATCH(A1,AA1:AB1,FALSE))),INDEX(O1:P 1,MATCH(A1,AA1:AB1,FALSE)),"Not
Found")))

HTH,
Bernie
MS Excel MVP


"been drilbled to 2007" wrote in message
...
Thanks Sir Bernie,

i place it in my worksheet and tested it, yet got minor problem..
Data is

A1 = 3 (generated by a formula)

W1=U1+V1
Z1=X1+Y1
AC1=AA1+AB1

K1=I1+J1
N1=L1+M1
Q1=O1+P1

iam looking if there is an exact addend "3" on {U1:V1&","&X1:Y1&","&AA1:AB1}
to give me the its derivative from addends in {I1:J1&","&L1:M1&","&O1:P1}
the problem comes in a coincidence when the value of U1 =1 and V1=2, which
gave me a result of 3 located on W1.
then the formula result gave me the sum located on K1.
i cannot change the structure of the cells, since this is not mySheet.

it seem to work when there is no coincidence of match value from the cells
on W1 and Z1.

any suggestion, please Sir,
--
*****
birds of the same feather flock together..



"Bernie Deitrick" wrote:

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


"been drilbled to 2007" wrote in message
...
thanks Sir Bernie,

i've seen the help file about the match_types 1,0,-1

what does this False mean
=INDEX(I1:P1,MATCH(A1,U1:AB1,FALSE))<<<<<

thanks for any enlightenment
4pinoyjunior
--
*****
birds of the same feather flock together..



"Bernie Deitrick" wrote:

Driller,

Something like

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

HTH,
Bernie
MS Excel MVP


"been drilbled to 2007" wrote in message
...
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









  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default another lookup brute force question

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


"been drilbled to 2007" wrote in message
...
perfect sir,
i never thought i will need an if- long formula.

TFH "thanks for help"
4pinoyjunior

--
*****
birds of the same feather flock together..



"Bernie Deitrick" wrote:

=IF(NOT(ISERROR(MATCH(A1,U1:V1,FALSE))),INDEX(I1:J 1,MATCH(A1,U1:V1,FALSE)),IF(NOT(ISERROR(MATCH(A1,X 1:Y1,FALSE))),INDEX(L1:M1,MATCH(A1,X1:Y1,FALSE)),I F(NOT(ISERROR(MATCH(A1,AA1:AB1,FALSE))),INDEX(O1:P 1,MATCH(A1,AA1:AB1,FALSE)),"Not
Found")))

HTH,
Bernie
MS Excel MVP


"been drilbled to 2007" wrote in message
...
Thanks Sir Bernie,

i place it in my worksheet and tested it, yet got minor problem..
Data is

A1 = 3 (generated by a formula)

W1=U1+V1
Z1=X1+Y1
AC1=AA1+AB1

K1=I1+J1
N1=L1+M1
Q1=O1+P1

iam looking if there is an exact addend "3" on {U1:V1&","&X1:Y1&","&AA1:AB1}
to give me the its derivative from addends in {I1:J1&","&L1:M1&","&O1:P1}
the problem comes in a coincidence when the value of U1 =1 and V1=2, which
gave me a result of 3 located on W1.
then the formula result gave me the sum located on K1.
i cannot change the structure of the cells, since this is not mySheet.

it seem to work when there is no coincidence of match value from the cells
on W1 and Z1.

any suggestion, please Sir,
--
*****
birds of the same feather flock together..



"Bernie Deitrick" wrote:

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


"been drilbled to 2007" wrote in message
...
thanks Sir Bernie,

i've seen the help file about the match_types 1,0,-1

what does this False mean
=INDEX(I1:P1,MATCH(A1,U1:AB1,FALSE))<<<<<

thanks for any enlightenment
4pinoyjunior
--
*****
birds of the same feather flock together..



"Bernie Deitrick" wrote:

Driller,

Something like

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

HTH,
Bernie
MS Excel MVP


"been drilbled to 2007" wrote in message
...
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











  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default another lookup brute force question

Sir Bernie,
thanks again
in that case, its okey...

best regards and more power
4pinoyjunior

--
*****
birds of the same feather flock together..



"Bernie Deitrick" wrote:

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


"been drilbled to 2007" wrote in message
...
perfect sir,
i never thought i will need an if- long formula.

TFH "thanks for help"
4pinoyjunior

--
*****
birds of the same feather flock together..



"Bernie Deitrick" wrote:

=IF(NOT(ISERROR(MATCH(A1,U1:V1,FALSE))),INDEX(I1:J 1,MATCH(A1,U1:V1,FALSE)),IF(NOT(ISERROR(MATCH(A1,X 1:Y1,FALSE))),INDEX(L1:M1,MATCH(A1,X1:Y1,FALSE)),I F(NOT(ISERROR(MATCH(A1,AA1:AB1,FALSE))),INDEX(O1:P 1,MATCH(A1,AA1:AB1,FALSE)),"Not
Found")))

HTH,
Bernie
MS Excel MVP


"been drilbled to 2007" wrote in message
...
Thanks Sir Bernie,

i place it in my worksheet and tested it, yet got minor problem..
Data is

A1 = 3 (generated by a formula)

W1=U1+V1
Z1=X1+Y1
AC1=AA1+AB1

K1=I1+J1
N1=L1+M1
Q1=O1+P1

iam looking if there is an exact addend "3" on {U1:V1&","&X1:Y1&","&AA1:AB1}
to give me the its derivative from addends in {I1:J1&","&L1:M1&","&O1:P1}
the problem comes in a coincidence when the value of U1 =1 and V1=2, which
gave me a result of 3 located on W1.
then the formula result gave me the sum located on K1.
i cannot change the structure of the cells, since this is not mySheet.

it seem to work when there is no coincidence of match value from the cells
on W1 and Z1.

any suggestion, please Sir,
--
*****
birds of the same feather flock together..



"Bernie Deitrick" wrote:

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


"been drilbled to 2007" wrote in message
...
thanks Sir Bernie,

i've seen the help file about the match_types 1,0,-1

what does this False mean
=INDEX(I1:P1,MATCH(A1,U1:AB1,FALSE))<<<<<

thanks for any enlightenment
4pinoyjunior
--
*****
birds of the same feather flock together..



"Bernie Deitrick" wrote:

Driller,

Something like

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

HTH,
Bernie
MS Excel MVP


"been drilbled to 2007" wrote in message
...
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












Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A question for Match and Lookup Bin Excel Discussion (Misc queries) 1 June 26th 06 07:45 PM
Lookup problem RD Wirr Excel Worksheet Functions 4 February 8th 06 01:14 PM
Another way to lookup data David Vollmer Excel Worksheet Functions 1 September 23rd 05 05:16 AM
Lookup function help marlea Excel Worksheet Functions 4 August 30th 05 08:11 PM
Lookup and Sort Question Josh O. Excel Discussion (Misc queries) 7 December 9th 04 08:18 PM


All times are GMT +1. The time now is 05:14 PM.

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

About Us

"It's about Microsoft Excel"