Using Variables in the sum() function

  • Thread starter Thread starter Roy Korb
  • Start date Start date
R

Roy Korb

I export Quickbook reports to Excel spreadsheets they are of various
nnumber of columns and various number of rows. I want to use macros with
variables in the =sum() functions rather than the hard cell address. Is this
possible and if so how do I do it?

Thanks

Roy Korb
 
Use a dynamic range

=SUM(OFFSET($A$2,,,COUNTA($A:$A)-1,COUNTA($2:$2))

will sum from A2 across and down.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

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

Back
Top