Summary Sheet Calculate Results Change If Rows Added/deleted In Detail Spreadsheet

Feb 27, 2009

[Excel 2003] I have 2 spreadsheets: one to summarize data from a 2nd detail spreadsheet. I'm analyzing work order information for a service operation.

I'm using dynamic name ranges, as follows, for the detail:

WO_Num =OFFSET('WO Tracking Log'!$A6,0,0,COUNT('WO Tracking Log'!$A:$A),1)

Other detail data is defined as these examples show:

GM_X =OFFSET(WO_Num,0,8)
OpenDate =OFFSET(WO_Num,0,1)

All detail data begins in Row 6 in the detail spreadsheet.

In the Summary spreadsheet, it appears to make a difference where my calcs are located in order for my COUNTIF's to work correctly. As long as I keep my summary calc (to total the number of work orders in the detail) in Row 2 of the Summary, it works fine...but if EITHER I move my calc down a row OR if my detail drops down a row because a row was added above (where I have just header info), my summary totals change?!?! I don't understand.

Here are two examples of the calcs I'm using in the summary:

=COUNTIF(WO_Num,">0")
=COUNTIF(GM_X,"X")

Can someone tell me what is going on? What I'm doing wrong?

View 8 Replies


ADVERTISEMENT

Macro Runs Fast When Rows Added / Deleted Slow When No Rows Added / Deleted

Jun 27, 2013

We have created a macro that basically looks for rows that contain an "H" and hides the row if it does.

Users can add new rows throughtout the year to this spreadsheet. and based on certain criteria, an H or U will be placed in a hidden column which the macro looks at and hides any row it finds an H.

The user has to click on the button that has the macro assigned to it once they have finished working on the spreadsheet.

