Indirect Row reference from another sheet

gruntingmonkey

Active Member
Joined
Mar 6, 2008
Messages
434
Office Version
  1. 365
Platform
  1. Windows
I have this calculation that I can not seem to get to work. I have a cell on the page with the last row (Cell B17 with a value of 20)

Original:
=SUMIF('Line Detail Data'!E14:E20,"<>""",'Line Detail Data'!A14:A20)

My poor attempt:
=SUMIF('Line Detail Data'!E14:INDIRECT("E"&B17),"<>""",'Line Detail Data'!A14:A20)

If I can understand that first bit, I can then apply to the rest of the working.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Try
Excel Formula:
=SUMIF('Line Detail Data'!E14:index('Line Detail Data'!e4:e1000,B17),"<>""",'Line Detail Data'!A14:A20)
 
Upvote 0
Thanks for this Fluff.

This kind of negates the issue as E1000 doesn't go far enough down the sheet. There's roughly 50k lines. If I put the 100 to 100,000 it works but I'm worried if the data ever exceeds100k lines that it wont automatically update. Essentially the data in cell B17 is the last row used in column A.
 
Upvote 0
f I put the 100 to 100,000 it works but I'm worried if the data ever exceeds100k lines that it wont automatically update.
Then make it 1,000,000, IMO you should avoid indirect as much as is possible.
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,111
Messages
6,123,159
Members
449,098
Latest member
Doanvanhieu

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