Macros for sumif and changing range

G

Guest

I hope someone out there can help!
I want to write a macro that performs the sumif function on files in which
the range changes from worksheet to worksheet. Each worksheet that contains a
variable number of rows. At the end of the worksheet, I would like to have a
macro to sumif column L through column Z (dependent on column A). One
worksheet might have 15 rows and another might have 300 rows. The criteria in
column A is text and column L through column Z is numerical : it is the
number of rows that change.
 
D

Dave Peterson

Why not just use the whole column?

And if you put the totals at the top (row 1), you can use row 2 to 65536.
 

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

Top