+ Reply to Thread
Results 1 to 7 of 7

Summing functions not working

  1. #1
    Forum Contributor
    Join Date
    10-11-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    230

    Summing functions not working

    Summing Data.xlsx
    I have attached a file that has me totally stumped. Please look at the two summary sheets. You will see on the "Summary" tab there's a formula in cell J7. It is calculating properly. That same exact formula is in cell J8 and I 0 as the result. There is absolutely no difference between the formulas. You can then see on the "Summary2" tab that cells J5-J13 also contain that exact same formula. You'll see that sometimes I get the right result and other times I get a 0. Both sheets also at times give me #VALUE! as a result. I'm confused how the EXACT same formula can give different results cell location of where the formula is placed.

    Then another strange occurence:
    On the "Summary" sheet in cells J17-23 is a different sum formula. This one is only giving me the sum of one column even though I've asked it to sum 6 columns. Can anyone tell me why my Excel is not cooperating and what I can do to fix it?

    Thanks so much.

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Summing functions not working

    Becasue it's reading the array as True and Falses - this is what it looks like if you expand it out.

    =IF({TRUE;FALSE;TRUE;FALSE;TRUE;FALSE},SUM(Details!$L$7:$Q$12),0)

    So you get True = the answer is returned, then false, 0 is rteturned then after 3 iterations of this it runs out of true/false options and returns an error
    Happy with my advice? Click on the * reputation button below

  3. #3
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Summing functions not working

    However you have not mentioned.. what will be your expected result..

    can you please reupload.. with expected result.. (manualy )
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  4. #4
    Forum Contributor
    Join Date
    10-11-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    230

    Re: Summing functions not working

    Thanks for your response. I assume the response is to the formula =IF(Details!$K$7:$K$12="Cap",SUM(Details!$L$7:$Q$12),0). Do you know why the regular SUMIF formula is not working?

  5. #5
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Summing functions not working

    Quote Originally Posted by NS4Excel View Post
    Thanks for your response. I assume the response is to the formula =IF(Details!$K$7:$K$12="Cap",SUM(Details!$L$7:$Q$12),0). YES Do you know why the regular SUMIF formula is not working? I assume because your sum range has multiple columns One way to fix that might be to sum across all the columns first then put this final column in your sumif formula (as the third range)
    See above for my best guess

  6. #6
    Forum Contributor
    Join Date
    10-11-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    230

    Re: Summing functions not working

    Debra: The expected result is $74. What I want it to do is sum the data in L7 to Q12 if it finds "Cap" in cells K7 to K12. If I can get this simple formula to work I can then expand my range. Thanks.

  7. #7
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Summing functions not working

    OK this will work as an array formula (Cntl + Shift + Enter) - Squiggly brackets - BUT and it's a big BUT you can't have blanks in your cells, you need to fill them with zeros

    =SUMPRODUCT(MMULT(L7:Q12,TRANSPOSE(COLUMN(L7:Q12)^0)),IF(K7:K12="Cap",1,0))

    I removed sheet references too just to make it easier

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Summing Cells with Functions
    By mtsprink52 in forum Excel General
    Replies: 2
    Last Post: 10-16-2014, 10:20 PM
  2. [SOLVED] Problem with summing IF functions (not SUMIF)
    By Jovica in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-30-2012, 06:42 AM
  3. AddIn With custom functions - Functions not working in Excel2010
    By brum17 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-10-2011, 08:25 AM
  4. Summing the functions of the previous function
    By janschepens in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-24-2011, 01:06 PM
  5. Automatic summing using excel functions
    By krishnapunekar in forum Excel General
    Replies: 0
    Last Post: 07-12-2010, 07:21 AM

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