# Automatic Averages

Jul 13, 2007

I am inputing each day the total amount of sales. I am manually doing the averages for past 12 weeks on Monday sheet. I would like when I enter the amount for that week that the cells B84, C84, E84, F84 are automatically updated for the past 12 weeks. I have tried a few different approaches but I keep getting #ref or circular reference

## Rolling Averages

Jun 5, 2007

I am working on a spread sheet and am trying to use rolling averages of the last 3 months. I am using worksheets for each month with a final worksheet containing the 3 mo. rolling average. I tried using a formula with OFFSET and it worked fine if all the data was in 1 worksheet, but did not work for multiple worksheets averaging to another worksheet in the same workbook.

## Averages With #N/A In Row/column

Jan 13, 2009

I am trying to work out the average volume of our daily downloads. I have used Vlookup to automate this. When there is no data it returns #N/A which is no problem. The problem arises when i try to work out the average for the month or peaks (MAX sum).

I have tried several variations of sumif/if/isna etc etc and am not having much luck. Below is an example of what i am trying to average out:
#N/A620#N/A

That is 4 different days download data - I want it to ignore the 0's and #N/A and return the average for the days we actually had a download.

## Splitting Averages...

Feb 2, 2009

If I have a varying number of figures(say between 4 and 10) which I want the average of the first half of the set and an average of the second half, is there a function which I can use to calculate this? ie if there is 8 numbers in total then I need the average of the first four and last four... but if there is ten figures total then I need the average of the first five and last five.

## Getting Averages To Round Up?

Mar 8, 2013

I have a spread sheet with col's that I want to average their totals, but would like them to be rounded up or down.

## Averages When Using A Filter?

Apr 7, 2013

I am using the formula =AVERAGE('Year 13'!BV:BV) to work out the average value in column BV.

However, I would like the value to change if I filter one of the other columns, is there any way to do this?

## Averages From 2 Columns

Jan 6, 2006

We are trying to get an Average between 2 columns that have the same conditions. We have been using an array formula succesfully on data that is on 1 column and I have trying to incorporate an Offset into the formula with no luck.
Here is our latetest attempt, WITHOUT THE OFFSET.
The data is in Column P and Column N

