Preface: I am not expert, but have been viewing the message boards, especially here for some advice on a spreadsheet I have been building.
I have a formula that will review an array (Values in E4 through E100) and let me know if it is the first time a value (In Column E) is seen and display a 1, or a repeat of a previous value, and display an "R". This is the formula that would be used in A7:
=IF(ROW(INDEX(($E$4:$E$100),+MATCH(E7,$E$4:$E$100,0),0))=ROW(),1,"R")
This works.
Now I want to use the indirect function so that I can just put in the number of rows in the array:
In Cell C1 I put in the value 100.
In A7:
=IF(ROW(INDEX(INDIRECT("$E$4:$E$"&$C$1),+MATCH(E7,INDIRECT("$E$4:$E$"&$C$1),0),0))=ROW(),1,"R")
This gives me a circular reference. It's probably obvious, but I am unsure why. Any suggestions or a better formula?
Thanks!
I have a formula that will review an array (Values in E4 through E100) and let me know if it is the first time a value (In Column E) is seen and display a 1, or a repeat of a previous value, and display an "R". This is the formula that would be used in A7:
=IF(ROW(INDEX(($E$4:$E$100),+MATCH(E7,$E$4:$E$100,0),0))=ROW(),1,"R")
This works.
Now I want to use the indirect function so that I can just put in the number of rows in the array:
In Cell C1 I put in the value 100.
In A7:
=IF(ROW(INDEX(INDIRECT("$E$4:$E$"&$C$1),+MATCH(E7,INDIRECT("$E$4:$E$"&$C$1),0),0))=ROW(),1,"R")
This gives me a circular reference. It's probably obvious, but I am unsure why. Any suggestions or a better formula?
Thanks!