+ Reply to Thread
Results 1 to 7 of 7

If a cell is blank make it blank not 0

  1. #1
    Forum Contributor
    Join Date
    06-19-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2019
    Posts
    151

    If a cell is blank make it blank not 0

    Hi

    I have created a sumif formula - =SUMIF('G1'!$AL$4:$AL$23,$A2,'G1'!$AM$4:$AM$23)

    However, when there is no data i wanted to make it blank rather than 0 - using this formula =IF(SUMIF('G1'!$AL$4:$AL$23,$A2,'G1'!$AM$4:$AM$23)=0,"",SUMIF('G1'!$AL$4:$AL$23,$A2,'G1'!$AM$4:$AM$23))

    However, sometimes there is a cell that should = 0 but it puts it blank instead

    How do i create a if formula like above that will:
    -make a cell blank if there is no data
    -make a cell keep the 0, if the data is 0

    Thanks.
    Adam.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: If a cell is blank make it blank not 0

    How about
    =if(countif('G1'!$AL$4:$AL$23,$A2)=0,"",SUMIF('G1'!$AL$4:$AL$23,$A2,'G1'!$AM$4:$AM$23))

  3. #3
    Forum Contributor
    Join Date
    06-19-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2019
    Posts
    151

    Re: If a cell is blank make it blank not 0

    Hi.

    I couldnt get that to work unfortunately. I have attached the document to see if that helps anyone?

    As you can see - it shows sd and se as blank when in fact it should be 0.

    Thanks.
    Adam.
    Last edited by ACrossley1; 08-30-2020 at 03:15 PM.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: If a cell is blank make it blank not 0

    Ok, how about
    =IF(COUNTIFS('G1'!$AL$4:$AL$23,$A2,'G1'!$AU$4:$AU$23,"<>")=0,"",SUMIF('G1'!$AL$4:$AL$23,$A2,'G1'!$AU$4:$AU$23))

  5. #5
    Registered User
    Join Date
    08-30-2020
    Location
    Australia
    MS-Off Ver
    all
    Posts
    1

    Re: If a cell is blank make it blank not 0

    Why not just use conditional formatting to make it simpler i.e. if the value in the cell is equal to 0 then color the font white?
    Attached Files Attached Files
    Last edited by SirDreadwolf; 08-30-2020 at 02:23 PM. Reason: adding workbook for person needing help

  6. #6
    Forum Contributor
    Join Date
    06-19-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2019
    Posts
    151

    Re: If a cell is blank make it blank not 0

    Hi!

    I think that has worked! Thank you very much!

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: If a cell is blank make it blank not 0

    You're welcome & thanks for the feedback.

+ 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. Replies: 1
    Last Post: 07-22-2016, 04:03 PM
  2. Replies: 3
    Last Post: 01-23-2014, 12:19 PM
  3. [SOLVED] How do I make a blank cell with a date format blank?
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 04:05 AM
  4. [SOLVED] How do I make a blank cell with a date format blank?
    By Re: Pivot Table/Query in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. [SOLVED] How do I make a blank cell with a date format blank?
    By Re: Pivot Table/Query in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  6. How do I make a blank cell with a date format blank?
    By Re: Pivot Table/Query in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. How do I make a blank cell with a date format blank?
    By Re: Pivot Table/Query in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-14-2005, 07:05 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