Assistance with manipulating a large file.

skipwith

New Member
Joined
Sep 19, 2006
Messages
6
Hi board

I have a spreadsheet with 1000's of records in the format :-

Date Job Ref Count
01/09/2006 JOB2 3,500
01/09/2006 JOB2 10000
01/09/2006 JOB2 100
01/09/2006 JOB3 10
01/09/2006 JOB3 100

Could you tell me how I use VBA to insert a line when the Job number changes and then total up by Job Ref & Count in each line break?

Any assistance would be gratefully received!!
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
I'm not great with vba yet so I record alot of macros. I would record a macro that would use auto filter to sort for the conditions then insert a line and in the desidered field use auto sum to get the total.
Tyler
 
Upvote 0
Hi,

Thanks for the reply. I have attempted this with Macros but have been unable to complete it (Mainly because the file changes during each refresh).

I'm looking for a solution that VBA could offer.

Thanks for your suggestion though!
 
Upvote 0
I'm not great with VBA either, but what you're looking for seems like a perfect fit for SUBTOTALS. Check it out and let me know....

Juan
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,202
Members
448,554
Latest member
Gleisner2

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