#1   Report Post  
Posted to microsoft.public.excel.misc
rk0909
 
Posts: n/a
Default Lookup Help

Hello,
I have a range of data in 2 columns. What I need to do is to look up a value
in col A and get corresponding item from col b. Data in A is arranged in
ascending order. I don't need the closest or exact match to the look up value
but the range in which my lookup value falls.
e.g.
A B
10 x
20 y
30 z
if my look-up value is 15. answer should be y. if look-up value is 19 answer
should be y and if it were 21 answer should be z.
anyhelp or guidance is appreciated.
Thanks,
RK0909
  #2   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default Lookup Help

With your sample data, and lookup value in C1.........

=VLOOKUP((C1+10),A:B,2)

Vaya con Dios,
Chuck, CABGx3



"rk0909" wrote:

Hello,
I have a range of data in 2 columns. What I need to do is to look up a value
in col A and get corresponding item from col b. Data in A is arranged in
ascending order. I don't need the closest or exact match to the look up value
but the range in which my lookup value falls.
e.g.
A B
10 x
20 y
30 z
if my look-up value is 15. answer should be y. if look-up value is 19 answer
should be y and if it were 21 answer should be z.
anyhelp or guidance is appreciated.
Thanks,
RK0909

  #3   Report Post  
Posted to microsoft.public.excel.misc
rk0909
 
Posts: n/a
Default Lookup Help

thanks a lot that worked.


"CLR" wrote:

You might try jogging your column B data down one notch(ie put y in B1 and Z
in B2) and then go ahead and use the normal VLOOKUP with the TRUE
condition...........

Vaya con Dios,
Chuck, CABGx3



"rk0909" wrote:

thanks CLR
This was the hypothetical e.g. I gave. In reality data is not spread out
evenly. Any thought on how to tackle that
Thanks.

"CLR" wrote:

With your sample data, and lookup value in C1.........

=VLOOKUP((C1+10),A:B,2)

Vaya con Dios,
Chuck, CABGx3



"rk0909" wrote:

Hello,
I have a range of data in 2 columns. What I need to do is to look up a value
in col A and get corresponding item from col b. Data in A is arranged in
ascending order. I don't need the closest or exact match to the look up value
but the range in which my lookup value falls.
e.g.
A B
10 x
20 y
30 z
if my look-up value is 15. answer should be y. if look-up value is 19 answer
should be y and if it were 21 answer should be z.
anyhelp or guidance is appreciated.
Thanks,
RK0909

  #4   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default Lookup Help

Happy to help, and thanks for the feedback......

Vaya con Dios,
Chuck, CABGx3


"rk0909" wrote in message
...
thanks a lot that worked.


"CLR" wrote:

You might try jogging your column B data down one notch(ie put y in B1

and Z
in B2) and then go ahead and use the normal VLOOKUP with the TRUE
condition...........

Vaya con Dios,
Chuck, CABGx3



"rk0909" wrote:

thanks CLR
This was the hypothetical e.g. I gave. In reality data is not spread

out
evenly. Any thought on how to tackle that
Thanks.

"CLR" wrote:

With your sample data, and lookup value in C1.........

=VLOOKUP((C1+10),A:B,2)

Vaya con Dios,
Chuck, CABGx3



"rk0909" wrote:

Hello,
I have a range of data in 2 columns. What I need to do is to look

up a value
in col A and get corresponding item from col b. Data in A is

arranged in
ascending order. I don't need the closest or exact match to the

look up value
but the range in which my lookup value falls.
e.g.
A B
10 x
20 y
30 z
if my look-up value is 15. answer should be y. if look-up value is

19 answer
should be y and if it were 21 answer should be z.
anyhelp or guidance is appreciated.
Thanks,
RK0909



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
Another way to lookup data David Vollmer Excel Worksheet Functions 1 September 23rd 05 05:16 AM
lookup more than one cell andrewm Excel Worksheet Functions 20 June 14th 05 05:33 AM
Lookup Vector > Lookup Value Alec Kolundzic Excel Worksheet Functions 6 June 10th 05 02:14 PM
Lookup function w/Text and Year Josh O. Excel Worksheet Functions 1 February 12th 05 11:27 PM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


All times are GMT +1. The time now is 02:19 AM.

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"