Subtotal Rows & Summary Report Of Dynamic Table

Dec 1, 2008

writing a VBA to convert a set of data in sheet 1 to one in sheet 2(I am enclosing that as a Excel document"Test -Original").I have described what needs to be done ( step by step ) below.

Develop a macro
1. I have a report from SAP BW, the original format of which is in sheet 1.I need to develop a macro using VBA and need the report with the format in sheet 2.

2. I need a “Results “row after every Bill to Party in column A as below(screen shot 1.doc):

The number of customers is dynamic i.e.it keeps changing every month

4. Nothing needs to be done to column.SAP BW will not overwrite the format and the data in column G.Hence leave it as it is.

5. Calculate the number of Sales document numbers for each customer and put the value of 1 for every value. If it is blank it should not be counted and put the value of 0 for those rows. (Shown below) Display the sum of the number of sales document numbers in the results row for column H

6. In the column I, put the value of 1 if the difference column (column G) is 0 and put the value of 0 if the value in the difference column (column G) is any value apart from 0.now sum the value in the results row for each customer and display the summation value in the results row under column I

7. Compute the percentage which is the values in (column I/Column J)*100 .This should be done only for the results row

View 9 Replies


ADVERTISEMENT

Summary Report Of Dynamic Table Data

Nov 10, 2008

I am interested in finding vba code that I can enter as an add-on for a weekly training report that I receive.

An example of the weekly report is attached. A Computer based training program populates the reporting tool with the date that the course was completed. Each week a report is generated as attached with the dates completed filled in the matrix.

The goal is to: Report the total percentage of training completed. I would like to be able to run a vba add-in that will determine what rows have entries. Perform a countA on the date fields. Sum the counta's and populate a cell with the % complete. In one simple touch of a button or keyboard function that can be ran each week without editing the code. These reports are filtered by department and the size of the matrix change all the time.

The hang up I am having is making the code dymanic enough to figure out what cells are filled and calculate and populate by that factor.

View 9 Replies View Related

Create Summary Report Of Table

Sep 14, 2007

I use a specific report on a daily basis which is attached here. Is it possible that that report is generated automatically in the same sequence of rows once the data is updated in another sheet. I am not good in VBA so looking some built in function. I have tried the pivot but all the formatting and design of the report is changed. use the Template wizard with data tracking is used is the above exercise is possible. Is there any other better methord is available in excel. Is there any good web site availble to learn these things.

View 2 Replies View Related

Summary Report Sheet From Data Table

Apr 30, 2008

I'm going to try to explain this as accurately as possible. This is my first post, and I'm seriously struggling with VBA, but i'm confident that someone out ther will have done this before.

I have a single workbook which has a single datasheet, and further sheets representing different months of the year.

Sheet 1 ("Data") contains the following columns and data:

DateStart MileageEnd MileageBusiness TripBusiness Mileage
01/05/2008013 get 13
02/05/200813260
03/05/200826100 euro 74
04/05/2008100113 adf 13
05/05/20081131130
06/05/20081131130
07/05/20081131238 alex begg1125
08/05/2008123812510
09/05/200812511288 service 37
10/05/2008128812980
11/05/2008129813110
12/05/2008131113780
13/05/2008137814000
14/05/2008140014560
15/05/200814561490.10

I then have a series of Summary sheets which are supposed to summarise the data on this single data sheetl. But this is where I have issues.

Basically, from the list of data above (running from 1st may 2008 - 31st December 2008), I want to pull out, per month all of the trips in that month. So for May (shown above) I need the date, business trip name, and the business mileage where the business trip name <> "".

To compound the issue, the columns that these are moving into are columns 1, 2 and 6 in the summary spreadsheet.

I have used some example code from cpearsons website to give me a list of nonblank cells in the Business Trip column, and this has worked, but I can't pull the other two columns out effectively.

View 4 Replies View Related

Report On Date Period And Subtotal

Feb 18, 2008

I have attached a sample of my spreadsheet to use as a reference. I suggest you open that up and give it a look through to get an idea of what's going on.

What I'm looking for is a way to create a report (the quickest and easiest way of course, as always) which will give the total for the columns 'Exit Weight', 'Net Weight' and 'Entry Weight' sorted by each company between the periods of the 25th of each month to the 24th of the next month (the Dates are in Column A obviously)

Below is an example of the output I am looking for:

Company: Period: Exit Weight: Net Weight: Entry Weight:
EASTWELL HA.. 25/10/07-24/11/07 102.2 124.3 200.14
25/11/07-24/12/07 143.7 185.2 250.18
25/12/07-24/1/08 ... ... ...
BOURKE TRANS.. 25/10/07-.... ... ... ...

