When text variable is entered (or chosen by data validation?) into cell I want formula in cell above to look up next previous occurance in same column and give cell address of that previous occurance.
Example:
"Apples" is entered (or selected by data validation) in A2, A6 & A10.
"Pears" is entered in A4 & A12.
Cell A1 would return blank (no previous "Apples")
Cell A3 would return blank (no previous "Pears")
Cell A5 would return A2 (previous "Apples")
Cell A7 & A8 would remain blank (no entry in A8 to look for so no output in A7)
Cell A9 would return A6 (previous "Apples")
Cell A11 would return A4 (previous "Pears")
Additional info:
I prefer formula search for any variable entered in cell below rather than contain the actual search words ("Apples", "Pears").
Also, eventually I'll want to continue looking back to previous worksheet (previous year of data) so first occurance on active worksheet would not be blank (unless variable never occured in that column on any worksheet in workbook).
Bookmarks