Phil --
I reckon n1 is a number (and is probably in some cell).
If I'm understanding you correctly, the following formula entered in U28
=SUMPRODUCT(MAX((I1:I27=6)*ROW(I1:I27)))
where n1 can be a number or cell ref that contains that number (if it's text, it's OK for it to be in a cell, otherwise you need to place it in between double quotes in the above formula), will give you the row number of the last cell of interest being equal to n1. And,
=ADDRESS(=SUMPRODUCT(MAX((I1:I27=6)*ROW(I1:I27))),9)
the address of that cell.
Hope I understood it as you intended.
Aladin
==========
Phil --
The last formula has an extraneous "=", slipped in by copying and pasting no doubt. It should be:
=ADDRESS(SUMPRODUCT(MAX((I1:I27=6)*ROW(I1:I27))),9)
Aladin
=====