+ Reply to Thread
Results 1 to 6 of 6

Blank cell if no value

  1. #1
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327

    Blank cell if no value

    I have a spreadsheet in which I enter numbers in, then calculate a certain range -
    sum(f4:f10). The cell that contains this formula always shows 0 if nothing is entered in this range. How can I edit this forumla that will display nothing in the cell if nothing is entered, if something is entered, then it will display the sum

    Any suggestions?

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    Hi, Ltat. You have two options.

    1) Tools>Options | View tab>uncheck Zero Values in the Window options section
    note that this will affect ALL cells that have a zero value

    2) Use an IF formula, as such:

    =IF(sum(f4:f10)=0,"",sum(f4:f10))

    A blank cell will be displayed if the sum is zero, else the sum will be displayed.

    HTH

    Bruce
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327
    Quote Originally Posted by swatsp0p
    Hi, Ltat. You have two options.

    1) Tools>Options | View tab>uncheck Zero Values in the Window options section
    note that this will affect ALL cells that have a zero value

    2) Use an IF formula, as such:

    =IF(sum(f4:f10)=0,"",sum(f4:f10))

    A blank cell will be displayed if the sum is zero, else the sum will be displayed.

    HTH

    Bruce

    Perfect! - Thanx!

  4. #4
    Registered User
    Join Date
    08-19-2005
    Posts
    1

    need similar help

    I am new to pivot tables and have a quandary I can't seem to address. I have several columns with a code letter representing a theme present in a large set of qualitative data. So, the row has a comment and then if the comment fits the designation under a particular theme (column) I enter the code under that theme to show where it fits. So I'm dealing with different letters in cells that represent a type of data, under several columns that represent themes. If the cell is blank, that means that comment does not fit under that theme. When I try to count the number of different types of data under the theme columns I can't get it to tally how many separate codes are listed in each column. so it looks like this:

    Program Inst + Inst- Course+
    Photography Technology I T S
    Photography Technology I M P
    Photography Technology I C P

    It keeps counting blanks and I can't get it to just count the filled cells - What I'd like is under Inst+ for Photog I there are 1 M, 1T, 1C; under Inst-, 2P; Course+ 1S

    Any ideas???

  5. #5
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    Quote Originally Posted by Ltat42a
    Perfect! - Thanx!

    Glad it worked for you. Feedback is always appreciated. Which option did you use?

    Cheers!

    Bruce

  6. #6
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327
    Quote Originally Posted by swatsp0p
    Glad it worked for you. Feedback is always appreciated. Which option did you use?

    Cheers!

    Bruce
    #1 -
    Tools>Options | View tab>uncheck Zero Values in the Window options section
    note that this will affect ALL cells that have a zero value

+ 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