Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dan dan is offline
external usenet poster
 
Posts: 866
Default Lookup data based on data comparison

Newbie he

I would like to select a column (A1:L1) based on the data in cell M1. My
data range is A2:L20. The data in A1:L1 starts w/1000 and steps up 500 where
B2=1500 and ends with L1=6500. M1 contains the value 1300. I would like the
formula to select the lower value column, "A1" and then LOOKUP and return a
value from the data range. Thanks for the formuls help, Dan
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Lookup data based on data comparison

What would decide which row to return the data from out of 2 to 20?

Pete

On Nov 5, 3:29 pm, Dan wrote:
Newbie he

I would like to select a column (A1:L1) based on the data in cell M1. My
data range is A2:L20. The data in A1:L1 starts w/1000 and steps up 500 where
B2=1500 and ends with L1=6500. M1 contains the value 1300. I would like the
formula to select the lower value column, "A1" and then LOOKUP and return a
value from the data range. Thanks for the formuls help, Dan



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dan dan is offline
external usenet poster
 
Posts: 866
Default Lookup data based on data comparison

Sorry out that. If A1 =1000 and B1 =1500 and my driver cell M1 =1300 then if
M1 was greater than A1 and less than B1 I would want to select the lower cell
A1. But.. how would I compare the M1 value to the range A1:L1?

"Pete_UK" wrote:

What would decide which row to return the data from out of 2 to 20?

Pete

On Nov 5, 3:29 pm, Dan wrote:
Newbie he

I would like to select a column (A1:L1) based on the data in cell M1. My
data range is A2:L20. The data in A1:L1 starts w/1000 and steps up 500 where
B2=1500 and ends with L1=6500. M1 contains the value 1300. I would like the
formula to select the lower value column, "A1" and then LOOKUP and return a
value from the data range. Thanks for the formuls help, Dan




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Lookup data based on data comparison

I understand that you are using M1 to select the column - that can be
done with LOOKUP, or MATCH or even calculated as your values have
equal increments.

But, what are you using to select the row of data? Do you want all the
values in the selected column (say column A) to appear in M2:M20 ?

Pete

On Nov 5, 4:38 pm, Dan wrote:
Sorry out that. If A1 =1000 and B1 =1500 and my driver cell M1 =1300 then if
M1 was greater than A1 and less than B1 I would want to select the lower cell
A1. But.. how would I compare the M1 value to the range A1:L1?



"Pete_UK" wrote:
What would decide which row to return the data from out of 2 to 20?


Pete


On Nov 5, 3:29 pm, Dan wrote:
Newbie he


I would like to select a column (A1:L1) based on the data in cell M1. My
data range is A2:L20. The data in A1:L1 starts w/1000 and steps up 500 where
B2=1500 and ends with L1=6500. M1 contains the value 1300. I would like the
formula to select the lower value column, "A1" and then LOOKUP and return a
value from the data range. Thanks for the formuls help, Dan- Hide quoted text -


- Show quoted text -



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dan dan is offline
external usenet poster
 
Posts: 866
Default Lookup data based on data comparison

Pete,

I just want to select one cell in the column. I believe that HLOOKUP will do
the job. The tough part for me is the first part.

"Pete_UK" wrote:

I understand that you are using M1 to select the column - that can be
done with LOOKUP, or MATCH or even calculated as your values have
equal increments.

But, what are you using to select the row of data? Do you want all the
values in the selected column (say column A) to appear in M2:M20 ?

Pete

On Nov 5, 4:38 pm, Dan wrote:
Sorry out that. If A1 =1000 and B1 =1500 and my driver cell M1 =1300 then if
M1 was greater than A1 and less than B1 I would want to select the lower cell
A1. But.. how would I compare the M1 value to the range A1:L1?



"Pete_UK" wrote:
What would decide which row to return the data from out of 2 to 20?


Pete


On Nov 5, 3:29 pm, Dan wrote:
Newbie he


I would like to select a column (A1:L1) based on the data in cell M1. My
data range is A2:L20. The data in A1:L1 starts w/1000 and steps up 500 where
B2=1500 and ends with L1=6500. M1 contains the value 1300. I would like the
formula to select the lower value column, "A1" and then LOOKUP and return a
value from the data range. Thanks for the formuls help, Dan- Hide quoted text -


- Show quoted text -






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Lookup data based on data comparison

With the values 1000 through to 6500 in A1:L1 and M1 containing a
value like 1300, this formula will return the column number where the
lower matching value occurs:

=MATCH(M1,A1:L1)

and this slight variation will return the column letter:

=CHAR(MATCH(M1,A1:L1)+64)

There are many ways of achieving this, but is this what you want?

Hope this helps.

Pete


On Nov 5, 9:16 pm, Dan wrote:
Pete,

I just want to select one cell in the column. I believe that HLOOKUP will do
the job. The tough part for me is the first part.



"Pete_UK" wrote:
I understand that you are using M1 to select the column - that can be
done with LOOKUP, or MATCH or even calculated as your values have
equal increments.


But, what are you using to select the row of data? Do you want all the
values in the selected column (say column A) to appear in M2:M20 ?


Pete


On Nov 5, 4:38 pm, Dan wrote:
Sorry out that. If A1 =1000 and B1 =1500 and my driver cell M1 =1300 then if
M1 was greater than A1 and less than B1 I would want to select the lower cell
A1. But.. how would I compare the M1 value to the range A1:L1?


"Pete_UK" wrote:
What would decide which row to return the data from out of 2 to 20?


Pete


On Nov 5, 3:29 pm, Dan wrote:
Newbie he


I would like to select a column (A1:L1) based on the data in cell M1. My
data range is A2:L20. The data in A1:L1 starts w/1000 and steps up 500 where
B2=1500 and ends with L1=6500. M1 contains the value 1300. I would like the
formula to select the lower value column, "A1" and then LOOKUP and return a
value from the data range. Thanks for the formuls help, Dan- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



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
Lookup Data based on 2 or more conditions/arguments TravisB Excel Discussion (Misc queries) 3 March 4th 07 10:24 PM
Data comparison j jbon Excel Worksheet Functions 1 September 22nd 06 10:22 PM
lookup column label based on data in cell Aaron Excel Worksheet Functions 1 August 22nd 06 04:13 PM
How do I lookup data with two comparison values? Tiziano Excel Worksheet Functions 9 December 3rd 05 05:15 AM
how do I lookup data based on two columns of data bttreadwell Excel Worksheet Functions 2 November 19th 05 03:54 AM


All times are GMT +1. The time now is 07:20 AM.

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

About Us

"It's about Microsoft Excel"