# 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
ADVERTISEMENT
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
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
Mar 7, 2014

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

View 3 Replies
View Related
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
Jul 3, 2014

I have a scenario where I have a rolling list of sales figures which get added to each week that passes.

I need a formula that will calculate the last 5 weeks of sales and generate an average - which I think I have an idea how to do.

The sticking point is that so as not to skew the averages, when there has been an exceptionally busy or quiet day for a reason we know about I exclude the sales from that week.

This then interferes with the averages as it either takes it as a zero and lowers it or seems to stop formulas from working.

So to summarise:

Average of last 5 weeks sales

Excluding any blanks

Dynamic enough to always pick up the last 5 values in the list (i.e. the last 5 weeks)

View 6 Replies
View Related
Sep 3, 2009

I have an array formula that calculates the average of numbers between two dates:

{=AVERAGE(IF('Date Range'!$B:$B>$H$4,IF('Date Range'!$B:$B<=$B$3,'Numbers to Sum'!$C:$C)))*100}

The start date is the day after the date in H4 and the end date is in cell B3. The dates are in column B and the numbers to sum associated with these dates are in column C.

Some of the cells in column C are blank and my formula is taking these blanks into account in calculating the average, while I would prefer not to count them in the calculation.

Can someone please suggest how I could amend the formula above to accommodate this?

View 8 Replies
View Related
Aug 15, 2007

I have a column of data that contains various blank cells where no data was measured. In the adjacent column I want to take the moving average of the last 4 data points including the most recent entry. My problem is i do not know how to handle blank cells where there was no data. I need it to average the last four in the column where data acutally exists. I am ok with using helper cells if needed and I am not worried about the first four results at this time.

Example data

A..................B

15

50

25

20................55

Blank............55

30................31.25

35................27.5

blank............27.5

blank............27.5

15................25

10................22.5

15................18.75

40................20

blank.............20

View 10 Replies
View Related
Jul 10, 2008

I've got a spreadsheet that I do every month with columns of numbers that I average. This sheet has to match about 10 others similar. The columns are divided by Weekdays, Saturdays, Sundays. But some months there are no entries for certain cells on Saturday or Sunday.

I thought that if I just used the Average function, it would dismiss and not count the blank cells. Alas, apparently not. I've highlighted in yellow the one column that I'm really having trouble with.

View 7 Replies
View Related
Oct 24, 2011

I am trying to get a rolling 8wk avg of a large group of data. I am trying to take the avg of 8 vlookups:

=AVERAGE(VLOOKUP($A$9,'Raw Data'!$A:$DV,MATCH(B8,'Raw Data'!$2:$2,0), FALSE),VLOOKUP($A$9-7,'Raw Data'!$A:$DV,MATCH(B8,'Raw Data'!$2:$2,0), FALSE),VLOOKUP($A$9-14,'Raw Data'!$A:$DV,MATCH(B8,'Raw Data'!$2:$2,0), FALSE),VLOOKUP($A$9-21,'Raw Data'!$A:$DV,MATCH(B8,'Raw Data'!$2:$2,0), FALSE),VLOOKUP($A$9-28,'Raw Data'!$A:$DV,MATCH(B8,'Raw Data'!$2:$2,0), FALSE),VLOOKUP($A$9-35,'Raw Data'!$A:$DV,MATCH(B8,'Raw Data'!$2:$2,0), FALSE),VLOOKUP($A$9-42,'Raw Data'!$A:$DV,MATCH(B8,'Raw Data'!$2:$2,0), FALSE),VLOOKUP($A$9-49,'Raw Data'!$A:$DV,MATCH(B8,'Raw Data'!$2:$2,0), FALSE))

However, in some cases, the cell to be looked-up may be blank. Using the formula above, the result of these vlookups is "0". I want to take the average of these vlookups excluding the blanks from the 'Raw Data' sheet.

View 6 Replies
View Related
Sep 10, 2012

I have a sequence of 40 columns of data, representing 10 weeks worth of events with 4 values per week

I need to average the first pair for each week, ignoring zeros and blanks, and also separately the 2nd pair of cells, across the whole 40 columns

I am trying to come up with a neater solution which takes into account the zeros, at the moment I have the following which does not, for row 34

