Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default table lookup with two inputs one output

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default table lookup with two inputs one output



=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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default table lookup with two inputs one output

...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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default table lookup with two inputs one output

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
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
how do i get my data table column inputs to work? wms Excel Discussion (Misc queries) 0 February 14th 06 08:25 PM
Multiple inputs one output Chris W via OfficeKB.com Excel Discussion (Misc queries) 1 August 25th 05 07:00 PM
Can Row and Column Inputs in 2 Var. Data Table be on a separate sh RED Excel Discussion (Misc queries) 4 May 3rd 05 06:12 PM
Can Row and Column Inputs in 2 Var. Data Table be on a separate sh RED Excel Discussion (Misc queries) 0 May 3rd 05 03:30 PM
Linking Inputs from a dropdowm menu to a table GrantM Excel Discussion (Misc queries) 2 December 22nd 04 07:43 AM


All times are GMT +1. The time now is 06:50 PM.

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"