I tried the solutions from this question but couldn't get it to work.

If C1:C5 = { 1, 1, 1, 2, 3 }

And B1 = 1

How can I return a reference to the last value of B1 (1), in this case, "C3" on Google Sheets?

2 Answers 2


This returns the row number of the last occurance:

=ArrayFormula(max(if(C1:C5=B1, Row(C1:C5))))

enter image description here


This works, as explained in an answer to the question you refer to:


It returns $C$3 for your example.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.