+ Reply to Thread
Results 1 to 6 of 6

Adding two cells not working

  1. #1
    Registered User
    Join Date
    05-27-2014
    Posts
    13

    Adding two cells not working

    Hey yall, This is extremely basic and something I have done a thousand times, but for some reason, now when I am adding two cells (which have numeric values) the total cell is showing 0. Any ideas why?

    Example Cells to be added have formulas: Cell A1 =SUMPRODUCT(H9:H1000,(A9:A1000<=9.14)*(A9:A1000>=9.08)*(D9:D1000="Y")) which results in a value of 5.
    Cell A2 =SUMPRODUCT(I9:I1000,(A9:A1000<=9.14)*(A9:A1000>=9.08)*(D9:D1000="Y")) resulting in 13

    But Cell A3 (=SUM(A1:A2)) reads 0.

    Suggestions?

    Thanks

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,770

    Re: Adding two cells not working

    I set this up using your formulas, but I had to provide the data myself. When I get 5 and 13, my A3 formula gives 18. So please attach your file for a more thorough diagnosis.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    05-27-2014
    Posts
    13

    Re: Adding two cells not working

    does the cell format matter? since I have cells with text and cells with numeric values, would those affect the formula's performance?

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,770

    Re: Adding two cells not working

    Format doesn't matter but content does. (Format is just how it's displayed.) If the results of the formulas in A1 and A2 are text rather than numeric, even if they look like numbers, then the result in A3 will be 0. Instead of using SUM, try this

    =A1+A2

    That will force a conversion of text to numbers to be able to perform the addition. SUM does not force a conversion, it just ignores text.

    However, I am still not seeing how your formulas can have a text result. If my formula does not help then I can't do anything else without your file.

  5. #5
    Registered User
    Join Date
    05-27-2014
    Posts
    13

    Re: Adding two cells not working

    The problem appears to be that the formulas within the cells I was adding (SUMPRODUCT), had ranges of analysis too large to compute (9-1000). Once I reduced the range (300-500) everything works fine.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,770

    Re: Adding two cells not working

    I believe there is no range size limit for SUMPRODUCT. I still think you have an issue in the data itself. Reducing the range may be omitting the data causing the issue.

+ 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. Correct/Working (Index,Match) formula not working between cells
    By barnerd in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 02-11-2014, 01:20 PM
  2. Replies: 3
    Last Post: 04-23-2009, 07:33 PM
  3. Adding HH:MM:SS not working
    By nmss18 in forum Excel General
    Replies: 6
    Last Post: 02-18-2009, 01:53 PM
  4. Adding Time: Adding individual cells works, but SUM doesn't
    By fredmeister in forum Excel General
    Replies: 17
    Last Post: 04-11-2008, 10:40 AM
  5. Working with and adding Menus?
    By AJ Master in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2005, 05:05 PM

Tags for this Thread

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