Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,939
Default Match function problem

Because you have told the function that it can expect a sorted range it
assumes that it can safely make assumptions about where the value will be.
(There are a few different algorythems it could be using but lets assume it
uses bisection). The first thing that the function will do is look at the
value in the mid point of the list and based on that value it will decide if
the value you are looking for is in the first half or the last half of the
list. By doing this it can very quickly zoom in on the desired value tossing
out half the list and choosing a new mid point with each iteration through
the loop. If you change the size of the array then you change the mid point
and since your mid point is essentailly random the function makes different
(wrong) assumptions with each iteration. That is why you will get seemingly
random results.
--
HTH...

Jim Thomlinson


" wrote:

Bob,

Thanks for the reply. I do know that it is not sorted and the 1 assumes
that it is sorted... the thing that bugs me is that there are no
additonal different values in there .... and excel does not seem to
give a consistent answer (I dont care if the answer is wrong).... what
bothers me is that the consistency is missing ..

-Naveen


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
Using Match function with duplicate values in an array Richard Excel Worksheet Functions 3 April 22nd 23 07:45 PM
MATCH function problem LACA Excel Discussion (Misc queries) 10 May 22nd 06 01:39 AM
numerical integration integreat Excel Discussion (Misc queries) 4 May 12th 06 02:40 AM
Double and Multiple Lookup Using the MATCH Function Charles793 Excel Worksheet Functions 0 May 11th 06 01:46 PM
Lookup function problem (kg) greencecil Excel Worksheet Functions 3 July 1st 05 04:54 PM


All times are GMT +1. The time now is 05:51 AM.

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"