The problem we're finding is that for users who insert/delete rows, once they click the button it takes up to 15 seconds to run through macro (which is ok). However, users who haven't added or deleted any rows and who click the button, they have to wait upto 5 minutes (which isn't ok) for the macro ro run.

We can't figure out why the macro takes longer to run when no changes have been made?

View 8 Replies View Related

Update Summary Values (Detail)

Aug 25, 2013

I have a spreadsheet that has detail and summary info. I want to update the summary with the detail. I currently have the summary next to the detail, but I may move it to it's own tab.

View 6 Replies View Related

Formulas To Not Change If Cells Where Deleted From Sheet

Sep 18, 2007

I have a sheet (sheet2) that has cells in column L, M and N referencing cells in another sheet (sheet1)(same workbook).

If I delete a row out of Sheet1 it causes the formula in Sheet2 to go to #REF.

Normally the formula would be something like
='Sheet1'!L13
How can I get these formulas to not change just because cells where deleted from Sheet1?

View 9 Replies View Related

Macro That Will Calculate Sum Of Cells Even If Rows Are Added

Feb 12, 2014

So I'm trying to create a macro that will simplify dealing with a file we receive at work pretty often. I've enclosed a spreadsheet that shows a very basic example of the files we receive. What I need to happen is this: On the rows that have only the Company # in column A and Total $ in column D (ie. rows 5 and 6), I need the Total $ amount moved up one row and then for the row it was previously in to be deleted (at that point that row should only have the Company $ and no other data in it so it's basically useless). The problem I'm having is that if any rows are added to the file (for instance if an row was added between rows four and five) it would throw off my macro.

View 3 Replies View Related

Dynamic Named Ranges Where Data Is Manually Added And Deleted

Apr 22, 2013

A lot of the Workbooks that I design for use by myself and colleagues require data to be copied in from external data sources. To avoid named ranges from failing, I always use the following method:

Calculate the length of the data set:

Code:
=COUNTA(INDIRECT("'Data Sheet'!"&"$A:$A"))

(There will be no gaps in the data, hence a count is fine.) This named range is called DSROWCOUNT.

Example named range for the data in column A:

Code:
=OFFSET(INDIRECT("'Data Sheet'!"&"$A$1"),1,0,DSROWCOUNT-1,1)

I use INDIRECT to ensure my named ranges do not fail if the data is deleted (accidentally or intentionally), as #REF! errors will occur.

The problem with this method is that it automatically makes the Workbooks volatile because of the use of OFFSET and INDIRECT, hence the Workbooks always needs to be in manual calculation mode to be usable.

View 7 Replies View Related

Use A Named Range To Many Columns Are Added Or Deleted The Data Is Pulled Correctly

May 4, 2006

I have a spread sheet that I pull data from different columns on a particular row. The problem is the code I used works great as long as the column never moves from its current location. Is there a way to use a named range to make the following piece of code work, so no matter how many columns are added or deleted the data is pulled correctly?

View 2 Replies View Related

Change Summary Sheet To Look At Different Worksheets

Dec 5, 2011

I have a work book. The sheets are for different months. I also have a summary pages that calculates and number of things. How I get the summary page to look at a different work sheet without changing to many things.

OctAlice KwokCandy LeeStudents Served %77%
(=Oct!C2)0% (=Oct!D2)PM Satisfaction3.66 (=Oct!C3)2.67 (=Oct!D3)14 Day KPI85%85%

Current the formula points direcrt the the worksheet =Oct!C2

I would like to be able to change a cell that matched worksheet names and the summary automatically looks at that work sheet.

View 3 Replies View Related

Unchanging Sheet Reference When Rows Are Added

Oct 28, 2009

I have a sheet titled PartNumbers....which contains in numerical order just 1 column of random 1, 2, or 3 character numerical part numbers. nothing special. and not necessarily in 1 by 1 order. like 45,46,47,48,49, it will skip number more like 45, 49, 50, 55. I have another sheet titled FinalReport.....that takes the raw data i have from the PartNumbers sheet and outputs the data onto a nice pretty looking designed sheet.

on 1 column of FinalReport I have =PartNumber!C2, C3, C4 and so on for the total number of parts i have to fill in the FinalReport sheet for each cell. The Question is, on PartNumbers when I want to add a part, say my sheet goes number 45 then 49 and i want 46... What I do is right click row number and select Insert, that adds a new row for my new part number. Now that move doesn't correspond to FinalReport now, it just removes the row i inserted. How do I get everything to flow to FinalReport?

View 5 Replies View Related

Autofill Summary Macro As New Worksheets Are Added

Jun 11, 2014

Trying to write a macro so that my summary worksheet will auto populate when new sheets are added and filled out. I want the PO#, Quanity, Date ordered, Vendor, Subtotal, Tax and Total all to transfer from worksheets like F001 to the summary sheet. Yes there is only one F001 sheet filled out but that number will rise into the hundreds as the project progresses. No idea where to begin when writing this macro.

View 1 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

VBA Copy All Rows From Worksheets Containing Data To A Summary Sheet

Dec 20, 2012

I want to copy all rows that have a value in say colum B from differenct worksheets to a summary sheet, it should stop when there is no data in colum B and then go to the next sheet.

The macro that I use to copy the date from sheets to a summary sheet:

-------------------------------------------------------------------------------------------

VB:

Sub extractCells()
Dim ws As Worksheet
i = 0
For Each sh In ActiveWorkbook.Worksheets
If sh.Name <> "Summary" Then
sh.Range("C3").Copy

[Code]....

View 5 Replies View Related

Copy Rows From Different Sheets To Same Column In Summary Sheet?

Feb 25, 2012

Basically I have an Excel workbook with 6 different worksheets containing data. In each sheet I have two columns that are the same in each sheet, called "Category" (column F) and "amount" (column G). In one of the sheets I also have "Category" and "amount" in column H and I.

I want to write a VBA code that copies these columns (until blank row) and pastes them underneath eachother in the summary sheet.

View 9 Replies View Related

Count Rows On Multiple Sheets - Paste Values In Summary Sheet

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

Pulling Detail To Second Sheet W/o Zeros

May 8, 2007

I have two sheets....one sheet has a all the detail I need on it. On the second sheet I am trying to pull all the detail by category but want to eliminate any zeros in between. Anyone know how to do this?

I feel like I am being very vague so if I need to give more detail just let me know.

View 10 Replies View Related

Create A Spreadsheet Where A Certain Value Is Added?

Apr 11, 2014

I need to create a Spreadsheet where a certain Value is added to the from of the data I enter into the cell. For example: All of my MAC Addresses start with 00:80:64. I want to be able to just type in the last three entries into the cell and have Excell automatically add the value 00:80:64 So I want to be able to add a specified value to ebvery entry in a collumn.

View 1 Replies View Related

Merging Results Into Summary?

Oct 13, 2011

I have been asked if I can create a solution to take data from an accounts sheet where 2 columns of data are used to record dates and values and then make a master summary of each account into a separate sheet.

Shown below is an extract of the Main Accnt sheet, and then a copy of what is requried as an end result, there are more accounts to consider in the real sheet. but will be 2 columns only and an account identifier

Main Accnt

ABCD1Account CodeWse12Account CodeESS 122 3DatesAmountDatesAmount402/09/201134501/10/2011453503/09/201136702/10/2011678604/09/201138903/10/2011903705/09/201141104/10/20111128806/09/201143305/10/20111353907/09/201145506/10/201115781008/09/201147707/10/201118031109/09/201149908/10/201120281210/09/201152109/10/201122531311/09/201154310/10/201124781412/09/201156511/10/201127031513/09/201158712/10/201129281614/09/201160913/10/2011315317 14/10/2011337818 15/10/2011360319 16/10/2011382820 17/10/2011405321 18/10/2011427822 19/10/20114503

An indication of the Master Summary is shown here. I have coloured the account code only as an example that isn't required.

Master Sum

ABC1Account CodeDatesAmount2Wse1202/09/20113453Wse1203/09/20113674Wse1204/09/20113895Wse1205/09/20114116Wse1206/09/20114337Wse1207/09/20114558Wse1208/09/20114779Wse1209/09/201149910Wse1210/09/201152111Wse1211/09/201154312Wse1212/09/201156513Wse1213/09/201158714Wse1214/09/201160915ESS 1201/10/201145316ESS 1202/10/201167817ESS 1203/10/201190318ESS 1204/10/2011112819ESS 1205/10/2011135320ESS 1206/10/2011157821ESS 1207/10/2011180322ESS 1208/10/2011202823ESS 1209/10/2011225324ESS 1210/10/2011247825ESS 1211/10/2011270326ESS 1212/10/2011292827ESS 1213/10/2011315328ESS 1214/10/2011337829ESS 1215/10/2011360330ESS 1216/10/2011382831ESS 1217/10/2011405332ESS 1218/10/2011427833ESS 1219/10/20114503

View 3 Replies View Related

Detail Of Each Project - Delete Auxiliary Column In Main Sheet?

Mar 21, 2014

This file contains 2 sheet Main M and Detail D.

In Sheet Detail D, When I choose Code, month of Project, it will be shown the result.

By the way, tell me how to delete the Auxiliary column in Main sheet.

View 3 Replies View Related

Calculate A Specific Sheet When Something Change In The Workbook

May 25, 2006

I have build an add-in To Calculate Specific Sheet when something change in the workbook. For this I am unselecting the "automatic calculation" option and check "Manual". Now with every change in a cell i would to call AUTO_CALCULATION_PI that is calculating only the sheet that the user have been selected.

The problem when i change a cell Workbook_SheetChange is not stiggered and nothign happen. I dont understand why? The add-in is doing the following. Create a Menu "PI Options", this open a user form where you can select the worksheet to calculate, the choices is store in hidden worksheet called "AUTO-CALCULATION-PI". When a cell is change the Macro AUTO_CALCULATION is called, and calculated the sheets that the user have selected.

View 2 Replies View Related

Looping Through All Rows And Entering Formula To Calculate Change?

Oct 2, 2012

I want to create a loop that goes down all the rows in my spreadsheet and does the formula (end/beginning -1) for all the rows of cells. The "end" cell is the cell that is the farthest right in the row (some sort of end.xlright) and the "beginning" cell is column D of the row that is being calculated.

View 4 Replies View Related

Summary Results Of Race Data

Oct 29, 2007

I have the following table for results in 7 races by 8 competitors (NB Not all competitors compete in every race)

Competitor Race 1 Race 2 Race 3 Race 4 Race 5 Race 6 Race 7
........A...........3..........5..........4.........6..........4........1
........B...........2..........4..........3.........4..........6........3
........C...........4..........3..........2.........5..........5........4
........D.......................6..........1....................7.........2........3
........E...........7..........7..........8....................3.........5........4
........F...........1..........2..........6.........1..........8........8........1
........G...........5..........1..........5.........2..........1........7.......5
........H...........6..........8..........7.........3..........2........6........2

What I'd like to have is a table with summary results by the follwing criteria:

Most 1sts:
Most top 3:
Most bottom 2:
Lowest average position:
Highest average position:

What formulas would I have to use to get each of the 5 results?

View 9 Replies View Related

Filter Rows By More Than Two OR Criteria And Extracting Results Into New Sheet?

May 21, 2014

I need to filter a large database using multiple OR criterias.

Database is CUSTOMER NAMES in each row with CONSUMED PRODUCTS following in each cell.

I want to filter two or more products and list customer names in sheet2. Like listing customers using salt or pepper Filter criterias will be entered into cells in sheet2 with results shown below and I want search to be active and alive just like vlookup function.

Sheet1
CUSTOMER NAMES---CONSUMED PRODUCT---CONSUMED PRODUCT---CONSUMED PRODUCT
GEORGE--------------SUGAR-----------------SALT
MICHAEL-------------PEPPER-----------------CHILI
JACK-----------------BREAD------------------SALT-----------------COFFEE

View 1 Replies View Related

Copy Rows From One Sheet To Another Based On Formula Results

Feb 7, 2014

I have a report that is run weekly that shows items that have been returned over the last 3 months. The report shows the original date of purchase and the return date, but not the number of days since the purchase and the return. I need to have any items that were returned over 15 days go to a new sheet and display just those rows of information.

View 8 Replies View Related

Create Pie Chart From Table Summary Results

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

Formulas Change When Column/row Is Deleted. How Can I Stop That

Nov 11, 2006

I have a spreadsheet that holds the NHL schedule for the season. (See thumbnail)

In the picture I've highlighted the formula I use to determine how many games each team has over the next 7, 14, 21 and 28 days. What I've been doing is deleting the column for each day after that day has passed. (So tomorrow, I'll delete column K, and all the other days will move up one. Sunday will become column K)

My problem is that the formula =7-COUNTIF($K3:$Q3,"—") in cell G3 will read =7-COUNTIF($K3:$P3,"—") after I have deleted Saturday, and thus will only count 6 days worth. (The 14, 21 and 28 columns will only count 13, 20 and 27 as well.) Is there any way I can write this formula so that it stays as K3:Q3? Right now each day I modify the 4 formulas for the 1st team and then copy/paste then over the other 30, but this is rather tedious.

View 11 Replies View Related

Retaining Data From Excel In Word Template When Row Added From Spreadsheet

Jun 4, 2014

I want to pull data from my excel file (using VBA) into Ms Word. I created a template in Word and wrote a macro to do this, it worked, however, anytime a new row is inserted or deleted in my excel spreadsheet my macro produces wrong results in my Ms Word template because the cell position has shifted, thereby producing the wrong result. How do i make it that my result remain the same when new row is added to my spreadsheet.

Example:
Excel row1: vicky 528
row2: sam 532
row3: john 092
row4: Own 211 word template: 092

This is what happen next:

Excel (New row added) Macro: ThisDocument.ScreenedPatients.Caption = wb.Sheets("CSAs").Cells(16, 1)

row1: pat 542
row2: vicky 528
row3: sam 532
row4: john 092
row5: Own 211 resulting Word template(running macro): word template: 532

But I want John to automatically go on the Word template without going into macro to change it all the time when a new row is added.

View 1 Replies View Related

Excel 2003 :: Added Condition That Broke Rank And Listing Feature On Spreadsheet

Nov 29, 2012

The attached is a race keeper's scorecard.

Tab 1 lists all participants and race times.
Tab 2 generates a printout to post on a wall.

The spreadsheet works great, BUT, I forgot I needed to add a condition of DNS (Did not start) and DNF (Did not finish).

Once this is added, of course, it breaks everything done so far (damage being done in column M on tab 1 and all of tab 2).

My ideal state is that a DNS or DNF can appear in column L on Tab 1. . . and these participants fall to the bottom of the list generated on Tab 2.

I know there are miracle workers out there who can make this happen! Again, hoping for no code, and no manual manipulation if possible (end user is not Excel savvy). Must be compatible with Excel 97-2003.

View 10 Replies View Related

Linking Multiple Files To Summary Spreadsheet?

Jan 23, 2013

I know it is possible to link multiple worksheets within the same file together but is it possible to link multiple files to report up certain information to a separate file that summarized the data onto one spreadsheet? If so, what would a sample formula be?

View 6 Replies View Related

Creating Summary Spreadsheet From Two Seperate Spreadsheets

Mar 16, 2007

I have two spreadsheets. I need to be able to match information from detailed spreadsheet for specific information from a lookup spreadsheet.

The detailed sheet (call it Purchases) has information about what was purchased during a month.

Columns: ...

View 9 Replies View Related

Calculate Number Of Rows Used On Sheet/Worksheet

May 28, 2006

Calculate the number of rows used in sheet. for exa: i have A1:A100 i want that B1=100 and if i delete some of rows the number of rows in B1 auto-change. and can let B2 display the number of rows deleted.

i have 2 sheets now, can the Cell C1 in sheet 2 display the number of rows in the sheets, B1 in sheet1 + B1 in sheet 2

View 9 Replies View Related







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