+ Reply to Thread
Results 1 to 6 of 6

Formula hidding

  1. #1
    Registered User
    Join Date
    06-24-2014
    Location
    Maldives
    MS-Off Ver
    2013
    Posts
    23

    Formula hidding

    Hi,
    I have attached a file here.
    In this file i want the red coloured cells not to show zero (0) or anything unless anything else is entered in the cells above.
    In other words I want to hide the zero if nothing is entered above.
    Thank you..
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Formula hidding

    welcome to the forum. try this in D5:
    =IFERROR(1/(1/SUM(D2:D4)),"")

    this in D6:
    =IFERROR(D5/3,"")

    copy across

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Formula hidding

    Hi and welcome to the forum

    D5=IF(SUM(D2:D4)=0,"",SUM(D2:D4))
    D6=IF(D5="","",D5/3)

    Both copied across
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula hidding

    =IF(COUNTA(C2:C4)=0,"",SUM(C2:C4)) enter in Cell "C5"
    =IF(COUNTA(C2:C4)=0,"",C5/COUNTA(C2:C4)) enter in Cell "C6"
    and Copy towards right

  5. #5
    Registered User
    Join Date
    06-24-2014
    Location
    Maldives
    MS-Off Ver
    2013
    Posts
    23

    Re: Formula hidding

    Thank you all,
    All the three types of fomulas you guyz gave me works great.
    Thank you very much you guyz have been very helpful...
    This forum is great..

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Formula hidding

    Happy to help

+ 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. Hidding target row
    By sad212 in forum Excel General
    Replies: 1
    Last Post: 11-03-2012, 06:30 PM
  2. hidding error messages in formula
    By jabjab in forum Excel General
    Replies: 4
    Last Post: 11-15-2011, 08:17 AM
  3. Hidding Rows
    By Sam I Am in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2007, 07:16 PM
  4. Hidding the formula and limiting users
    By bimseun in forum Excel General
    Replies: 1
    Last Post: 04-04-2006, 05:45 AM
  5. [SOLVED] Hidding macros
    By jerry chapman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-06-2005, 04:06 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