Dividing by the Sum of Multiple Cells

I am trying to add five cells together and then divide the sum by another cell. Why does the formula below not work? What should I be doing differently?
= SUM(A4:E4)/B7
Matthew_BAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Patrick MatthewsCommented:
The formula is fine.  Please explain what you mean by "not working".
0
Rgonzo1971Commented:
Hi,

Your formula is perfectly sound

What is your error?

Regards
0
Patrick MatthewsCommented:
Make sure all of your cells have true numeric values in them.  Also, if B7 = 0, well, division by zero is undefined :)
0
Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

EirmanChief Operations ManagerCommented:
This is always a useful visual guide ....
When you click on your formula in the formula bar, the different parts of the formula will change colour. These colours should match up with the relevant cells below.
Have a look at Blue & GreenBlue & Green
0
Matthew_BAuthor Commented:
For some reason it kept coming up zero. I built a work around but I don't know why it kept giving zero.
0
EirmanChief Operations ManagerCommented:
I don't know why it kept giving zero.
Very strange. Post the sheet here if you like. As you can see I reproduced the sheet and I get 13 in A3

If you ever run into this type of problem, break the formula into chunks ....
e.g. What happens if you enter = SUM(A4:E4) into F4
0
John EastonDirectorCommented:
I agree that it would be easier to troubleshoot if you could post your spreadsheet.  But one obvious issue comes to mind that I have seen before.

Check the cell formating in Excel.  If it is general or numeric it should work fine.  However if the cells in A4 - E4 are marked as Text then Excel will always return 0.  You may find after changing from text format to general you will need to re-type the numbers for the format to apply.
0
Matthew_BAuthor Commented:
I've requested that this question be deleted for the following reason:

Problem solved myself.
0
EirmanChief Operations ManagerCommented:
Matthew_B.

Please explain how you resolved your problem, and why none of the information posted here was helpful to you.
0
Matthew_BAuthor Commented:
Problem solved myself. When I typed everything over again I noticed that I did not have a space between the cell identifier and the division character. I didn't think that something like this would matter but the minute I added the space everything started to work. Thanks for the help anyway.

= SUM(A4:E4) / B7
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
EirmanChief Operations ManagerCommented:
That's fine Mathew.

Many formulas will work with extra spaces, but you definitely do not need any spaces.
The re-typing must have fixed it. (Perhaps you used a backslash instead of a forward slash).

I guarantee you that your formula will still work if you delete the added spaces.
0
Matthew_BAuthor Commented:
Common sense
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Spreadsheets

From novice to tech pro — start learning today.