Automating copy and paste of subtotals to new sheet

F

ft88plc

Hi everyone,

Have about 240,000 lines of CSV. Column A can have duplicates and is
the key. Can import about 65,000 rows at a time into excel, to deal
with the maximum # of rows, but if I try to subtotal then it breaks the
limit.

What I want to accomplish is:

All rows are sorted by Column A first.

For each set of rows with the same values in column A, sum columns D,
E, F, G, H, I, J. Then take the value in column A and the subtotals
above, and populate a single row on a new sheet with these values .
Then repeat the exercise, starting with the first row that contains a
different value in Column A.

This way I hope to accomplish getting round the ~65,000 row limit
described above. My VBA knowledge is a bit sparse and I am having
difficulty especially with the row and cell selection within the
conditional loop. Any help would be appreciated.

Thanks in advance,

Paul
London
 

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

Subtotals 2
DELETING SUBTOTALS FROM A COLOMN 1
Recalculating Subtotals 2
Subtotals for printed sheet? 3
Subtotals every "X" number of rows 3
Copy & Paste 2
Calculating subtotals 22
subtotals and sorts 1

Top