I need some INDIRECT - ADDRESS help

low98

Board Regular
Joined
Dec 21, 2004
Messages
116
OK, taking the following code;

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
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
book2
ABCD
1a1A1:A7
2b5B1:B7
3a1a
4b5
5a1
6b54
7a1
Sheet1


<ul>[*]D7 =SUMIF(INDIRECT(C1),C3,INDIRECT(C2))[/list]
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,843
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top