The following questions in stackoverflow.com were read but did not help:
1. excel formula - Inconsistent behavior for INDEX(MATCH())
2. excel - Why is Application.Match() is inconsistent?
3. Unpredictable output from Excel Index-Match
4. Excel match(less than) function behaves inconsistently
5. excel - Why is Application.Match() is inconsistent?
6. worksheet function - Inconsistent formula returns in Excel
What I need is to understand and correct the cause for the inconsistent behavior of the MATCH function when using match_type 1 in different LOOKUP_ARRAYs in a spreadsheet
To clarify even further the issue I pasted below the pertinent description of match function with match_type 1:
Match-type:1or omittedBehavior:
MATCHfinds the largest value that is less than or equal tolookup_value. The values in thelookup_arrayargument must be placed in ascending order
When I perform the following:
Command Result
---------------------------------------------
=CORRESP(96;{0;91,2;92,8;94,4;96};1) 5
=CORRESP(72;{0;69;70;71;72};1) 5
The above results are correct, and I do not question them.
In the simple spreadsheet in the link I reproduce the usage of the match function =MATCH(LOOKUP_VALUE,LOOKUP_ARRAY,1) in four ranges: PVc, PV, TPDc and TPD, and with different values in several cells but the problem occurs only with LOOKUP_VALUE 72 in LOOKUP_ARRAYS TPDc and TPD.
I believe that the problem is clearly explained in the Excel file in the link.
=MATCH(H4,PVc,1)is behaving correctly according to the documentation. However,=MATCH(H9,TPDc,1)is not. Note that the first72.0value in theTPDclist is at index5, not4as returned by the formula. Also, when I re-enter72in cellH9the formula returns12as expected. For some reason I can't explain, Excel is seeingH9..N9as being < the72's in rangeTPDc(until the values are re-entered)