Solved

Dividing by the Sum of Multiple Cells

Posted on 2014-02-26
12
177 Views
Last Modified: 2014-03-11
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
0
Comment
Question by:Matthew_B
  • 4
  • 4
  • 2
  • +2
12 Comments
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 39888859
The formula is fine.  Please explain what you mean by "not working".
0
 
LVL 49

Expert Comment

by:Rgonzo1971
ID: 39888860
Hi,

Your formula is perfectly sound

What is your error?

Regards
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 39888900
Make sure all of your cells have true numeric values in them.  Also, if B7 = 0, well, division by zero is undefined :)
0
 
LVL 23

Expert Comment

by:Eirman
ID: 39889052
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
 

Author Comment

by:Matthew_B
ID: 39889214
For some reason it kept coming up zero. I built a work around but I don't know why it kept giving zero.
0
 
LVL 23

Expert Comment

by:Eirman
ID: 39891414
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 10

Expert Comment

by:JEaston
ID: 39891559
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
 

Author Comment

by:Matthew_B
ID: 39901169
I've requested that this question be deleted for the following reason:

Problem solved myself.
0
 
LVL 23

Expert Comment

by:Eirman
ID: 39901170
Matthew_B.

Please explain how you resolved your problem, and why none of the information posted here was helpful to you.
0
 

Accepted Solution

by:
Matthew_B earned 0 total points
ID: 39909375
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
 
LVL 23

Expert Comment

by:Eirman
ID: 39910000
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
 

Author Closing Comment

by:Matthew_B
ID: 39919988
Common sense
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
excel previous month in yyyymm format 3 93
how to fix the excel 3 100
REGEXTRACT expression to extract text between brackets 8 62
Calculating T-SCORE inside Excel. 3 110
Citrix policies are the most efficient method to configure and tune XenDesktop environments, allowing organizations to control connection, security and bandwidth settings based on various combinations of users, devices or connection types.  Citrix …
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Viewers will learn how to find and create templates in Excel 2013.
Viewers will learn the basics of the new Quick Analysis feature in Excel 2013.

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now