Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Excel 2007 SUM question  (Read 2814 times)

0 Members and 1 Guest are viewing this topic.

reddevilggg

    Topic Starter


    Expert

    Thanked: 69
  • Experience: Beginner
  • OS: Windows 7
Excel 2007 SUM question
« on: March 20, 2011, 04:30:03 PM »

I've been told by my tutor that i do not need to over use the 'SUM' function. (Apparently, she dislikes the over use of it and marked me down for using it in the first part of my assignment).

Problem is, i'm now going through the second part and i need to find the total of a column, so i use the SUM function, i cant 'not' use it. I've been through the 'excel options' and can't see anything to change. I'm i missing something obvious or is it because i used it unneccessarily with an IF statement and lost mark and know im paraniod about using it.

So, basically, my question is, when find the total of a column, is the SUM function mandatory?
11 cheers for binary !

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Excel 2007 SUM question
« Reply #1 on: March 20, 2011, 04:38:41 PM »
It doesn't really answer the question, but it would be what I use.

Obviously, the other method would be to use A1+A2+A3... etc which would be stupid.

Lastly, I think it's unprofessional for her to mark you down just because she doesn't like something. It's Excel. If you were working with VBA or a programming language, then yeah, coding style might make a difference, but using SUM isn't a bad practice, because it does what it's supposed to. It sums the range.


How did you use Sum() with IF?
I was trying to dereference Null Pointers before it was cool.

reddevilggg

    Topic Starter


    Expert

    Thanked: 69
  • Experience: Beginner
  • OS: Windows 7
Re: Excel 2007 SUM question
« Reply #2 on: March 20, 2011, 04:51:03 PM »

How did you use Sum() with IF?

I had to find the total charge and if it totaled 0 then cell had to be blank. To tell the truth i can see her point, but my arguement is that, i havn't been taught not to use it, anyway, i wrote

=IF(SUM(C7*$D$2)=0, "",(SUM(C7*$D$2)))

It obviously works and i can see that =IF(C7*$D$2=0, "",C7*$D$2) would of worked the same. I just wish that i'd of known about the 'efficient use of formula' rule, i just wrote it as i 'think' it.
11 cheers for binary !

rthompson80819



    Specialist

    Thanked: 94
  • Experience: Experienced
  • OS: Windows 7
Re: Excel 2007 SUM question
« Reply #3 on: March 20, 2011, 05:10:02 PM »
Obviously, the other method would be to use A1+A2+A3... etc which would be stupid.

I used to work with someone who claimed to be an expert with Excel.  I just happened to be looking over her shoulder one day as she was building a spreadsheet, and that's how she did it.  And they were big spreadsheets.

I showed her how to use the SUM function, and she thought it was the greatest thing she had ever seen.

reddevilggg

    Topic Starter


    Expert

    Thanked: 69
  • Experience: Beginner
  • OS: Windows 7
Re: Excel 2007 SUM question
« Reply #4 on: March 20, 2011, 05:13:31 PM »

While on the subject, does anyone know how to get the 'x-bar' symbol representing the mean. I've been looking through the symbols for ages, googles' not much help.
11 cheers for binary !

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Excel 2007 SUM question
« Reply #5 on: March 20, 2011, 06:23:29 PM »
I had to find the total charge and if it totaled 0 then cell had to be blank. To tell the truth i can see her point, but my arguement is that, i havn't been taught not to use it, anyway, i wrote

=IF(SUM(C7*$D$2)=0, "",(SUM(C7*$D$2)))

It obviously works and i can see that =IF(C7*$D$2=0, "",C7*$D$2) would of worked the same. I just wish that i'd of known about the 'efficient use of formula' rule, i just wrote it as i 'think' it.


In the same situation I probably would have used another cell.

Actually, to be honest I find myself constantly just writing a VBA function whenever I need anything in excel, rather then looking up whatever silly function they have.

I don't have to use excel much though :P


While on the subject, does anyone know how to get the 'x-bar' symbol representing the mean. I've been looking through the symbols for ages, googles' not much help.

found this:

http://www.contextures.com/xlfaqFun.html#bar



In any case, As far as I know, SUM is the best way to find the Sum of a column. There are other ways but they are more verbose.

I was trying to dereference Null Pointers before it was cool.