+ Reply to Thread
Results 1 to 3 of 3

Problem with Sumif, and blank cells

  1. #1
    Registered User
    Join Date
    08-02-2009
    Location
    London, England
    MS-Off Ver
    Excel 365
    Posts
    13

    Problem with Sumif, and blank cells

    Hi All

    I need help with below please,

    I am trying to do sumif on below

    A B C Total that I need to achieve
    -520 Check [blank] -520
    -321 Check -321 0


    Criteria
    Sumif B2 have "Check" add A2 then -C2 Problem is C2 although shows no value, there is formula that returns Blank Value.

    Please see attached file.

    Thank you for your help

    Chirayu
    Attached Files Attached Files
    Last edited by Chirayu Amin; 08-06-2009 at 05:12 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Problem with Sumif, and blank cells

    Hi,

    Cell C2 isn't blank, it has a space in it.

    If the space has to stay, you could use something like this in column D

    =IF(B2="Check",IF(ISTEXT(C2),A2,A2-C2),"")

    Otherwise, remove the space in C2, and use

    =IF(B2="Check",A2-C2,"")
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    08-02-2009
    Location
    London, England
    MS-Off Ver
    Excel 365
    Posts
    13

    Re: Problem with Sumif, and blank cells

    Quote Originally Posted by sweep View Post
    Hi,

    Cell C2 isn't blank, it has a space in it.

    If the space has to stay, you could use something like this in column D

    =IF(B2="Check",IF(ISTEXT(C2),A2,A2-C2),"")

    Otherwise, remove the space in C2, and use

    =IF(B2="Check",A2-C2,"")
    First formula works great - Thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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