MATCH("b",{"a","b","c","b"},0) returns 2
how about if I would like to have the return result as 4 since I have another "b" within that same array?
Help me out with this problem thanks.
MATCH("b",{"a","b","c","b"},0) returns 2
how about if I would like to have the return result as 4 since I have another "b" within that same array?
Help me out with this problem thanks.
If I understand you correctly, with one "b" in the array, you want the returned answer to be 2, and for 2 "b"'s, 4.
So just multiply by 2
Hi shrooms,
Not sure but try this formula:
you can change the criteria by changing the letters in the formula that are in red to suit your need.![]()
=MATCH("b",{"a","b","c","b"},0)+IF(SUM(IF({"a","b","c","b"}="b",1,0)) <= 1, SUM(IF({"a","b","c","b"}="b",1,0))-1, SUM(IF({"a","b","c","b"}="b",1,0)))
Corine
ermm.. what I meant is that I would like the MATCH function to trace my second matched token which is "b" at the 4th position of the array instead of the first matched token that is at the 2nd position.Originally Posted by robert111
If the lookup value ["b"] is in A1 and range to search is D1:D4 then to find the position of the nth match
=SMALL(IF(D1:D4=A1,ROW(D1:D4)-ROW(D1)+1),n)
confirmed with CTRL+SHIFT+ENTER
Because of the ctrl + shift + enter. im not able to apply that formulae into another formulae.. how may i bypass ctrl + shift + enter ?
=INDEX(B:B,SMALL(IF(B2:B22=B6,ROW(B2:B22)-ROW(B2)+1),VALUE(X2)),0)
I'm not sure you can, easily.Originally Posted by shrooms
Why can't you use CTRL+SHIFT+ENTER with the INDEX formula?
Perhaps explain what you want to achieve, exactly
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks