Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I want to take two input values and look up the 1st in the A1 column, then
take the 2nd (using the row associated with the first) and find the column (a value that is less than the 2nd) of the 2nd input. Then output the column heading. I have a sample table below. 150 Class 300 Class 600 Class 900 Class Temp Pressure Pressure Pressure Pressure t1 1 1.5 2 2.5 t2 2 2.5 3 3.5 t3 3 3.5 4 4.5 t4 4 4.5 5 5.5 t5 5 5.5 6 6.5 t6 6 6.5 7 7.5 So, if input 1 is "t2" and input 2 is 2.9, I want an output of "600 Class" Any help on this is greatly appreciated. Charlie |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() =INDEX(A1:E1,0,MATCH(G2,INDIRECT(MATCH(G1,$A$1:$A$ 8,0)&":"&MATCH(G1,$A$1:$A$8,0)),1)) Which gives 300 Class which value less than 2.9 HTH "cobra_charlie" wrote: I want to take two input values and look up the 1st in the A1 column, then take the 2nd (using the row associated with the first) and find the column (a value that is less than the 2nd) of the 2nd input. Then output the column heading. I have a sample table below. 150 Class 300 Class 600 Class 900 Class Temp Pressure Pressure Pressure Pressure t1 1 1.5 2 2.5 t2 2 2.5 3 3.5 t3 3 3.5 4 4.5 t4 4 4.5 5 5.5 t5 5 5.5 6 6.5 t6 6 6.5 7 7.5 So, if input 1 is "t2" and input 2 is 2.9, I want an output of "600 Class" Any help on this is greatly appreciated. Charlie |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
...sorry ...
G1=t2 G2=2.9 "Toppers" wrote: =INDEX(A1:E1,0,MATCH(G2,INDIRECT(MATCH(G1,$A$1:$A$ 8,0)&":"&MATCH(G1,$A$1:$A$8,0)),1)) Which gives 300 Class which value less than 2.9 HTH "cobra_charlie" wrote: I want to take two input values and look up the 1st in the A1 column, then take the 2nd (using the row associated with the first) and find the column (a value that is less than the 2nd) of the 2nd input. Then output the column heading. I have a sample table below. 150 Class 300 Class 600 Class 900 Class Temp Pressure Pressure Pressure Pressure t1 1 1.5 2 2.5 t2 2 2.5 3 3.5 t3 3 3.5 4 4.5 t4 4 4.5 5 5.5 t5 5 5.5 6 6.5 t6 6 6.5 7 7.5 So, if input 1 is "t2" and input 2 is 2.9, I want an output of "600 Class" Any help on this is greatly appreciated. Charlie |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thank you, it worked like a charm.
"Toppers" wrote: ..sorry ... G1=t2 G2=2.9 "Toppers" wrote: =INDEX(A1:E1,0,MATCH(G2,INDIRECT(MATCH(G1,$A$1:$A$ 8,0)&":"&MATCH(G1,$A$1:$A$8,0)),1)) Which gives 300 Class which value less than 2.9 HTH "cobra_charlie" wrote: I want to take two input values and look up the 1st in the A1 column, then take the 2nd (using the row associated with the first) and find the column (a value that is less than the 2nd) of the 2nd input. Then output the column heading. I have a sample table below. 150 Class 300 Class 600 Class 900 Class Temp Pressure Pressure Pressure Pressure t1 1 1.5 2 2.5 t2 2 2.5 3 3.5 t3 3 3.5 4 4.5 t4 4 4.5 5 5.5 t5 5 5.5 6 6.5 t6 6 6.5 7 7.5 So, if input 1 is "t2" and input 2 is 2.9, I want an output of "600 Class" Any help on this is greatly appreciated. Charlie |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do i get my data table column inputs to work? | Excel Discussion (Misc queries) | |||
Multiple inputs one output | Excel Discussion (Misc queries) | |||
Can Row and Column Inputs in 2 Var. Data Table be on a separate sh | Excel Discussion (Misc queries) | |||
Can Row and Column Inputs in 2 Var. Data Table be on a separate sh | Excel Discussion (Misc queries) | |||
Linking Inputs from a dropdowm menu to a table | Excel Discussion (Misc queries) |