Hello
Can you explain please how does =MATCH(2,1/(A1:A10="a")) enables to find last occurence of "a" ?
I mean the lookup array can be something like: {#DIV/0!; 1; #DIV/0!; 1; #DIV/0!; 1; #DIV/0!; #DIV/0!; #DIV/0!; 1}.
Then, MATCH should find the "first occurence that is <2", which is position 2. Why though it finds the "last occurence that is <2"?
Also, do you know any alternative methods to search for first/last occurence and search forwards/backwards? I know XLOOKUP has such functionality but it may not be available in the local machine.
Thanks!
Can you explain please how does =MATCH(2,1/(A1:A10="a")) enables to find last occurence of "a" ?
I mean the lookup array can be something like: {#DIV/0!; 1; #DIV/0!; 1; #DIV/0!; 1; #DIV/0!; #DIV/0!; #DIV/0!; 1}.
Then, MATCH should find the "first occurence that is <2", which is position 2. Why though it finds the "last occurence that is <2"?
Also, do you know any alternative methods to search for first/last occurence and search forwards/backwards? I know XLOOKUP has such functionality but it may not be available in the local machine.
Thanks!