Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
The system that produces the .CSV file - it would probably be easier to get the summarised data extracted straight from there. Somebody must have written that extract, get them to change it to produce what you need, or get them to write another that does what you need.
Alternatively, MS Access is probably your best bet. Sucking the .CSV data into a table will create it for you. Creating a form using the form wizard that produces totals is quite easy. The form can just be copy 'n' pasted into whatever it is you are producing. Add to that a query to purge the table of records for re-use and the job's a good 'un for next time.
I hadn't thought of using Access Richard, that may be an option although I am not as familiar with it as with Excel. The csv extract was created for another purpose which is still required so this would necessitate our system developers writing a brand new report - it may actually still come to that if I can't do what I need to do with the existing data
Originally posted by LisaContractorUmbrellaView Post
looks like this is going to be much more complicated than I thought
That's because you're using the wrong tool.
The system that produces the .CSV file - it would probably be easier to get the summarised data extracted straight from there. Somebody must have written that extract, get them to change it to produce what you need, or get them to write another that does what you need.
Alternatively, MS Access is probably your best bet. Sucking the .CSV data into a table will create it for you. Creating a form using the form wizard that produces totals is quite easy. The form can just be copy 'n' pasted into whatever it is you are producing. Add to that a query to purge the table of records for re-use and the job's a good 'un for next time.
Thanks for all the replies guys - much appreciated as usual - looks like this is going to be much more complicated than I thought and that pivot tables will be the way to go.
Originally posted by LisaContractorUmbrellaView Post
Steady on chaps
Perhaps I should clarify - if a pivot table is the only option then it will be possible to integrate it but, for many reasons, a calculation that will do what I need it to do would be much quicker and simpler. Actually if the pivot table is the only option can someone clarify whether or not it will work within a macro if the raw data is different each time (column numbers and cell fomat the same, number of rows vastly different)
As`MF says, you can use a macro on the pivot table; an alternative would be to copy the data and paste-special (as values) and then manipulate it
You say you start with a .CSV file but you don't. The .CSV file has to come from somewhere.
The start is a file or database or system which as the data you want in an unsummarised form. Someone or something extracts that into a useless-to-you CSV format.
The real solution is to get the source system changed to be able to provide the summaries and include them in a report.
Perhaps I should clarify - if a pivot table is the only option then it will be possible to integrate it but, for many reasons, a calculation that will do what I need it to do would be much quicker and simpler. Actually if the pivot table is the only option can someone clarify whether or not it will work within a macro if the raw data is different each time (column numbers and cell fomat the same, number of rows vastly different)
1.A pivot table will do the first part. No problem. If the data is from a database etc, you can link the pivot table to it without ever having to extract the data.
2. What does the macro do?
3. You can run a Vlookup against a pivot table.
Pivots, when used properly are by far the most powerful tool in Excel.
Hi MF
Basically I start with raw data in the form of a csv file which will always have same cell formats and column numbers but the rows will always be different. The raw data is then manipulated and turned into a report which is used on a daily basis. Problem is that the reports needs loads of changes made to be really useful - hence the macro. In this instance the pivot table would have to become part of the macro as it would be part of the changes required to convert the raw data into a meaningful report.
1.A pivot table will do the first part. No problem. If the data is from a database etc, you can link the pivot table to it without ever having to extract the data.
2. What does the macro do?
3. You can run a Vlookup against a pivot table.
Pivots, when used properly are by far the most powerful tool in Excel.
Leave a comment: