+ Reply to Thread
Results 1 to 4 of 4

Nested If statements. I wanted blank/empty cells to not show 0

  1. #1
    Registered User
    Join Date
    11-09-2012
    Location
    Illinois
    MS-Off Ver
    Excel 2010
    Posts
    26

    Nested If statements. I wanted blank/empty cells to not show 0

    Please see attached workbook. I know for a fact this isn't the most effective way to do this, but I just needed something really quick for a small worksheet that my department at work is using. A1:C7 are supposed to represent 3 different types of "methods" In the case of my worksheet, I just typed random stuff.

    Basically, I have data validation in B10. Depending on which one I select (1 corresponds with A1:A7, 2 with B1:B7, and 3 with C1:C7), it is supposed to populate that data. I've done this with nested if statements in D10:D16. The issue is that for options 2 and 3, it shows 0's where the blanks should be. Any quick fixes to this?

    I must note that I'm not to savvy with VB/coding.

    Thank you,
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Nested If statements. I wanted blank/empty cells to not show 0

    Try wrapping your nested IF function in the T function..

    =T(yourifformula)


    This only works for Textual results of the IF function.

  3. #3
    Forum Contributor
    Join Date
    11-15-2012
    Location
    Buffalo, NY
    MS-Off Ver
    Office 365
    Posts
    282

    Re: Nested If statements. I wanted blank/empty cells to not show 0

    Format ALL of column D as a number, with the following format: #

    That way any zeroes will be formatted as blanks!

    HTH

    Tony

  4. #4
    Registered User
    Join Date
    11-09-2012
    Location
    Illinois
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Nested If statements. I wanted blank/empty cells to not show 0

    Success. Thanks!

+ 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: 5
    Last Post: 01-12-2013, 12:16 AM
  2. Nested IF statements with a range of cells
    By rteeling35 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 01-08-2013, 05:52 PM
  3. Using if function to show blank when cell in other sheet is empty
    By Billznik in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-08-2006, 10:46 PM
  4. [SOLVED] How are empty cells referenced in Excel in IF statements?
    By MOnewt in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-12-2006, 03:40 PM
  5. [SOLVED] Need cells to show as zero or empty
    By BelkyBear in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-07-2005, 04:45 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