Wrong usage of XMATCH in Microsoft's Example

%3CLINGO-SUB%20id%3D%22%5C%26quot%3Blingo-sub-3151823%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3EWrong%20usage%20of%20XMATCH%20in%20Microsoft's%20Example%26lt%3B%5C%2Flingo-sub%26gt%3B%3CLINGO-BODY%20id%3D%22%5C%26quot%3Blingo-body-3151823%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CP%3EIs%20it%20just%20me%20or%20the%20interpretation%20of%20example%202%20in%20this%20%3CA%20href%3D%22%5C%26quot%3Bhttps%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fxmatch-function-d966da31-7a6b-4a13-a1c6-5a33ed6a0312%5C%26quot%3B%22%20target%3D%22%5C%26quot%3B_self%5C%26quot%3B%22%20rel%3D%22%5C%26quot%3Bnoopener%20nofollow%20noopener%20noreferrer%22%20noreferrer%3D%22%22%3Elink%26lt%3B%5C%2FA%26gt%3B%20is%20wrong%3F%20The%20example%202%20is%20what%20is%20in%20the%20image%20below%20in%20case%20you%20don't%20want%20to%20click%20that%20link.%26lt%3B%5C%2FP%26gt%3B%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-inline%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F347146i79AC25B411AFDB99%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22image.png%22%20alt%3D%22%5C%26quot%3Bimage.png%5C%26quot%3B%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EUsing%201%20for%20the%20Match-mode%20returns%20the%20position%20of%20the%20next%20largest%20item%20(%2415%2C901)%20but%20the%20writer%20interpreted%20it%20to%20mean%20the%20number%20of%20occurrences%20greater%20than%20the%20specified%20number%20(%2415%2C000).%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EThis%20is%20their%20interpretation%20in%20quotes%20below%3A%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%22This%20next%20example%20finds%20the%20number%20of%20sales%20people%20eligible%20for%20a%20bonus.%20This%20also%20uses%201%20for%20the%20match_mode%20to%20find%20an%20exact%20match%20or%20the%20next%20largest%20item%20in%20the%20list%2C%20but%20since%20the%20data%20is%20numeric%20it%20returns%20a%20count%20of%20values.%20In%20this%20case%2C%20the%20function%20returns%204%2C%20since%20there%20are%204%20sales%20reps%20who%20exceeded%20the%20bonus%20amount.%22%3CBR%20%2F%3E%3CBR%20%2F%3EDid%20I%20misread%3F%26lt%3B%5C%2FP%26gt%3B%26lt%3B%5C%2Flingo-body%26gt%3B%3CLINGO-LABS%20id%3D%22%5C%26quot%3Blingo-labs-3151823%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CLINGO-LABEL%3EExcel%26lt%3B%5C%2Flingo-label%26gt%3B%3CLINGO-LABEL%3EFormulas%20and%20Functions%26lt%3B%5C%2Flingo-label%26gt%3B%26lt%3B%5C%2Flingo-labs%26gt%3B%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3C%2FLINGO-SUB%3E
Occasional Visitor

Is it just me or the interpretation of example 2 in this link is wrong? The example 2 is what is in the image below in case you don't want to click that link.

 

image.png

 

Using 1 for the Match-mode returns the position of the next largest item ($15,901) but the writer interpreted it to mean the number of occurrences greater than the specified number ($15,000).

 

This is their interpretation in quotes below:

 

"This next example finds the number of sales people eligible for a bonus. This also uses 1 for the match_mode to find an exact match or the next largest item in the list, but since the data is numeric it returns a count of values. In this case, the function returns 4, since there are 4 sales reps who exceeded the bonus amount."

Did I misread?

1 Reply

@Thursdayman 

Since the Total Sales amounts are sorted in descending order, the index of the last value greater than or equal to 15000 (the number returned by XMATCH) is also the number of Total Sales amounts larger than or equal to 15000.