+ Reply to Thread
Results 1 to 3 of 3

sumif is referencing blank cells and providing a value

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-17-2009
    Location
    Torquay, England
    MS-Off Ver
    Excel 2013
    Posts
    253

    sumif is referencing blank cells and providing a value

    Hi,

    How do I get 'SUMIF' to ignore blank cells?

    sumif(a1:a10,h1,b1:b10) - then fill down

    a= ID number
    h1 = ID number
    b= cost info

    eg 'matt' in 'h' is finding 'matt' in 'a' and reporting on the cost info against that name in 'b', but in the middle of the list a blank is matching a blank and returning a subtotal which is in the cost column.

    I want to put sumif(a1:a10<>"",h1, b1:b10) but this doesnt work!

    Thanks and regards
    Last edited by Gooford; 10-14-2009 at 05:44 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: sumif is referencing blank cells and providing a value

    Can you post a sample - I for one am struggling to visualise what you're doing... ie your sample formula has no absolute references...

    A SUMIF will only return a value where criteria range is blank if the criteria itself is blank... if that's the case and you want to avoid this then perhaps:

    =IF($H1="","",SUMIF($A$1:$A$10,$H1,$B$1:$B$10))
    copied down

  3. #3
    Forum Contributor
    Join Date
    09-17-2009
    Location
    Torquay, England
    MS-Off Ver
    Excel 2013
    Posts
    253

    Re: sumif is referencing blank cells and providing a value

    You have hit the nail on the head. The cell in h was blank in the one instance. Your formula has sorted it out, thank you very much!

+ 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