+ Reply to Thread
Results 1 to 4 of 4

Zeros showing up in my cells

  1. #1
    Registered User
    Join Date
    07-13-2011
    Location
    Excel Hell
    MS-Off Ver
    Excel 2007
    Posts
    2

    Zeros showing up in my cells

    Hey guys,

    I am trying to create some kind of smart time sheet setup that will help me sorting out certain tasks automatically. So far so good, but of course Excel is being a pain again and I ended up having some formatting problems I can't seem to solve.

    It's a bit complicated to explain, but I'll try anyway:

    I have two sheets with tasks and hours. The first one has a list of tasks, categories and hours. The second sheet is supposed to be a printable version of the first sheet with certain tasks filtered out.
    So basically both sheets look identically, just the has a formula that does not show any hours when they fall in a certain category.
    The formula I used is:


    Please Login or Register  to view this content.

    That kind of works and does not show the hours when the category on the first worksheet is set to "Unapproved Task". My problem however is that whenever the cell on the first worksheet has no hours set, and is simply empty, instead of having any hour number in there it will show me a '0' (zero) instead of just an empty string in the corresponding cell on the second worksheet.
    To sum it up:
    For an approved task, it takes it over to the second worksheet, for an unapproved one it leaves the cell empty as desired, but whenever the source cell is empty, I end up seeing a 0 in the second sheet.

    I hope that makes any sense and somebody can help me solve that. I know there is some option to hide 0s generally but sounds like a client setting and I don't want to use that, since the sheet is supposed to be used by different people on different machines.
    Thanks!

  2. #2
    Registered User
    Join Date
    07-13-2011
    Location
    North Carolina, USA
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Zeros showing up in my cells

    Any cells left blank will be automatically filled in by excel as 0's

    This is true when using linked data sheets. This is because Linking a blank cell to a separate sheet has a value of 0

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Zeros showing up in my cells

    You can try:

    =IF(EXACT(Actual_Hours!E20,"Unapproved Task"),"",IF(Actual_Hours!F20=0,"",Actual_Hours!F20))

    or you can custom format the result cell(s) as 0;-0;;@ to "hide" 0's
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    07-13-2011
    Location
    Excel Hell
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Zeros showing up in my cells

    Quote Originally Posted by NBVC View Post
    =IF(EXACT(Actual_Hours!E20,"Unapproved Task"),"",IF(Actual_Hours!F20=0,"",Actual_Hours!F20))
    Thank you so much. That fixed it perfectly.

+ 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