Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 89
Default Index & Match Question

One last question:

How would this be modified to find the closest or next smaller value?

=INDEX('Sheet2'!$BH$2:$BH$94,MATCH(O2&T2,'Sheet2'! $BF$2:$BF$94&'Sheet2'!$BG$2:$BG$94,0))


For example, if I am trying to match .625 and 5000 and the table has:


..625 4000 .55
..625 4750 .65
..625 5500 .25
..625 6000 .35

How do I get it to return the .65?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Index & Match Question

Hi,

Maybe this

=OFFSET(INDEX(C1:C4,MATCH(1,(A1:A4=D1)*(B1:B4=E1) ,0)),-1,0)

With 0.625 in D1
and 5000 in E1

This is an array formula which must be entered with CTRL+Shift+Enter and NOT
'just enter. If you do it correctly then Excel will put curly brackets around
'the formula{}. You can't type these yourself. If you Edit the ranges
'then you must re-enter as An array

Mike



"Iriemon" wrote:

One last question:

How would this be modified to find the closest or next smaller value?

=INDEX('Sheet2'!$BH$2:$BH$94,MATCH(O2&T2,'Sheet2'! $BF$2:$BF$94&'Sheet2'!$BG$2:$BG$94,0))


For example, if I am trying to match .625 and 5000 and the table has:


.625 4000 .55
.625 4750 .65
.625 5500 .25
.625 6000 .35

How do I get it to return the .65?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Index & Match Question

What should happen if the 2nd lookup value is less than the samllest value
or greater than the highest value?

For example, lookup 0.625 and 3550, or, lookup 0.625 and 7000.

--
Biff
Microsoft Excel MVP


"Iriemon" wrote in message
...
One last question:

How would this be modified to find the closest or next smaller value?

=INDEX('Sheet2'!$BH$2:$BH$94,MATCH(O2&T2,'Sheet2'! $BF$2:$BF$94&'Sheet2'!$BG$2:$BG$94,0))


For example, if I am trying to match .625 and 5000 and the table has:


.625 4000 .55
.625 4750 .65
.625 5500 .25
.625 6000 .35

How do I get it to return the .65?




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
Index / Match Question carl Excel Worksheet Functions 1 December 24th 08 02:16 PM
Index match question SGT Buckeye Excel Discussion (Misc queries) 6 May 30th 07 06:13 PM
Index/match question. Jules Excel Discussion (Misc queries) 1 July 8th 06 04:03 PM
Index/match question. Jules Excel Worksheet Functions 0 July 6th 06 06:49 PM
Match or Index Question carl Excel Worksheet Functions 2 October 4th 05 09:11 PM


All times are GMT +1. The time now is 03:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"