+ Reply to Thread
Results 1 to 12 of 12

ISBLANK with SUMIFS?

  1. #1
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    ISBLANK with SUMIFS?

    Hi all,

    I have a problem with an "isblank" formula. I have a sumifs formula, that works just fine. Issue is, that it returns "0" for empty cells. I want it to return an "N/A", though. I wrote the following formula*:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    * Sheet1 is in a different workbook, I just deleted the file name before it.

    Is the formula "wrong"? If I just go to the respective cell and write:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    it returns "N/A".

    Thanks a lot in advance for your support!

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: ISBLANK with SUMIFS?

    Give a try to this way.

    =IF(your sumifs formula)=0;"n/a";your sumifs formula)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Re: ISBLANK with SUMIFS?

    Not having tested it yet, but if the cell actually contains a "0", I want it to return "0".

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: ISBLANK with SUMIFS?

    Quote Originally Posted by Cunner View Post
    Not having tested it yet, but if the cell actually contains a "0", I want it to return "0".
    From your first post.

    ... Issue is, that it returns "0" for empty cells. I want it to return an "N/A"
    Which one is correct?

  5. #5
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Re: ISBLANK with SUMIFS?

    Both .

    If I have a cell, that is empty, i.e. "", I want the formula to return "N/A".
    If the cell actually contains "0", I want the formula to return "0".

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: ISBLANK with SUMIFS?

    Ha ha

    Ok. The problem now is that i can not understand how a SUMIFS formula, gives you blank cel("") as result??..

    Would you like to upload a small sample workbook?

  7. #7
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Re: ISBLANK with SUMIFS?

    I have created a really simple example sheet, but it shows the error quite well.
    Column E includes just the sumifs, Column F the embedded sumifs in isblank and if, and Column G has just the check if a cell is empty.
    The result in Column F should look exactly like Column D.

    The purpose of the formula is to collect the data for a much bigger sheet. I am aware, that in my example sheet there are easier solutions .
    Attached Files Attached Files

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: ISBLANK with SUMIFS?

    I take this..

    ..The result in Column F should look exactly like Column D.
    And give you this, in F3 and copy down.

    =IF(D3="";"";SUMIFS($D$3:$D$14;$B$3:$B$14;B3;$C$3:$C$14;C3))

  9. #9
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Re: ISBLANK with SUMIFS?

    I suppose that works in this example sheet, but since I would have to use a means to identify the cell in the first place, I would need a sumifs formula (I guess) to identify the respective cell to check if that cell is empty. I suppose I can just go with =if(sumifs(...)="";"";sumifs(...)), right? Will try this.

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: ISBLANK with SUMIFS?

    ...I suppose I can just go with =if(sumifs(...)="";"";sumifs(...)), right?
    I don't think so...SUMIFS never gives empty cell("") as result...

  11. #11
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Re: ISBLANK with SUMIFS?

    Yeah, you are right, and that is the obvious explanation. Adding empty cells is 0 of course.

    Is there another non-array-way to "identify" the needed cells?
    Last edited by Cunner; 03-25-2013 at 08:43 AM.

  12. #12
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: ISBLANK with SUMIFS?

    I am not able to follow your logic. Sorry...

+ 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