the totals for the Exit Weight, Net Weight and Entry Weight are not the actual totals, they were just put in to give you an idea of what I'm talking about.

And on and on. If there is a way to automate this with Excel VBA and some sort of code that you could give me to plug into my spreadsheet I would be very appreciative. I understand this is a bit complicated and would probably require a few steps so if don't get the answer I'm looking for I'll probably find a way to split it into steps and then ask the questions seperately.

View 3 Replies View Related

Summary Report

Apr 30, 2009

I'm working on some homework for a CIS class, that is pretty straight forward...except I don't know how to make a summary report in excel.

View 9 Replies View Related

Summary Report Using VB Code

Dec 1, 2006

I have a report that I need to summarize, here is some sample data.

Dealer CodeParticipantModules
F23CH ROB MASSON10
F23CH ROB MASSON7W
F23CH ROB MASSON8
F23CH ROB MASSON9
F32C5 JOHN COUTTS16
F32C5 JOHN COUTTS17
F32C5 JOHN COUTTS21
F32C8 SCOTT PLAKHOLM7
F32C8 SCOTT PLAKHOLM7S
F32C8 SCOTT PLAKHOLM7W
F32C8 SCOTT PLAKHOLM8

Desired results would be column A Dealer Code, Column B Particpant, Column C a summary of Modules taken, Column D a count of Modules

Ex:
F23CH Rob Masson 10,7W,8,9 4
F32c5 John Coutts 16,17,21 3
F32C8 Scott Plakholm 7,7s,7w,8 4

Is there a easy fix using VB code? The report is usually between 1500 lines and 2000.

View 11 Replies View Related

Summary Report Of Workbooks

Jul 17, 2007

I have been asked to create grand summary workbook that basically copy and paste from a few workbooks in different folders location in a network drive in this grand summary. The sheet to copy from these other workbooks is named as "summary" and the location and filenames are as follow:

P:Section 1RegisterNorth.xls,
P:Section 2RegisterSouth.xls,
P:SectionRegisterEast.xls

The data can be found from A7 to R7 downwards in the "Summary" sheet tab in each of the workbook above.

The data are updated every week and as such I hope to have a macro create to first clear the old data and update the new data.

View 9 Replies View Related

Summary Report By Heading

Jan 3, 2008

I have the following example:

Math Science Biology
A Dave Pete John
B Mary Cate Dave
C Jack Dave Bob

How can I have excel give me all the subjects as well as classes that Dave teaches ie. Math(A), Biology(C) and Science(B)

View 4 Replies View Related

Statistical Summary Report

Feb 11, 2008

columns A,B and C contain the details of each event(race).Column d is the runners in each event and column E a score for each runner. I need to add 5 extra columns with the total score for each event,the maximum for each event,the average for each event,the meadian for each event and the standard deviation for each event. I need all cells filled. see attached spreadsheet. I will have thousands of events.

View 6 Replies View Related

Generate Summary Report From Range

Aug 16, 2008

I have a spreadsheet of website stats showing the number of visitors to all the domains and aliases we use for company websites. Each domain or alias has its own unique row of data. The data is in the order of most visitors. I have attached a simplified and anonymised example of the data in worksheet "stats". In real life this sheet runs to several hundred rows.

As you can see if look at the worksheet "domain key", each of our websites has more than one domain or alias pointing at it - these are reported separately by our stats package.

What I want to do is find an easily sustainable way of generating a summary report each month, such as you can see on the worksheet summary, which will give a total number of vistors for each site calculated from the visitors to the various adresses each site uses.

What I have done so far is use a very long SUMIF function, e.g. to find all visitors to the FR site the function reads:

=SUMIF(stats!A2:A16, "www.companyname2.fr", B2:B16)+SUMIF(stats!A2:A16, "www.othername.fr", B2:B16)

This looks OK in the example above but in the real data we have in some cases over a dozen domains pointing to one site and its very messy and hard to maintain.

What I would prefer to do is something that would use a range of data for the criteria rather than a specified string e.g.:

=SUMIF(stats!A2:A16, domain_key!C2:C16, B2:B16)

Obviously the straight SUMIF function won't do this. The advantage to this approach is that it would make the ongoing management of which domains are counted for each country a lot simpler as I could just edit the data in the domain_key sheet rather than having update the functions.

