Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default 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.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 618
Default 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.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default 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.




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
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
Lookup function and compare Student Excel Discussion (Misc queries) 8 April 25th 06 03:11 PM
Don't understand Lookup function Beblessed New Users to Excel 1 March 1st 06 08:57 AM
lookup function 1 Colboyfx Excel Worksheet Functions 4 July 15th 05 09:15 AM
Lookup function problem (kg) greencecil Excel Worksheet Functions 3 July 1st 05 04:54 PM


All times are GMT +1. The time now is 02:47 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"