=IF($AR34>0,ROUND(AVERAGE(D34:E34,H34:I34,L34:M34,P34:Q34,T34:U34,

X34:Y34,AB34:AC34,AF34:AG34,AJ34:AK34,AN34:AO34)*2,2),0)

I could use SUM, COUNT COUNTIF etc but its gonna get messy

Using EXCEL 2010

View 5 Replies
View Related
Jul 25, 2013

Is it possible to show "0" zero in the total average column without inputing zeros in the blank cells in row B3:E3 & B4:E4? There are months we receive no boat & RV orders, so those months wll be zero most of the time. Instead of having #DIV/0! it show 0, without having to input zero in cells to compute the average.

A

B

C

D

E

F

1

Jan

Feb

Mar

April

Total Average

[Code] .......

View 1 Replies
View Related
May 26, 2009

Here is the formula I am using however it interprets the blank cells as 0% and includes it in the average. To make it more difficult there will be some 0%'s.

View 4 Replies
View Related
May 19, 2008

I'm looking for a function that will display the average of a row of cells, while at the same time not displaying any error messages. It's easy to average cells without blank values, but to combine that with no errors is difficult for me. I saw many ways to do the average, one of which is:

= SUM(A1:E1)/COUNTIF(A1:E1,">0")

That function doesn't work for a row of blank cells (i.e., hidden rows), though. The result is an error message.

I also read about a way to ignore an error in a computation:

=IF(ISERROR(F1),"",F1)

The problem is when I combine those functions I get a blank cell no matter which function I put first, and without regards to cell values or not. The reason I want this to be error-free is that I have to average the "average column" at the bottom of the table, too (i.e., F100).

View 9 Replies
View Related
Feb 17, 2010

I would like a macro to do this...If a cell in column G is blank and the cell in the same row in column C is NOT blank, highlight the blank cell in column G Red.

I need the search to stop ONLY when it gets down to the bottom-most row of data in column A.

Note: Any row headers will always be in row 1 only

Current...

View 9 Replies
View Related
Oct 2, 2008

I'm trying to figure out if there is a formula I could use that will calculate the average of a group cells in one column based on the condition of another column. It's hard to explain, so I will show an example. All the data is on a one worksheet and I'm trying to show totals and averages on another worksheet. Location, Days

17, 4

17, 3

17, 5

26, 4

26, 8

26, 10

26, 7

On a different worksheet I would want to know what the average days are for each location. So is there a formula that I could use that will look at column A for a specified location number and then average all the days in column B for that location? I'm using Excel 2003 and have tried using the Average(if) but with no success.

View 2 Replies
View Related
Jun 15, 2007

I was curious if it is possible to give a single cell multiple number formats based on what the number is in the cell. So for example if my number is bigger than 1000, I would like to use comas so that it looks like this 1,000. However, if it is less than 1000 I would like it to look more like this 999.00.

View 6 Replies
View Related
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
Mar 18, 2009

I'd like a macro that does 3 things..

1. Find the last row (cell) of data in the "Customer Number" column. This search should be by the name "Customer Number" rather than by column letter because the column that "Customer Number" will be in can change.

2. Find the column named "Purple" (also by name for same reason)

3. If the "Purple" column has no blank cells in those same number of rows as the "Customer Number" column, delete the whole "Purple" column.

View 11 Replies
View Related
Dec 30, 2013

I would like to find the weighted average of the values in the "score" column. Additionally, I would like to only find the weighted average if the student is jack and jane. I have attached my workbook for review.

View 6 Replies
View Related
Nov 27, 2006

I was wondering if there is a way for excel to compare cells and identify when they are identical. My objective for this is as follows. Lets say i have some data entered in cells A1:A10. Suppose cells A1,A3,and A4 had the same value (112-343). Now suppose cells B1:B10 had values also, lets say B1=2, B3= 2.5 and B4=8. I need for excel to go through the A1:A10 range and realize when the A cells have identical values, after this is realized i want excel to take the values in the B cell that correspond to the identical A cells, average them and then store them in cell C. And if there are mutliple identical cells i would like the routine to be able to identify this also. lets say A1=A3=A4=(112-343) and A6=A8=A9=(154-456) ....