Some issues to be aware of are:
The order of data will change each month so youcan't guarantee that each address will be in the same row every monthThere isn't a pattern to the addresses that would allow you to use any kind of wildcard, e.g. you can't say all addresses containing "companyname" are the UK site and all addresses using othername are the French site. Similarly, you can't say all the french site addresses end in .fr - some countries use .com

View 9 Replies View Related

Summary Report Of Multiple Sheets

Sep 19, 2007

I have a project that is quickly growing out of control.

I workbook made up of 14 worksheets. Oct - Sep, Summary and main.

I have been entering all my data in main, which is A - AB. Various types of data, dates, dollars, names, etc. I have been trying to sort the 'main' worksheet into the separate months based on a date in column B.

For example if the date in column B is 1 Aug, I would like the entire row copied to Aug 07 worksheet. Then in Aug 07 worksheet is the formulas to calculate the data needed for Summary page.

Pretty simple, except I cannot get it to do that. I have tried to pivot, auto sort, and a few various VBAs to no avail. One of my Googles turned up this site and many pointers have been found and are close, but most are focused on combining. The workbook is a tad over 1mb so I did not post it yet, but can if needed.

View 9 Replies View Related

Summary Report By Month Of Traders

Apr 7, 2008

Not sure if this is possible. From the attached spreadsheet (reduced to only 2 worksheets), i'm trying to create a formula that will find how much an individual trader made for the month (worksheets 1-31 being a month). The problem is a trader will not be at the same stall everyday and may pay by either cash or cheque.

View 3 Replies View Related

Automatically Create Summary Report On Another Sheet?

Jun 21, 2014

I need to create a summary report on another sheet, but it is beyond my capacity.

View 9 Replies View Related

Summary Timesheet Report From 52 Weekly Sheets

Mar 8, 2008

i have daily time sheets that make up a week and have 52 sheets for each week...there are contract numbers and contract ticket numbers that i want to use as criteria to sum the total hours of each day and export the data to a sheet that will keep a running total of all hours booked to those contract number and contract ticket number over the coarse of the year as i fill out the weekly time sheets.

View 4 Replies View Related

Summary Report Of Shares Bought And Sold

Apr 6, 2008

A worksheet called "purchases" contains the list of shares purchased during the period 1.4.5 to 31.3.8. It has four columns :

1. Date
2. Name of the share (name is repeated for every new purchase as it is entered in a new row and is totally independent of the earlier entry of purchase)
3. Qty
4. Sale price

Likewise there is a sheet for sales also. I want to do the following:

a) Find out all the records showing purchases of a particular share and add them up (both quantity and value). And thus, make a list of shares showing aggregate purchase of each share during the entire year. Likewise, I want to do this for sales also.

b) For every share that has been sold within one year after its purchase, apply 20% tax on the profit earned on sale of such share.

Additional information: If 100 shares of A Ltd are purchased on 1.4.5 and 200 shares on 1.5.5 then during the sale of 150 shares of A Ltd on 2.4.6, 100 shares purchased on 1.4.5 and 50 shares purchased on 1.5.5 shall be deemed to have been sold.

View 5 Replies View Related

Updating Summary Report Automatically From Existing Data Using VBA

Dec 20, 2013

How I could generate a report using a Command Button. I have a spreadsheet that contains data in columns, some of which I want showing up in the summary report. Any new data entered should be updated in the summary report when I hit the command button. Existing data in the original spreadsheet does not get erased or written over.

So basically, I have data in column range A:R in Sheet 1. Columns A, D. E, F, G, I, J, P, and R need to show up in the report on Sheet 2. I already have 150 rows of data in sheet 1, so i don't want to start over. So I need to copy the relevant columns, and update the report with any new data that gets entered in the columns in Sheet1, in the next empy row.

I have some vba code that copies individual cells, but I don't know how to do it for columns and for new data.

View 4 Replies View Related

Dynamic Rows For Pivot Table

Nov 16, 2006

I wish to create a Pivot Table. It is based on source data with fixed columns (A to W) and dynamic rows. The following is my

Dim WS As Worksheet
Dim DataRange As Range

Set WS = ThisWorkbook.Worksheets("sheet1")
DataRange = Range("A1:W1", Selection.End(xlDown)).Select

ThisWorkbook.PivotCaches.Add(SourceType:=xlDatabase, SourceData:=WS.Range(DataRange)).CreatePivotTable _
tabledestination:=Sheets("sheet2").Range("A1"), tablename:="PivotTable1", defaultversion:=xlPivotTableVersion10