=AVERAGE(IF((('Mill Process Data'!N3:N6650,'Mill Process Data'!P3:P6650>.01)*('Mill Process Data'!N3:N6650,'Mill Process Data'!P3:P6650<.3))*(ISNUMBER('Mill Process Data'!N3:N6650,'Mill Process Data'!P3:P6650)),Mill Process Data'!N3:N6650,'Mill Process Data'!P3:P6650)))

## Average Of Row Averages

Jan 31, 2012

I want a cell that takes each row in column B and subtracts column A from it... (10-5 for row 1). I want it to do that for all rows and then average that number. This would be easy if I were not using a pivot table with a lot of data.

For example:
Column A Column B
5 10
2 9
6 8
1 4
6 7
1 1
6 2
6 8

## Working Out Averages

Oct 2, 2006

I havea list of values that I need to work averages out for. Unfortunately, sometimes the values will be a zero and these should be ignored.

I can work out the averages easily enough using the average function, but can't quite figure out a way of ignoring the zeros. Sample data would be :-
week 1 - 3.42
week 2 - 0 (zero)

Using the standard average function, I get an average of 1.71 when I actually want it to have an average of 3.42.

I would prefer a function for this but would settle for a macro even though it would increase the program run-time.

## Averages Formula

Mar 1, 2007

In the following cells I have an average:

B6,J6,R6,Z6, and AH6 and a total average on cell AP6

How would I go about making a formula for that. The reason why I ask is because all the info I have seen refers to the cells with the averages need to be in sequence or range and nothing about the cells being seperated. I also tried using the countif method, but same prob, the cells need to be within a horizontal or vertical range

## Averages For Last 12 Entries

Oct 20, 2008

I need to calculate average for last 12 valid entries in a column. I say valid because if there are blanks or zeros in the cell they need to be discounted.

The solution needs to work on percentages as well.

To explain further
Col A Col B
Jan 2007 1
Feb 2007 5
Mar 2007 5
Apr 2007 0
May 2007
Jun 2007 20
Jul 2007 0
Aug 2007
Sep 2007 10
Oct 2007 0
Nov 2007 10
Dec 2007 18
Jan 2008 8
Feb 2008 6
Mar 2008 0
Apr 2008
May 2008 10
Jun 2008 1

The requirement would be to calculate average from Jun 2008 backwards for 12 months where there aren't zero or blank entries.

## Average From Several Averages

Apr 17, 2007

Column 1 contains the number of times an ad has shown
Column 2 contains the average position of the ad from column 1

Like so,

Yahoo: 346,656...............................1.2
MSN: 123,234..................................8.9

Total: 14,689,913............................???

Doing the following,

= Average(B2,B3,B4)

This is not the real average as this is directly influenced by the number of ad impressions...

How can i make a real calculation to give me the true total average position of my ads?

## Top/Bottom X Averages

Jun 3, 2008

Have a five column worksheet with the column headings run column A1 - E1 and there are currently 112 players filling out the data with many more to come

The 5 Column Headers are as follows:

Player# ... PlayerName ... M/F ... SessionAve ... GamesPlayed

What I need to do I pull out the top 5 male and top 5 female by SessionAve (including ties if possible). Would like the info to look like:

Male Shooter ...Session Ave ...GamesPlayed
Player1 .843% 30
Player2 .837% 35
Player3 .835% 25
etc..

Then Same for Female Players

## Getting Averages From Seperate Worksheets

Dec 9, 2009

The first one, I do i remove #DIV/0! from cell O7 in the worksheet "My overview"?

The second one, I need to get averages of the QA score for the 3 months from January to March in the worksheet "My Overview" Cell E14 for the corresponding person on each sheet. I understand that there need to be values in place to get an average but is there a way to overcome this?

## Optimizing Weighted Averages?

May 21, 2014

I created an Excel tool into which really thousands of records are based on weighted averages calculations. And discovered Excel struggling in term of permormance.

The issue is: the user needs to uploads a couple of times in a day new data for further analysis, and the only way to make the Excel spreadsheat humanely usable (performance) was to calculate everything upfront.

To optimize the tool performance, I had to:

- First I made all weighted average calculations upfront when data is uploaded the first time. Leaving formulas in the tool was not viable, since this tool run live analysis, every click would have been a pain of 30 sec at best to re-calculate new conditions,

- Second optimization was to not leave formulas into columns > as soon as a calculation is done, the macro copy/paste values

The formula I chose is sumproduct based weighted averages..

Here is my question:

1. Does it exits specific formulas in Excel to handle nicely large amount of weighted averages to calculate ?

2. Should I consider to use an external application (an Access table, SQL or whatever) to perform those weighted average calculations quickly/quicker.

## Calculating Averages In Spreadsheet

Feb 19, 2008

I'm trying to Calculte the Averages of just the Teachers Salaries in my spreadsheet. If possible i would like to put the average at the end of each
of Teachers information.

Is there code that would allow me to do so.

I attached a sample file to view.

## Calculating Average Of 2 Averages

Jun 7, 2013

I have a spreadsheet that we are using as a Skills Matrix for the team. The area that the team member deals with is listed in Row 3. The scores for each person are recorded in Columns D to M. The process steps being scored against are in Rows 8 to 38, and are seperated by the area of responsibility.

I am trying to work out the average scores of each person depending on their area of responsibility. I can work out the totals easily enough using:

=IF(ISNUMBER(FIND("CM",D3)),SUM(D11,D12,D13,D14,D18,D19,D20,D23,D24,D25,D26,D27,D28,D29,D30),0)
+IF(ISNUMBER(FIND("V",D3)),SUM(D33,D34,D35,D38),0)

But if I use the same for the average scores is works fine until a person covers two duties:

=IF(ISNUMBER(FIND("CM",D3)),AVERAGE(D8:D10,D12:D17,D19:D22,D24:D30),0)
+IF(ISNUMBER(FIND("V",D3)),AVERAGE(D31:D32,D34:D37),0)

This is becuase it adds the 2 averages instead of working out the total average score. Is there an easy way around this?

i.e. For team members who have CM in Row 3 I need an average of certain cells, for team members who have V in Row 3 I need a different average and for those team members with both CM and V I need an overall average.

## Averages With Jumping Intervals?

Jul 18, 2013

I would like to write a formula to average cells F27 - F11007 in a spreadsheet for every 96 values. That is, I want the average of F27:F122, F123:F218, F219:F314 and so on up to F10912:F11007. Ideally I would be able to pull down the fill handle and perpetuate the formula since this is a lot of data.

I've been trying to use INDIRECT and OFFSET formulas but I get a #REF! or #VALUE error.

## Calculating Average From Averages

Oct 1, 2013

I have a database with monthly tabs and a summary sheet, on the summary sheet I calculate an average length of stay for each month (tab) but I need to find the yearly average and I don't know if there is a formula that would calculate the true average by using the monthly averages.

## Averages - Specific Characters

Apr 28, 2008

I need a formula that determines the average of numbers based on specific cells.
For instance:

COLUMN A COLUMN B
John Doe 1.48
Jane X 2.89
John Doe 1.89
Jane X 5.98
Michelle Doe 5
Claire Doe 3
Jane X 0

What formula can I use to give me the average of "Jane X" not taking into consideration the one with the 0 Value?

## Variable Range Averages

Sep 9, 2008

I was able to record a macro that did essentially everything I wanted it to, with the important exception of getting the right selection for the average=() calculation.

My worksheets are set up with multiple variable columns, and multiple data collection stations as rows. The rows are sorted by date, with a blank row dividing the data by month. There may be 50 rows in January, then a blank row, then 4 rows in February, then a blank, then 15 rows in March, etc. I can easily average the monthly values in, say, column N by typing "average(" in the cell where I want the average to be calculated, then selecting the top cell for the month of interest in column N, holding the shift key down, pressing end, pressing the down arrow, and then typing ")".

The macro recorder, however, doesn't seem able to handle this method of selecting the cells to put inside the formula parentheses. If I try to run the created macro on other months, it will average the same number of cells targetted by the initial example (i.e. the month I was working with when recording the macro).

Is there any way to code this operation so it will vary the number of cells averaged, based on the number of data rows present in each monthly group? My research into coding averages is turning up only examples that deal with whole columns or fixed cell ranges.

Since I have a pretty big stack of worksheets to work though, it would be very nice to automate the process, but I'm still fumbling here. Not getting anywhere.

## Averages By Week By Month

May 5, 2009

I have the following data by week:
------------------------------------------------------------------------
29-Mar 5-Apr 12-Apr 19-Apr 26-Apr 3-May 10-May
# of work days 4 4 4 4 5 5 5
Manpower 106 85 115 115 120 121 87
------------------------------------------------------------------------

On a second tab, I want to show the data by month:
----------------------------------------------------------------
Apr May Jun
# of workdays 21 (4+4+4+4+5) 21 20
Avg. manpower 108 104 ....

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

## Using Loops For Taking Averages

Jul 14, 2006

I have a column of 96 numbers (observations every 15 minutes for a 24 hour period), and I want to take the average of these numbers in groups of four (the hourly average). My data starts in cell A2 and goes to cell A97. My first batch of averages are labeled as follows:

Range("A2").Select
ActiveCell.offset(3,0).select

Now, clumsy programming aside, I just want to say something like this

averageCell = AVERAGE(startCell:stopCell)

## Calculating Daily Averages

Aug 9, 2006

The data was taken in 15 min intervals and is organized by date. I have one column with the date and time and another column with the data. I need to find the average for each day. I have almost a years worth of data. Is there any formula I can enter to find the values in a given day and return the average of the values (without having to select the data for each day)? I want to be able to copy the formula down a column with the value per day.

## Adding Averages To Pivot Chart?

Jul 15, 2014

I'm trying to do something that I thought would be very simple for excel to do. All I want to do is show the average score of the data selected by the selectors in the chart. For instance, in the attached file, I have the following selection (AMER, North America, Canada & USA, Purple) and from this data selection I have 4 columns of data. I would like the chart to show somewhere on the chart the average of the total revenue (both columns) and the average of the GOP. Is there not a way of showing on the chart any data metrics?

## Weighted Averages Using SUMIF And COUNTIF

Jul 6, 2009

DATA: D1:D11 contains either blank cells or a dollar figure from a payroll check.
E1:E11 contains either blank cells or the date of the check.

Current Situation: Using the following formula I obtain a weighted average of the pay checks, not including the largest. =(SUM(D1:D11)-MAX(D1:D11))/(COUNT(D1:D11)-1)

Problem:
I desire to calculate the weighted average based on the checks issued only prior to a certain date. I have used SUMIF() in other parts of the workbook successfully but needing to withold the largest value has presented me with a problem I can not find a solution to. =SUMIF((E1:E11,">="&TargetDate,D1:D11)-MAXIF(E1:E11,">="&TargetDate,D1:D11))/COUNTIF(E1:E11,">="&TargetDate,D1:D11)

## Monthly And Quarterly Averages From Another Sheet

Apr 15, 2014

I need a formula that will provide monthly and quaterly averages from another worksheet, but only include the months that have occurred. I have the formula to obtain both the averages and quarter totals, but it is counting all months w/in the quarterly range before the months have occurred.

## VBA Macro Code For Calculating Averages Those Which Have More Than One Value?

May 2, 2014

I need vba macro code or excel function to calculate average for some intervals in my excel sheet which have more than one value... I need all those values to be get averaged and placed in one cell...

I have intervals like 0-2, 2-4, 4-6.... 22-24.

In these intervals, few have got more than one values like

16-1804/11/201416:29:2616503.9902
04/11/201417:52:4917390.0293
18-2004/11/201419:52:5517204.8086

Now I need 16503.9902 and 17390.0293 need to get averaged and placed in one cell like,

16-1804/11/201416:29:2616947.00975
18-2004/11/201419:52:5517204.8086

## Averages The Total Of Each Criteria For All The Paygrades

Dec 12, 2006

I have a spreadsheet with one "master" sheet and multiple "level" sheets. The workbook is an employee rating system and employees have different pay grades. The individual sheets represent each paygrade while the master sheet averages the total of each criteria for all the paygrades. Look at the image below:

http://www.excelforum.com//attachmen...1&d=1165960332

What you see above is a cutout from one of the "level" sheets to give you an idea of how employees are added to the sheets.

Sheets I have: Master/E1/E2/E3/E4/E5/E6/

The first catch is that the sheets will not have an equal number of "rated employees", so I would need to tell the program how to find the number of employees being rated (and how to reference the columns to find the total scores in). In the example you see name1 and name2... this represents 2 employees. To add another employee they duplicate the 3 rows and create another employee (i.e. name3). Second is that it has to disregard total scores that are "zeroes", meaning it does not average the total scores with a zero.

The master sheet is just a duplicate of the "level sheets" but with 1 set of 3 row columns to average each criteria from the 6 "level" sheets. I appreciate your guys' help in advance. Thanks!

- Kareem

P.S. Those that are wondering, Total score = Weight(blue column) * points (1-10)

## Calculate Large Strings Of Averages

Oct 6, 2011

I have 3 columns (B,D,F) that have 15 minute data intervals and I need to calculate the hourly averages for each column but here is the catch, I need to do this from July-1-2011 00:00:00 to Sept-31-2011, 24:00:00 (that's 26,217 data points and 6,554 =average() calculations......

IS there syntax I could use that would calculate the average every 4-cells so I could get the hourly average without having to type =average(XX:XX) 6,554 times?

Example of set-up:

29-Sep-11
23:00:00
0.820412164= AVERAGE(B8735:B8738)
0.762574274 =average(D8735:D8738)
84.98389991 =average(F8735:F8738)
29-Sep-11 23:15:00 0.819168591
0.762781167

[Code]...