+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : sum a column containing formulas

  1. #1
    Registered User
    Join Date
    06-10-2010
    Location
    Newcastle Australie
    MS-Off Ver
    Excel 2007
    Posts
    10

    Smile sum a column containing formulas

    Good Evening everyone. This is my first time on this forum.
    I need some of your expert advice with this problem I have encountered with Excel 2007.

    i have 4 columns that contain numbers. no big deal here...
    The cells in these columns have formulas ( eg: =if(c4<>"",left(r4,2). The source of this number looked like this: 28 (5.6.3), I just want the first number).

    So in my columns, I have formulas that show the result of this extraction.

    I now want to sum the results of these formulas. 28 etc....

    how can i do this, as when I use the common =sum(column range), all I get is 0.

    Would appreciate any assistance from anyone. Kind Regards..

    By the way, i am a novice at excell 2007, so any answers will probably have to be beaten into me.

    Again, Kind Regards.

    gsdanger
    Last edited by NBVC; 06-10-2010 at 09:49 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: sum a column containing formulas

    Change the original formula to:

    =if(c4<>"",left(r4,2)+0....

    the +0 coerces your result to true numbers..as LEFT() results are always text... and so you cannot sum...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-10-2010
    Location
    Newcastle Australie
    MS-Off Ver
    Excel 2007
    Posts
    10

    Thumbs up Re: sum a column containing formulas

    Quote Originally Posted by NBVC View Post
    Change the original formula to:

    =if(c4<>"",left(r4,2)+0....

    the +0 coerces your result to true numbers..as LEFT() results are always text... and so you cannot sum...
    Good Day NBVC.

    Hooray!!...Success.now I can sleep better.
    NBVC, thank you very much for your prompt and accurate reply. Sometimes it's better to ask the knowledgeable, rather than attempting to find the answer in a reference book (it's usually not in there). Once again, thank you for this fix. it worked beautifully.

    Kind Regards..

    gsdanger

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1