
Originally Posted by
XOR LX
Ok, so assuming you just manually input "N/As" in your first row, this array formula** in G2:
=IFERROR(ROWS($1:2)-1/(1/(MAX(IF($A$1:$F1=A2,ROW($A$1:$F1)))))-1,"N/A")
Copy across and down as required.
Regards
**Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
Bookmarks