![]() |
Lookup or reference function needed
I have a table that I return specific values when two conditions are true:
E H M L SI 700 600 500 400 DI 550 400 300 250 WM 550 400 300 200 BS NP 400 300 250 EB NP NP 250 250 For example, when two test are true, they return one of the values: i.e. if SI and E occur, return 700. If SI and H occur, return 600. I've tried the lookups, or, and, and several other functions, and can't seem to find one that allows me two variables to return a value. -- Thanks for your help. |
Lookup or reference function needed
If your data is in A1:E6, the "SI" is in A9 and the "H" is in B9:
=INDEX(B2:E6,MATCH(A9,A2:A6,0),MATCH(B9,B1:E1,0)) -- Kind regards, Niek Otten Microsoft MVP - Excel "Fire Guy" wrote in message ... |I have a table that I return specific values when two conditions are true: | | E H M L | SI 700 600 500 400 | DI 550 400 300 250 | WM 550 400 300 200 | BS NP 400 300 250 | EB NP NP 250 250 | | For example, when two test are true, they return one of the values: i.e. if | SI and E occur, return 700. If SI and H occur, return 600. | | I've tried the lookups, or, and, and several other functions, and can't seem | to find one that allows me two variables to return a value. | -- | Thanks for your help. |
Lookup or reference function needed
If your data table is in the top left hand corner (A1:E6), then try
=INDEX($B$2:$E$6,MATCH(row_input,$A$2:$A$6,0),MATC H(column_input,$B$1:$E$1,0)) -- David Biddulph "Fire Guy" wrote in message ... I have a table that I return specific values when two conditions are true: E H M L SI 700 600 500 400 DI 550 400 300 250 WM 550 400 300 200 BS NP 400 300 250 EB NP NP 250 250 For example, when two test are true, they return one of the values: i.e. if SI and E occur, return 700. If SI and H occur, return 600. I've tried the lookups, or, and, and several other functions, and can't seem to find one that allows me two variables to return a value. -- Thanks for your help. |
Lookup or reference function needed
Thanks, I'll try these solutions. I was able to make it work with IF
functions, but I'm certain there is an easier way. Happy holidays to all. -- Thanks for your help. "David Biddulph" wrote: If your data table is in the top left hand corner (A1:E6), then try =INDEX($B$2:$E$6,MATCH(row_input,$A$2:$A$6,0),MATC H(column_input,$B$1:$E$1,0)) -- David Biddulph "Fire Guy" wrote in message ... I have a table that I return specific values when two conditions are true: E H M L SI 700 600 500 400 DI 550 400 300 250 WM 550 400 300 200 BS NP 400 300 250 EB NP NP 250 250 For example, when two test are true, they return one of the values: i.e. if SI and E occur, return 700. If SI and H occur, return 600. I've tried the lookups, or, and, and several other functions, and can't seem to find one that allows me two variables to return a value. -- Thanks for your help. |
All times are GMT +1. The time now is 07:16 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com