Dim PT As PivotTable
Set PT = ThisWorkbook.Worksheets("Sheet1").PivotTables("PivotTable1")
PT.PivotFields("Type of Work").Orientation = xlPageField
PT.PivotFields("Profit Center").Orientation = xlRowField
PT.PivotFields("B/(W) CTD Net Rev").Orientation = xlDataField

Because I'm going to use it in my work, it must be reusable. And every time I use it, the numbers of row are different. Therefore, I made the source data into a dynamic range. The range changes when rows change. However, problem always appears in the following line:....................

View 2 Replies View Related

Dynamic Range For Table With Unequal Used Rows In Column

Feb 19, 2008

How would I select a dynamic range in VBA without using name a range in Excel. I have searched for possible answers, however they use xldown, or xlup which works great for non-empty cells. My problem need to select the area where there are empty cells. Here is a snap shot of the data looks like:

Trade Date A B C D E
2008-Feb-11 450,432
2008-Feb-13
2008-Feb-15

The cell with number is where I got the formulas. Now i wish to fill that formula with the rest of the area. However, the problem is the number of rows and number of columns may change in the future. So I need to select those empty areas in a dynamic way.

View 5 Replies View Related

How To Use Subtotal With Dynamic Range In Macros

Oct 30, 2011

How I can incorporate dynamic ranges in a Subtotal function when creating a macro? The raw file always has a different amount of rows. I already tried to record the function with relative references but when I look at the VBA code I get something like this:

ActiveCell.FormulaR1C1 = "=SUBTOTAL(9,R[2]C:R[34]C)"

A fixed starting cell and a variable ending cell is that possible with Subtotal?

View 3 Replies View Related

Delivery Report Summary - Monthly Total Sheet On 4 Individual Weekly Sheets?

Mar 3, 2014

We have a weekly "On-Time" report that shows early, late, on time, or no data. Each week has a total percentage of early, late, on time, or no data deliveries. I now need a monthly total on a seperate worksheet, but for some reason I can not get the percentages to total correctly. I am attaching the spreadsheet.

View 3 Replies View Related

Dynamic Summary To Add Data From New Sheets

Jun 3, 2007

I have a workbook in which a userform pops up which I use as an assessment form on my fitters. It goes through a series of questions on then when the submit button is clicked a sheet is added to the workbook which is named with the fitter's name and the current date - all this works fine...... what I now need to do is to create a summary page which will include basic information from each sheet in the workbook, bearing in mind that new sheets are constantly being added to the workbook.

View 9 Replies View Related

Creating A Dynamic Report Tab

Mar 12, 2009

I am trying to generate a good looking, dynamic report tab that runs off another tab that contains ugly raw data for website traffic. This should then drive a couple of charts based on the parameters I specify.

The Raw Data

This is daily data for keywords that we advertise on through Google. Associated with each keyword are various fields:Clicks
Cost
CPC (Cost divided by clicks)
Quotes
Sales
CPQ (cost divided by quotes)
CPS (cost divided by sales)
CTQ (quotes divided by clicks)
QTS (sales divided by quotes
CTS (sales divided by clicks)
Avg Pos

There are maybe 30 keywords - each with daily information for the above fields.

The layout of the raw data is:

Column A: Date
Column B: Keywords
Column C: Clicks

and so on.......

The Report

This is the nice looking report where we can pull in the required bits and bobs in a nice format. Because some of the above fields are calculations I've not been able to achieve what I need using a normal pivot report.

What I would like to be able to do:

Populate a summary report using the above raw data but be able to specify certain things such as:The date range I want to see data for
The specific keyword(s) I want to see data for

For example v- we are feeding the daily information into the raw report each morning. One day I might want to see summary stats for a particular data rang on maybe 3 of the keywords so I'd somehow like to select appropriate date ranges and keywords from drop down lists and then I see the summary stats for the appropriate date range broken down by each keyword.

I'd also like a total underneath this report to add up or calculate the totals and averages for the data based on the parameters I specify.

Finally, given all of the above, I would like to run a dynamic chart based on the raw data but taking into account the filters I specify on the slick report sheet.

So....if I set the date range as From: 01/03/09 to 12/03/09 I can see daily clicks, costs etc for the particular keywords I specify in the drop-down menu or what-have-you

View 14 Replies View Related

Need To Build Up One Dynamic Report

May 28, 2009

I need to build up one dynamic report.

Here is the task:

1) Everyday workers fill up with records in each sheet (record count can be different, because there is a "List" table)

2) Each day is in one separate sheet (for example: 1st June is in sheet with name 1, 2nd June is in sheet with name 2 .)

