Link to home
Start Free TrialLog in
Avatar of al4629740
al4629740Flag for United States of America

asked on

calculate cells to one field using a formula. Calculate total in field divided by number of fields

I have attached an excel spreadsheet.

Basically I need to take only the values that are filled out in the blue section, add them up, and then divide them by the number of fields that had a value in it.

For example.

Since there are 7 fields in blue that were filled out, then the result in the yellow field at the bottom of the sheet would be 20 / 7 = result

How can I have a formula that would calculate this complex solution?  HELP!
Avatar of Shaun Kline
Shaun Kline
Flag of United States of America image

Have you tried using the Average function? It will allow for multiple ranges.
Avatar of barry houdini
barry houdini
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of al4629740


What if I want to specify over two ranges as seen in the attached sheet?
Barry's solution covers the whole range from B to E so includes both ranges. The columns in between will be ignored because they are text or blank.

If the columns in between may get numbers then you can put multiple ranges into the Average formula:


Rob H