+ Reply to Thread
Results 1 to 5 of 5

SUM function in range with blank cells

  1. #1
    Registered User
    Join Date
    03-21-2013
    Location
    Newmarket, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    15

    SUM function in range with blank cells

    I've tried using SUM and SUMIF but it's returning a value of zero and there are values in the range.
    So the SUMIF formula I tried looks like this; =SUMIF('2014'!N3:N196,">0"), so on the 2014 sheet I want all the cells that are not blanks to return the sum. The SUMIF needed a criteria argument, so I included the >0.

    The SUM formula I tried was simply; =SUM('2014'!N3:N196)

    Both return a value of 0.00

    The range N3:N196 contains numbers in some cells and blanks in others. There is no text.
    I think one or both of these formulas should work but neither is.

    Any ideas.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUM function in range with blank cells

    Sounds like your numbers are not really numbers, but "Numbers Stored As Text"

    What does this return
    =ISNUMBER('2014'!N3)
    Filled down to N196

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: SUM function in range with blank cells

    Your formula is trying to sum cells containing text.
    They may "look" like they contain numbers, but they don't.

    Two approaches:
    Convert the numeric text to numbers and use the SUM formula:
    • Select '2014'!N3:N196
    • Data.text-to-columns...click: Finish

    or
    Coerce the text to numbers within the below formula:
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    03-21-2013
    Location
    Newmarket, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: SUM function in range with blank cells

    That was the issue. The values have been converted to numbers and the simple SUM formula is working. Thanks to both of you.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUM function in range with blank cells

    You're welcome.

+ 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. [SOLVED] Formula/Function Required to Count Blank Cells in a Dynamic Range
    By MattyD89 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 07-14-2014, 04:30 AM
  2. Is there a function that counts the number of non-blank cells in a range?
    By xibalba in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-23-2012, 04:09 AM
  3. Replies: 15
    Last Post: 04-25-2012, 05:21 PM
  4. Advanced filter with blank cells / Dynamic named range with blank cells
    By Jason_2112 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-15-2010, 12:06 PM
  5. function to blank specific cells in a range
    By elidds7 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-02-2010, 06:53 PM

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