3) ALL sheets are named 1, 2, 3 ... 31

4) And in the sheet with name "ALL records" must be generated all records from sheet 1,2, ... 31

Here is my Example

View 9 Replies View Related

Dynamic Report By Criteria

Mar 26, 2009

Right to the point. I got two sheets in my file, one named "Order" and one named "Input". In the input sheet there is costs & revenues divided into several different divisions/activities. In column A I got the name of the cost/revenue and then the value for every period Jan-Dec in columns B-K. And the name of the activity is in column A under the cost/revenus for that activity, like a " SUM" row.
Now, in the the "order" sheet, you can select a specific activity from a rolllist and then I want that activity's revenues & cost to be shown. I've attached the file to make it easier for you guys to understand my needs. I think I need some sort of 2 criteria VLOOKUP, that is first search för the correct division, once this is found search for the different costs & revenues and the return a value. But I'm not so good at this so I can't get it to work. Maybe the INDEX function is good here but I don't get that at all. I tried Daves "2 criteria Vlookup" but all I get is #ERROR.

View 4 Replies View Related

Create Database Table From Multi-Column Summary Table

Nov 5, 2008

I want to accomplish something like this but slightly different:

[url]

I have the same issue but a bit more complex. In my case I have an additional amount of columns (let's say dimensions). So for the example given (sales per month) I would add two columns for 4 different regions and 5 machine types (just examples).

The output (that would serve as pivot tabel input) would then have to be a 4 x 5 x 12 x 4 = 960 row database table.

I have tried to accomplish it by customizing the given code but that provedto be beyond my powers ;o)

and some 3rd party software [url]and [url] but non of them is doing what I'm looking for.

The code I'm looking for ideally would count the number of columns and unique records per column and construct the database table from that. So I am looking for flexibility in the number of dimensions also...

View 6 Replies View Related

Dynamic Summary Which Updates As Sheets Added

Oct 19, 2007

I created a macro that inserts a new worksheet to my workbook and formats the sheet when I push a button on a summary sheet. Everything works except I also want the macro to link information from the new worksheets (formed by the macro) to the summary sheet. But I want to same information from the same cell on each new worksheet to be put into a different cells next to each other on the summary sheet but I don't know if this is possible.

View 4 Replies View Related

Create Summary Page From Dynamic Database Pull

Mar 8, 2013

I am currently pulling information from a database into Excel. In column A is a list of dates that vary depending on how many days I decide to pull. On any given day there are options to which car will be driven and it is random and there are attributes associated with that drive such as below. If the car was not driven the data pull inputs "No Data" or a "0". On any given day up to three cars can be driven but it is still possible that only one will be driven. This is shown in the second table below. I'd like to be able to create an automated summary table such as the first table below. The summary table should be organized by date and show what cars were driven and their attributes. I know this seems simple but in reality I have six different cars and up to 10 attributes for each car and will be pulling months at a time. The only thought I have had is to do a for loop that checks every individual cell but I am not sure how to implement that.

Car
Miles
MPG
Car
Miles
MPG
Car
Miles
MPG

[Code] .....

View 1 Replies View Related

Convert Detailed Table Into Summary Table

Nov 2, 2009

I have received a database containing listings of products and their sales, by month (see left side of attached file). What I actually need is to have this table converted (transposed) into a “flat database” which I can later manipulate with a pivot table (see desired output on the right side of the attached file). In the attached file I have drafted the desired output format of 1 line from the raw table, which I would like to get.

What I am looking for (if I might be so bold and ask) is a macro that will allow me to have a simmilar result for ALL the lines (there can quite a few). I think this output format can be achieved with a few simple loops, probably nested, but unfortunately I was not able to find the right sequence (being a novice in VBA).
I have tried to find the answer here, between all the posts regarding “transpose” but couldn’t find something that looked (to me) as containing a relevant solution.

View 2 Replies View Related

Subtotal Of Data Table

Dec 27, 2007

My data sheet is attached for reference. The yellow cells show the end result I'm aiming for.

After each change in "NAME", I have inserted 2 blank rows. In the first blank row, column A, I want the text "ENDTRNS". In the second blank row:

column A - "TRNS"
column B - "Bill"
column C - reference the cell below
column D - "Accounts Payable"
column E - reference the cell below
column F - sum the next cell down to the last cell before the next blank row (sum range size will vary)
column G - reference the cell below
column H - reference the cell to the left
column I - "Y"

Then search out the next set of 2 blank rows and repeat, all the way down to the last set of blank rows.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved