Count while Skipping Blank Then find Percentage based on total numbers in cell

Excelnoub

Board Regular
Joined
Nov 17, 2011
Messages
230
Good evening everyone,
When it comes to Formulas I am so lost. I am looking for the following formula.

I am working with the following Sum formulas
=SUM(E3:E20)/7

I have information to write in E3 to E20. (Numbers) some cells will be blank.

I need the following formula:

Look in E3 to E20 and calculate the total Then
Calculate the total amount of cells populated then keep it in bank
Now take the first total then divided it by the total amount of cells (populated) while skipping the blank cells

Example:

E3: 2
E4: 4
E5:
E6: 7
E7: 2

Total: 15
There is 4 numbers from E3 to E7 therefore divide this total number by 4 = 3.75

3.75 Should go in E9.

How in the H can I do this...

Please Help Ièm going nuts
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
How do I write this to one specific cell Ie: E9 cell =sum(e3:e7)/max(1,count(e3:e7)) =sum(e3:e7)/max(1,count(e3:e7))?

Sorry for this... Good with VB but formula I suck
 
Upvote 0
Got it thank you,

There was also the following: =Sum(e3:e7)/Count(e3:e7)

What I meant is to enter in e9...

Either:

=sum(e3:e7)/max(1,count(e3:e7))

Or

=iferror(averageif(e3:e7),0)

Or, if you want to, just

=sum(e3:e7)/count(e3:e7)

The latter will yield #DIV/0! when there is nothing in e3:e7.
 
Upvote 0

Forum statistics

Threads
1,213,559
Messages
6,114,302
Members
448,564
Latest member
ED38

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top