OK, taking the following code;
And making the range variable based on a cell (O7), this cell built off of variables and string text. It looks something like this;
I need this to replace the Sheet1!$E$1:$E$5000 in the above range. I've tried using =INDIRECT(ADDRESS(7,15)), Cell O7, with no luck. Is this the best way to go about this? What am I doing wrong??
Thanks in advance!
Ryan
Code:
=IF(ROW($A7)-ROW($A$6)>COUNTIF(Sheet1!$E$1:$E$5000,$N$7),"",INDEX(Sheet1!$A$1:$A$5000,SMALL(IF(Sheet1!$E$1:$E$5000=$N$7,ROW(Sheet1!$E$1:$E$5000)),ROW($A7)-ROW($A$6))))
And making the range variable based on a cell (O7), this cell built off of variables and string text. It looks something like this;
Code:
Sheet1!$D$1:$D$5000
I need this to replace the Sheet1!$E$1:$E$5000 in the above range. I've tried using =INDIRECT(ADDRESS(7,15)), Cell O7, with no luck. Is this the best way to go about this? What am I doing wrong??
Thanks in advance!
Ryan