Calulating Average Without Zero Cells

Feb 9, 2009

I have imported a text file using a macro. And I want to calculate the average of two columns, and put this into a new one. But how to do this and let the macro stop if one of the two input values is blank?

ActiveCell.FormulaR1C1 = "=(RC[-3]+RC[-2])/2)" but then when I use the autofill i get a lot of zero's, but I can't delete them using a macro.

View 14 Replies


ADVERTISEMENT

Average Column Of Cells But Ignore Errors And Return Average Of Numbers That Are There

Jun 14, 2013

E11 through E24 contains numbers and a few errors (#N/A) that need to persist (the errors need to show).

E10 needs to show the average of the numbers that are in E11 through E24, and just ignore the errors.

I have many columns like that - where the errors need to show and I need to show an average of the number/values that do appear, ignoring the errors.

View 14 Replies View Related

Average Out Range Of Cells Excluding Text Found In Other Cells

Jul 17, 2014

What I want to do is Average out a range of cells "F4:F343". That's the easy part =average(F4:F343). However I want to exclude any numbers for that average if data in coloumn "Q" = "FMC"

Would that look anything like:

=average(F4:F343)/countif(Q4:Q343, "<>FMC")

I'm also displaying it as minutes in a day so i added *24*60 to the end of the formula and formatted to Number/.00. I've entered the formula and it will calculate but when i enter FMC to the appropriate area the average wont change.

View 2 Replies View Related

VBA Autofiltered Cells - Calculate Average And Sum Of Visible Cells?

Aug 31, 2012

I have a macro which autofilters a range of cells.

I can count the number of visible rows by using the following code

Code:
lcountActive = Range("BC34:BC" & x).SpecialCells(xlCellTypeVisible).Count

What I would like to do is both calculate the Average value of the visible cells and the Sum as well. I have tried to adapt the code I have but my knowledge is just not good enough to do this.

View 1 Replies View Related

Get The Average Of Every Ten Cells Out Of 1300 Cells?

Sep 22, 2009

I have 1300 vertical cells.

Is there a quick way to get the average of every ten cells? i.e. to end up with 130 averages of successive groups of ten cells (cell 1-10, 11-20, 21-30 etc.)?

View 2 Replies View Related

How To Get Average Of First 3 Right Non Blank Cells

Apr 25, 2014

I am having a dilemma on getting the average for the first 3 non blank cells. This is how my data looks like :

excel average.jpg

I don't know any formula that will disregard the non blank cell and will get the average of the firs 3 non blank cells from the right.

View 2 Replies View Related

Average If Cells Are Equal

Jan 15, 2010

Columns L, M and N are always fully populated.

Columns D, E and F may have some missing values, along with H, I and J.

Lets just concentrate on D.

I need to create a formula where I get the anser in C1 This is an average of L only where D has a value.

View 3 Replies View Related

Average Of Last Three Cells In Column Or Row

Jul 19, 2012

I want to be able to find the last non empty row in column C and then average the last three inputs. Thus utilzing this as a means for a projection of the remaining periods left in the year. All for projecting figures for the remainder of the year.

Bill
Period
Date
Amount

1
1/6/2012
3982.76

[Code] ..........

View 2 Replies View Related

Exclude Cells That Have 0 In Them From Average?

Jan 13, 2004

I have a list of weeks 1-4 for the fiscal month of January. I have a total column. Each week the appropriate week is updated and the total is updated via formula. The total column is just formulas adding Weeks 1-4 up. I also have an average column with the AVERAGE formula beside the total it that should give me the weekly average for January. However, it's trying to average all the weeks instead of just the weeks that I am on.

For example, Week 1 is 1,000,000. Week 2 is 500,000. Week 3 & 4 are 0 because there is no data in there yet. The AVERAGE formula keeps showing 375,000 instead of 750,000. It's averaging all the weeks and I just want it to average Weeks 1 & 2 right now, but automatically average Weeks 3 & 4 when they are populated.

View 9 Replies View Related

Average Of Cells With Zeros

Aug 8, 2007

I want to take an average of only non-zero numbers in a range of cells containing a few zeros. I know there is a function to do this, but I haven't been able to find it. With the normal average() function, the denominator is too large as cells with 0 are included.

View 9 Replies View Related

Average Non Adjacent Cells If Not 0

Sep 10, 2008

I am trying to work out a formula for calculating average of non adjacent cells but it should ignore any cells with 0:00:00 value or are empty.

At the moment I am using the simple formula =average(A1,A2,A5,A9). But if any of these cells is empty or 0:00:00, it then gives me a wrong average. I could have used a array formula with if function but it then calculates all other cells in between as well that I don't want to e.g. I may not want to include include A3 in my calculation but as it has some value in it, it gets in the calculation and gives the wrong answer again.

View 9 Replies View Related

Caculate An Average Of Three Cells

Feb 12, 2009

I need to caculate an average of three cells. (A1 C1 D1) but if a cell contains $0 then it will exclude that cell from the calculation.

The fact that the cell's are continous seems to be the reason why I can't get around this

View 9 Replies View Related

Average Visible Cells

Jan 30, 2007

I've got the following function working, until I paste it into a cell that is referencing a range with all zeros.

Function Ave_VisibleUnits(Cells_To_Ave As Object, MyStep As Integer)
Dim i As Integer
Dim vCount As Long
Dim vTotal As Double
Calculate
Application.Volatile
vTotal = 0
vCount = 0
For i = 1 To Cells_To_Ave.Cells.Count Step MyStep
If Not Cells_To_Ave(i).Rows.Hidden Then
If Not Cells_To_Ave(i).Columns.Hidden Then
vCount = vCount + 1
If Not Cells_To_Ave(i).Value = 0 Then
vTotal = vTotal + Cells_To_Ave(i).Value '(It dies here)
End If
End If
End If
Next
vTotal = vTotal / vCount
Ave_VisibleUnits = vTotal
Calculate
End Function

View 2 Replies View Related

Average Of Every N Cells With Overlapping Values

May 29, 2014

I need to get the average of every 6 cells, but the first value of each group of 6 is the last of the previous group. I'd also like the output to be displayed beside the last value in each group. i.e.

CELL B7 =AVERAGE(A2:A7)
CELL B12 =AVERAGE(A7:A12)
CELL B17 =AVERAGE(A12:A17)
etc.

I saw this "=AVERAGE(OFFSET(A$1,(ROW()-ROW(B$1))*10,,10,))" in another post which seems similar but how to modify it.

View 4 Replies View Related

Count Number Of Cells That Have Value Above Their Average

Jul 2, 2014

I want to count the number of cells that have a value that is above the average of all of them. Ive tried the COUNTIF formula but no luck.

Sample attached : sample weds.xlsx‎

View 4 Replies View Related

Calculating Average Excluding Cells Containing <?

Jan 26, 2014

I am trying to calculate an average of 800 cells, where I would like to exclude a cell when a certain character is in it, namely "<".

View 4 Replies View Related

How To Get Average Of First 5 Non-Blank Cells In A Column

Mar 24, 2014

I have a problem and I found a good explanation of something similar here:

[URL]

In the original posting the following formula solves the problem (attached) TestData.xlsx

B1: =AVERAGE(INDEX(B3:B100,MATCH(TRUE,B3:B100<>0,0)):INDEX(B3:B100,MATCH(TRUE,B3:B100<>0,0)+4))

What I would like to return is the average of the 1st 5 values, but what if a number of cells after the first value were also blank

View 7 Replies View Related

Average A Series Of Cells Consecutively

Jun 16, 2009

I want to take the average of cells D3:D8 from worksheet 1 and put that answer in cell D1 of worksheet 2. After that, I want to take the average of cells D9:D14 from worksheet 1 and put that answer in D2 of worksheet 2. Average of D15:D20 from worksheet 1 and put the answer in D3 of worksheet 2, etc. etc. etc.

View 3 Replies View Related

Figuring An AVERAGE From 4361 Cells

Aug 3, 2009

I Need figuring an AVERAGE from 4361 cells... looking to get a blended rate on pricing.

I am not even sure if excel can avg that many cells.

View 4 Replies View Related

AVERAGE Of The Previous Meaningful Cells

Feb 26, 2006

B10 = AVERAGE(A1:A10),
B11 = AVERAGE(A2:A11), etc.

In case there are empty cells in the A-column, the result is not correct
anymore because AVERAGE does not take en empty cell into account.
For instance if A1:A10 are 1, A11:A20 are empty and A21:A30 are 2, the above
formula in B21 would give AVERAGE(A12:A21), or 2.

What I want is the average of the previous 10 meaningful cells so - in this
case - the average of A2:A10 and A21, or (9*1+2)/10 = 1.1

Question : Is there a possibility to calculate the average of the previous
10 meaningful cells (0 is meaningful, blank is not)

View 12 Replies View Related

Average Variable Number Of Cells

Oct 28, 2008

I'm once again here asking for a smart trick to do a difficult (for me) thing. I need to write a formula capable of averaging the n cells on its left. The problem is that the number of cells to be averaged is a variable contained in anothe cell therefore the exact number is not known (a priori) and changes at every sheet refresh.

View 3 Replies View Related

Average Based Filtred Cells

Feb 18, 2009

Exist any function which makes somtehing like =SUBTOTAL(9;AF5:AF407)? I mean it will be average only cells in column, whitch are displayed. Like subtotal counts only displayed cell.

View 2 Replies View Related

Find First Number In Specified Cells Then Average?

Feb 8, 2013

We are trying to track the average star values of reviews posted to our clients accounts. Here is an example of the spreadsheet we have set up:

Company Name
Review 1
Review 2
Review 3
Review 4
Review 5

Company 1
[CTY] 4 Stars review content
[ISP] 5 stars review content
[GGL] 4 stars review content
[CTY] 3 stars review content
[YELP]5stars review content

In this example, we use the initial [ ] to track which site the review was posted on ex: [CTY] means city search, [GGL] means google, etc.

We want to be able to track the average star value on each site. So the formula for City Search would scroll across the row of reviews, pick out reviews 1 and 4 and then find the first number in each and average them. The result in this case would be 3.5

From the research we have done so far, this looks like it will require a complex array formula. How to make this formula? Is this even possible what we are trying to do?

View 5 Replies View Related

Average Of Specific Cells In Various Columns

Aug 3, 2013

I am trying to find the average of a cell with a name in that may appear several times in various columns. I then need to find the average of the value against that name in all the columns that it occurs in. Example:

a
b
c
d
e
f
g
h
i
j
k

Aldridge Sean
2
3
3
Andrew Rob
4
3
3
Aldridge Sean
3
2
2

[Code] .....

In the above example I want to find the average score for aldridge sean in column b, f and j.

View 9 Replies View Related

Take Average Eliminating Blank And Zero Cells

Mar 7, 2014

Can I take average in a row ignoring blank cells and zero values.

View 3 Replies View Related

Ignore Blank Cells In A Average

Mar 3, 2004

I am doing an average of a column of cells. How do I tell excel to ignore the blank cells in the column and not calculate them in the average?

View 9 Replies View Related

Average & Sum Function With Empty Cells

Jun 8, 2007

I have data in Column A as follows:

A1 15
A2
A3 20
A4 56
A5 45
A6
A7 71
A8
A9 23

where cells A2, A6 and A8 are empty.

I want to be able to AVERAGE or SUM the first four nonblank cells. I know I could manually select the cells, but I have a spreadsheet with 30 columns and 40 rows, and the data (including empty cells) in each column is different.

Is there a single formula that will find the first four nonblank cells and then perform the AVERAGE or SUM function?

View 9 Replies View Related

Average Formula With Empty Cells

Mar 6, 2008

I have a grade system where I need to obtain an "Average" of grade data within four cells. At time there may onlt be two cells with a value or three. Example: The cell cell cantain a value of 100 points with the totral of 400 point. AS we know the "Average" would be 100 points. But is only two cells cantained 100 point and the other two where empty then the "Average" come back as 50 points. Because I have 4 cells that requires a value input. So my question is how do I create a formula that will give the correct value for the "Average" of data that is placed in the cells. The values are calculated as a total from the grades entered. That total is in F14, F31, F48, F65 - Now if F14 has a value of 100, and F31 has a value of 100 then the "Average" should be 100, but it is not for the is calculating F48, and F65 as 4 values, so the return is 50. The situtation is that I need all the cells for in some cases data will be necessary, but I need the "average" to be calcalated for only the values entered.

Where is the Formula.
=IF(SUM(F14,F31,F48,F65)=0,0,AVERAGE(F14,F31,F48,F65)) - My brain says this is simple but no matter what I do it returns 50.

View 9 Replies View Related

Formula To Average Cells In A Range

Nov 13, 2008

There are words in a cell and to its right is a number.

I have a name in P5. I need a formula in Q5 to add all the numbers
next to the same name in Range B4:O46.

Michael

View 9 Replies View Related

Delete Cells After Calculation Of Average

Dec 2, 2008

I`m working on a compression of a picture. For most of you that probably is pea-nuts, but I really just stopped wearing diapers when it comes to excel. At this point I have a sheet in front of me with 300 rows (length of the picture) and 185 columns (breadth of the picture). The cells are pixels and contain values ranging from 0 to 255.

I now need to do an operation I simply can't figure out. I need to select four cells at once (A1:A2 and B1:B2) and replace A1 by the average of these cells and the other three cells should be emptied during that operation. This operation I should do for the whole sheet. In the end I should see a chart with values in every two cells (A1, A3, A5 ... for the first row) as the other cells will be emptied

View 9 Replies View Related







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