Referring to a range with variable rows

  • Thread starter Laurence Lombard
  • Start date
L

Laurence Lombard

In the array formula below I would like to have row 5043 variable - it
should be the last row of the range. I can create a Named Range called
LASTROW = COUNTA("Cash Bks"!$A:$A) [column A contains reference numbers}
How can I use this in the formula: =SUM(('Cash Bks'!$J$3:$J & LASTROW...
does not work


=SUM(('Cash Bks'!$J$3:$J$5043=B8)*('Cash Bks'!$K$3:$K$5043=$D$3)*('Cash
Bks'!$G$3:$G$5043))


Thanks
Laurence
 
J

Jim Rech

Perhaps a better way to do this with a variable is to use the OFFSET
function. A simple example would be:

=SUM(OFFSET(A1,,,COUNTA(A:A),1)*C3)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top