Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Lookup Data based on 2 or more conditions/arguments | Excel Discussion (Misc queries) | |||
Data comparison | Excel Worksheet Functions | |||
lookup column label based on data in cell | Excel Worksheet Functions | |||
How do I lookup data with two comparison values? | Excel Worksheet Functions | |||
how do I lookup data based on two columns of data | Excel Worksheet Functions |