+ Reply to Thread
Results 1 to 7 of 7

Getting a cell to "appear" blank if there is no info in it

  1. #1
    Registered User
    Join Date
    12-17-2023
    Location
    West Mifflin, PA
    MS-Off Ver
    365
    Posts
    6

    Getting a cell to "appear" blank if there is no info in it

    Hi!! Can someone help me with my Gross Margin sheet? I want all items in column J to "appear" blank unless someone has put a number in column I. If I enter anything in the costs column (Column G) it returns that same cost in column J or it appears as $0.00. (see picture and attached file).

    I only want J to show the Gross margin dollar amount if someone has put a number in column I. Otherwise, I want it to "appear" blank.

    margin sheet pic.jpg
    Attached Files Attached Files

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Getting a cell to "appear" blank if there is no info in it

    Please try in J2 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Getting a cell to "appear" blank if there is no info in it

    Just for fun, clear all the entries in column J, then use this in J2:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Getting a cell to "appear" blank if there is no info in it

    Might be more understandable like this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Getting a cell to "appear" blank if there is no info in it

    Another way is to use custom formatting to show zero values as blanks. Select the cells from J2 to J100 then right click and click on Format Cells | Number | Custom and you should see this format string in the box:

    "$"#,##0.00

    All you need to do is to add two semicolons to the end of this string:

    "$"#,##0.00;;

    then click OK.

    That will show negative values as blanks also, so if you don't want this then you can do:

    "$"#,##0.00;"-$"#,##0.00;

    Hope this helps.

    Pete

  6. #6
    Registered User
    Join Date
    12-17-2023
    Location
    West Mifflin, PA
    MS-Off Ver
    365
    Posts
    6

    Re: Getting a cell to "appear" blank if there is no info in it

    Quote Originally Posted by Pete_UK View Post
    Another way is to use custom formatting to show zero values as blanks. Select the cells from J2 to J100 then right click and click on Format Cells | Number | Custom and you should see this format string in the box:

    "$"#,##0.00

    All you need to do is to add two semicolons to the end of this string:

    "$"#,##0.00;;

    then click OK.

    That will show negative values as blanks also, so if you don't want this then you can do:

    "$"#,##0.00;"-$"#,##0.00;

    Hope this helps.

    Pete
    This worked great!! Thank you!!!

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Getting a cell to "appear" blank if there is no info in it

    That's good to hear.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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: 02-05-2021, 09:24 AM
  2. VBA Updates Pivot Table by cell contents, i want to show "blank" instead of "all"
    By mattinwpg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2017, 10:58 PM
  3. [SOLVED] Keeping particular cell blank if the related cells show "0" or "blank"
    By Anuru in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-24-2014, 05:30 AM
  4. Need to auto populate the "X" and "Z" with the info from the "Info Sheet"
    By BURENYMAC915 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-10-2014, 06:28 PM
  5. Replies: 6
    Last Post: 09-25-2013, 01:51 PM
  6. Replies: 3
    Last Post: 02-16-2011, 02:55 PM
  7. Replies: 0
    Last Post: 07-09-2009, 04:07 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