View 7 Replies
View Related
Jan 13, 2014

I have this formula which is counting the number of cells in a column that fall within each calender month.

However, if there is a formula at the bottom of column B and C that yield a "", the formula breaks.

In my workbook, B/C:133 have a formula =""

I will need the formula in column E to work if there is a formula that yields a "" in column B and C.

View 5 Replies
View Related
Oct 4, 2013

In sheet "diary" I have data in certain rows in column A8:C10000 that contains values if a certain condition is met. I need a vba to copy and past only non blank cells in column D8:F10000. I first wrote a formula with index but it takes too long to caculate.

View 9 Replies
View Related
Feb 28, 2014

I have an excel file and what i want is to sum two different columns to a third one, however there are some important notes:

1. Column A has dates

2. Column B has numbers f.e. 25, 30, 35 etc. , which have to be added to dates of column 1 , so a new date will be created in the new column

3. Colums A and B are not next to each other.

4. Some cells of column A and column B are blank , actually columns are sth like this

A B C

5/2/2014 25

blank blank

8/5/2014 35

10/9/2014 30

blank blank

When a date value occurs in a cell of column A , then always a number will occur in column B

When a cell is blank is column A , then the respective cell of column B will also be blank

What i want is to add values of column A and B to create column C automatically ( each column has 1000 cells ) , however in case of blank cells , i want a blank cell in column C, not something like #####

Apart from this , i want in the future , when i expand column A and B , when values are entered there, i want column C to be created automatically.

View 11 Replies
View Related
Mar 20, 2008

I need a macro to copy and paste data from Col A to Col B. But I need it pasted 1 row up. In other words if A6 has data I need it pasted in B5 and Bolded. I got a start but don't know how to finish.

Dim ii As Long

For ii = lastrow To 6 Step -1

If Not IsEmpty(. Range("A" & ii).Value) Then ****.Range("A" & ii).Copy*****

Next ii

View 4 Replies
View Related
Sep 24, 2006

I need a cell formula that will (a) identify the highest N values in an above specified column range, (b) color the interior of those N cells (I suspect that this is not possible), and most importantly (c) return the average value of N corresponding cells, where the corresponding cells are located on the same rows as the identified N high value cells but in a specified column to the left (not necessarily adjacent)

Does anybody know what this formula would look like?

Example:

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

...| A | B | C | D | E | F |

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

1 |....| * |.........| 7 |...

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

2 |....................| 2 |...

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

3 |....| * |.........| 6 |...

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

4 |....................| 1 |...

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

5 |....| * |.........| 5 |...

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

6 |....................| ? |...

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

? = average of B1,B3,B5 where (N = 3) and (specified column to the left = B)

View 4 Replies
View Related
Mar 29, 2013

I have a huge excel file (who doesn't ) and would like to create a macro to select cells between 2 blanc cells in a column. (Then another macro will continue to select all in the table for that specific range and copy-paste to another sheet. But this part is not relevant)

The details

The table will be like below.

So the macro should select between F2:F6. (then another macro will copy F6:A3 and cut-copy this range to another sheet); and when I re-run this macro this time it will copy the range of Model B..

A

B

C

D

E

F

[Code]...

View 2 Replies
View Related
Feb 20, 2014

I want to create a 'capture all' formula that adds up cells in a column This column may contain blank cells in one column but when copied to another column, the same row may contain a value.

example I want the sum of A5 + A8 + A10 + A22 but in column A cell A5 may be blank and so may A22 but when the formula is copied to column B all the cells may contain a value

When I try to do it I receive a Value# error for columns containing blank cells I don't want to do a separate formula for each column

View 5 Replies
View Related
Nov 3, 2008

I am creating a chart and want to get a count of only the blank cells in Column D only if there is information contained in Column A (same row). I am using Excel 2003.

View 2 Replies
View Related
Jan 8, 2007

I know that "Alt + =" (Alt + Equal Sign) is a shortcut key combination that will sum a row or column of numbers. The problem is that it stops when it encounters a blank or empty cell and won't sum the entire row/column. I know I can create a macro to get around this, but is there a standard shortcut key or option setting that will quickly sum the entire row/column even when it contains empty cells?

View 9 Replies
View Related