Summary Count Of Numbers In Table
Feb 6, 2008
I inherited a spreadsheet with a table which summarizes counts based on values in columns from another sheet. For example:
BrownWhiteMulti
Dog326
Cat65
Fish479
The numbers are derived from the second sheet, which displays 1 in Col P for every value of Dog in Col B, 1 in Col Q for every value of Brown in Col C, etc. Col A contains the names of animals. So, in the above matrix the formula for Brown Dog is sum of all 1s in Col P + 1s in Col Q. In another sheet, I would have like Brown Dog in row 1 with all the names of brown dogs going across the column, Brown Cat in row 2 with the names next to it, showing the details behind each number.
View 2 Replies
ADVERTISEMENT
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
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
Dec 5, 2012
What exactly do I want to count?
I want to count how many unique serial numbers there are for a particular production error?
For example
Column A = Serial Number (which is too many are same) so won't the duplicated.
Column B = Error Message "Error"
Which formula can count's how many serial with error was encountered on the summary sheets.
View 3 Replies
View Related
Jan 10, 2008
I need to calculate the lookup value that have more than one...
I want to hav a simple analysis on likert scale
I hav students from 3 (or more) institute (A,B,C). 3 survey questions...
How to calculate how many students form each institute that score 1/2/3/4/5 (base on the likert scale, maybe up to 10) for every single question (in my sample worksheet, i named it as Item1, Item2, Item3 as a sample questionaire)
View 5 Replies
View Related
Aug 11, 2013
i've got a table that i'd like to use as the source to a new table derived from it, by pulling certain data depending on the value in a given column. for example, if the data in column 3 of a given row has a '1', i want that row to be included in the derived table, and not included if not.
EXAMPLE:
source table
1 apples 1
2 oranges 0
3 pears 1
4 cherries 1
5 lemons 0
6 limes 0
7 peaches 1
derived table
1 apples
3 pears
4 cherries
7 peaches
some info about the situation, and rules to use-
- i don't know beforehand what the data in the source table are
- data in the source table will change from week to week, so i have to use a general solution
- i know that there's a maximum table size for both the source and derived tables [600 rows and 300 rows, respectively]
How to do this just by using excel functions, w/o resorting to vba? i've tried various permutations of formula expressions using MATCH(), INDEX(), CELL(), and ADDRESS(), but i keep getting #REF! and #VALUE! errors and how to proceed.
View 4 Replies
View Related
Mar 19, 2009
1. Count of Unique Print Customers
2.Total of Print Revenue
3.Count of Unique Online Customers
4.Total of Online Revenue
5.Count of Customers advertising in both Print and Online
6.Total Online and Print Revenue
View 9 Replies
View Related
Jan 4, 2008
In my spreadsheet I have several columns and I have written a formula that has two conditions. If these are met the result is counted. However I want to add another condition. I need to write a formula that displays information relating to the conditions in a cell if the other two conditions are met. For Example, if the formula picks out that a row has the word 'John' and has the a number between 1 and 14 it will copy the inputted data at the beginning of the row.
View 6 Replies
View Related
Mar 5, 2008
I have a sheet with a top to bottom date/chronological list of Horse races arranged so;
Column 1 Column 2 Column3 Column4
Date/Time Race type Empty Horse Name
e.g
01/03/2008 12:30:00 1m stks Mad Robber
01/03/2008 12:30:00 1m stks Don't Run
01/03/2008 12:30:00 1m stks Laughing boy
etc
Then next race
i'm looking for a Macro that will add up the number of horses in each race and enter the number for a given race in Column 3 for each horse in that race. So the example above would become;
01/03/2008 12:30:00 1m stks 3 Mad Robber
01/03/2008 12:30:00 1m stks 3 Don't Run
01/03/2008 12:30:00 1m stks 3 Laughing boy
Then next race down the list;
01/03/2008 12:40:00 2m gtd 1 Walk fast
etc
View 6 Replies
View Related
Apr 2, 2007
I am trying to populate values in a summary table using Vba. Details as per attachment.
View 7 Replies
View Related
Dec 10, 2013
I am trying to make my excel sheet more robust to get data on weekly basis. I assign tasks to different members of team by entering the assigned date in column next to the member names. Next week, say on Monday, I need to get total number of tasks assigned for each of the members till Friday (last working day of previous week!). I need to get this data every week.
View 8 Replies
View Related
Feb 14, 2012
I'm trying to insert the counta formula in the sheet "summary". The number of rows in the spreadsheet will sometimes change which is why I'm using the End(xlDown).Select feature. The end goal is for the code to insert the COUNTA formula for each column in the summary spreadsheet, and at the bottom.
Code to insert formula into bottom of Column A:
Range("Summary").Select
Range("A1").End(xlDown).Select
ActiveCell.Formula = "=COUNTA(Range([A1],Range("[A1].End(xlDown)")))
View 3 Replies
View Related
Aug 30, 2013
I have a tab (All Data) full (column A - S) of daily data, the date is in column A, there's a unique identifier is in column D. The daily data can be repeated multiple days. I need to remove the duplicate data for the unique identifier for the week. I'm having problems with the removal of the duplicate data. This is what I currently have for the weekly (2nd week of the year) data totals:
=COUNTIFS('All Data'!A2:A1100,">"(A2),'All Data'!A2:A1100,"
View 8 Replies
View Related
Jan 14, 2010
I have a list of dates in Column A, with a list of associated values in Column B. I'd like to create a small summary table that will give a count of the dates in Column A and a sum of the values in Column B, broken into a bucket for each day of the week.
I know how to create this table using a short macro that would loop through the list of dates, but if possible I'd like to calculate the values using worksheet formulas so that
I don't have to run the macro each time another set of data is added to the list.
View 9 Replies
View Related
May 27, 2009
I have a report of 1200 plans (approx 2000 rows). Attached is just a small example of data that comes from the report. There are 3 plans in column B (Plan X, Y, Z). I want one row of data for each plan with the plan roles and Employee ID filling those roles listed horizontally instead of vertically. It is only the roles and Employee IDs filling the roles that cause the data to be more than one row. In this example, I’d want only 3 rows of data (one for each plan). I want to include all data shown for each plan but want it on one row per plan. Possible roles are Plan Owner, Plan Steward (there can be up to 10 stewards per plan), Plan SPOC, BU SPOC, Compliance Director, and Officer.
View 5 Replies
View Related
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
Apr 15, 2008
I have 2 worksheets which have a table on each. I would like to create a list using data from both tables. The list I am looking to create is for an upload fom an excel planning sheet into an ERP system and requires certain data fields and a certain format. Both table have the same amount of fields and the dates across the top. On worksheet one there are material numbers on the left and dates across the top. In the list I require I would need the dates down the left in the first column, next the material number, next the quantity from table one and then the last column I would require the value from the second worksheet which is relevant to the material number and date from the first table. I have tried pivot tables but cannot get this to work and feel it may work with a lookup. I have attached an example of the data.
View 2 Replies
View Related
Jan 29, 2014
In the attached spreadsheet:
1) RAW DATA tab has data for four fund managers. The number of managers will range from 0-200 in the final model.
2) A negative exposure number is a short, and a positive is a long
3) The "Return" is from Bloomberg downloaded data in the live model but I have made up numbers for the purposes of illustration.
4) The Summary tab shows what I would like my final output to be. Please note that (1) the number of managers, and the number of stocks per manager is dynamic (2) the number of longs and shorts is also dynamic (3) i want the impact total for longs (0.39%) to be calculated for me using the code (unless it is easier using another method)
The Summary sheet would have Manager 1, Manager 2 and so on but i have only included Manager 1 for purposes of illustration.
You might say it is easier to use a pivot table, but it is hard to get this format with longs and shorts separated. I would also like errors to be ignored when summing totals in the Summary sheet - these errors occur sometimes on Bloomberg when a company's name changes or they get taken over.
This sheet is due to run by itself when i am not around. (I can automate it myself once I know how to get my desired table).
OZTESTTP.xlsx
View 4 Replies
View Related
Aug 7, 2014
summarize quarterly data in the summary table taking into consideration the months and the district. see the attachment for a more clear picture.
View 4 Replies
View Related
Feb 12, 2013
I have a question around making a summary table from a model. I will try to explain this as plainly as possible.
I have a model where you can toggle 3 different inputs across two variables. The final output number of the model will vary accordingly.
I would like to create a 3X3 table with the final output for each combination of variables. Is there a way of doing this using formulas or would I need a macro?
View 2 Replies
View Related
Jun 3, 2014
I would like to summarize information from multiple tables (across multiple worksheets) into one table using a formula.
I have Attached an example: Book6.xlsx‎
The 'option plan 1' tab shows multiple summary tables for different types of clothing. (the type of clothing is text in the top left hand side of each table just under the month i.e. "jersey tops"). This tab is an example of 6 similar tabs that come from 6 different workbooks...
For each clothing type (i.e., Jersey Tops) I would like to extract the TTL OPTIONS no. and the TTL UNITS no. for each store and show these on the table in the "front Sheet". against the clothing type.
Is there a formula that can match the Clothing type from column A in Option plan 1 tab with Column C in the the front sheet tab and subsequently Match up the TTl Units and Options for each store on the front sheet tab.
I have manually keyed in what I would like the formula to show for 'jersey tops' on the Front sheet tab.
View 5 Replies
View Related
Nov 18, 2013
Code:
Date Jan-14..........Jun-14............Dec-14...........Jan-15..........Jun-15............Dec-15
Measure1
Measure2
Measure3
Code:
Date 2014 2015 2016
Measure1
Measure2
Measure3
I have two tables, examples above In the first table, Jan-14 is a dropdown value that updates all the values to the right by a month increment when a specific date is selected
I then have some code that populates the cells which have 2014,2015,2016 in them.
What I need to do next is populate the 2nd table with values based on the date ranges in the above table.
View 4 Replies
View Related
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
Jul 2, 2009
Attached is five months of dummy sales data for eight products. My objective is to filter this data with date ranges (using Column A in Data sheet), and have the corresponding pie slices (shown in Pie Chart Sheet) be the summation of the Products grouped by their designated letter. Currently, the result I am getting is 6 pie slices for "Product A" and this is wrong. I want to see "Product A" show up only once in the LEGEND and only as one aggregated pie slice. The same holds true for the rest of the Product Letters.
I want to avoid using Pivot Tables. My objective is to keep my layout clean and simple. I would like to know if anyone out there could help me figure out a formula that will automatically catagorize all of the resulting filtered data by the Product Letter they share. Once the formula categorizes or groups together all of the resulting filtered data by Product Letter, I would like the formula to calculate a summation for each Product Letter category. After the formula finishes the summation task I would like the formula to feed these results to a Pie Chart. The resulting chart I would like to see will show individual pie slices for each Product Letter resulting from the date range filtering operation performed on Column A. The resulting letters can be anywhere from "A" to "H". My goal is to only have one individual pie slice representing each of the Product Letters resulting from a Date range filter. I thought such a task would be as easy as baking a pie, but it's turned out to be beyond my Excel skills.
View 9 Replies
View Related
May 8, 2007
The summary measure for my data field buttons my pivot table wizard is defaulted to count instead of sum.
How do I change the default back to sum.
View 7 Replies
View Related
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
Jun 30, 2014
I am trying to count the number of rows on sheets 11 To 2 in my workbook. I want to count the rows (excluding the header) on each sheet one at a time and place them on a "Summary" Sheet. So for example. The row count for Sheet 11 would go in cell B2 of the "Summary" Sheet. The row count for Sheet 10 would go in cell B3 on the "Summary" tab. The row count for Sheet 9 would go in cell b4 on the "Summary" Tab. I have taken a crack at the sub procedure but can't get the syntax and/or the logic correct.
Here is what I have so far:
Code:
Sub SummaryCalculations()
Dim lr As Long
Dim i As Long
Dim SheetArray(11 To 2) As Worksheet 'Sheets that the rows need to be counted on are 11,10,9,8,7,6,5,4,3 and 2
For Each ws In SheetArray
[Code] ...........
View 8 Replies
View Related
Jan 21, 2012
I am trying to use a summary field in the pivot table in a new calculated filed, but am unable to do so. Let me first describe the context so its easier to understand:
I have a collection of customer purchase records, which look like the following:
Customer Name, Customer ID, Purchase Amount, Activation Date
-------------------------------------------------------------
John , 100 , $150 , 2011-04-01 17:07:50.0
John , 100 , $250 , 2011-04-01 17:07:50.0
Paul , 101 , $125 , 2011-08-20 11:10:27.0
I have several 1000 records like the above and I need to create a summary report which looks like:
Customer Name, Total purchased, Activation date, Avg monthly purchase
-----------------------------------------------------------
John , $350 , 2011-04-01 , $175
The average monthly purhcase needs to be calculated based on the date of report generation. So in the case above, the average is calculated as of 2011-06-01.
In order to generate the report above, I created a pivot table with "Customer Name" in the "row labels" section and "Pruchase amount" and "Activation date" in the "values" section of the pivot table. When I try to calculate the "Avg Monthly Purchase", I'm running into the following problems:
1. The activation date is not being displayed as a date, but instead shows 0, when I set the value field settings to "Min"
2. I tried to create the "Avg Monthly Purchase" as a Calculated Field and then use the "Sum of Purchase Amount" field that the pivot table calculates. However, I'm unable to reference the "Sum of Purchase Amount" field in the calculated field.
View 2 Replies
View Related
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
View Related
Jul 17, 2014
I have consecutive vertical lists that each have a different number of instances and I'm trying to create a horizontal summary. Here is an example:
Vertical lists:
Mary
red 2
blue 11
John
yellow 5
red 7
blue 8
Susan
red 9
green 3
Desired Summary table:
Mary John Susan
yellow 5
red 2 7
blue 11 8
green 3
Is there a way to do this using a pivot table or formulas, instead of manually?
View 3 Replies
View Related