Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Return the index of the last item in a text column in google sheets

$
0
0

I have a spreadsheet with a column with a list of text strings in it:

A1:A6 = {"apples", "pears", "oranges", "oranges", "pears", "apples"}

I want to get the index (row number) of the last matching item for my search string. So if I search for "apples" I want to get 6, and if I search for "oranges" I want to get 4.

I've tried MATCH with search types of 1, 0 and -1, none of which work (I think because the data is not sorted?).


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>