Avatar of al4629740
al4629740
Flag 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!
sample.xlsx
Microsoft Excel

Avatar of undefined
Last Comment
Rob Henson

8/22/2022 - Mon
Shaun Kline

Have you tried using the Average function? It will allow for multiple ranges.
ASKER CERTIFIED SOLUTION
barry houdini

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
al4629740

ASKER
What if I want to specify over two ranges as seen in the attached sheet?
Rob Henson

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:

=AVERAGE(B7:B32,E7:E32)

Thanks
Rob H
Your help has saved me hundreds of hours of internet surfing.
fblack61