George
Member
Hi All,
Nice little challenge for you all (I can solve this with VBA, but it would be interesting to see if there's a formula solution to it).
What I'm looking for is a formula to find the row containing the first instance of a value in an array, so if I were looking for "Two" in the following array:
I would get 3 for the first instance and 4 for the last.
I presume it would be some combination of MIN(), MATCH() and array formula, but I can't quite figure it out.
Any pointers would be great (although as I said, the macro route is probably smartest really).
Thanks,
George.
Nice little challenge for you all (I can solve this with VBA, but it would be interesting to see if there's a formula solution to it).
What I'm looking for is a formula to find the row containing the first instance of a value in an array, so if I were looking for "Two" in the following array:
Code:
1, seven, twelve
2, 2, 2
Two, 3, 4
Three, Two, Two
I presume it would be some combination of MIN(), MATCH() and array formula, but I can't quite figure it out.
Any pointers would be great (although as I said, the macro route is probably smartest really).
Thanks,
George.