+ Reply to Thread
Results 1 to 10 of 10

Formula needs to show both blanks and zeroes.

  1. #1
    Registered User
    Join Date
    02-26-2015
    Location
    texas
    MS-Off Ver
    2013
    Posts
    5

    Formula needs to show both blanks and zeroes.

    I'm having an issue with calculated fields in a pivot table formula. I've tried everything and reverted back to my original simple formula in my attachment.

    Any sum greater than zero works fine however I'm having issues with "zeroes". If the sum is truly zero (i.e. the data source cells = 0) I want the standard display of "0" however if the sum is blank (i.e. the data source cells are empty or N/A) I want it to display a "blank", not a zero. I need to be able to see both blanks and zeroes on my pivot table.

    i.e. if the columns are 1Q, 2Q, 3Q, 4Q
    then row one should be 1,1,0,blank
    and row two should be 2,2,1,blank

    Attachment 379728

    Thanks.

  2. #2
    Registered User
    Join Date
    07-24-2007
    Posts
    66

    Re: Formula needs to show both blanks and zeroes.

    Make sure your Field Settings in the Values area is set to Sum. If so, the Pivot Table should do exactly what you want. BTW your attachments shows as Invalid.

  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
    53,048

    Re: Formula needs to show both blanks and zeroes.

    Attachment did not come through
    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
    Registered User
    Join Date
    02-26-2015
    Location
    texas
    MS-Off Ver
    2013
    Posts
    5

    Re: Formula needs to show both blanks and zeroes.

    amy22x3 - the field settings are set to sum.

    I'm going to try to attach again plus include a link that I hope works.

    Excel attendance.xlsx

    https://onedrive.live.com/redir?resi...nt=file%2cxlsx

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,899

    Re: Formula needs to show both blanks and zeroes.

    http://www.mrexcel.com/forum/excel-q...es-blanks.html

    austin2, your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  6. #6
    Registered User
    Join Date
    02-26-2015
    Location
    texas
    MS-Off Ver
    2013
    Posts
    5

    Re: Formula needs to show both blanks and zeroes.

    Sorry Jeff,

    I mentioned to a friend that I couldn't include an attachment or a picture to my post on the other site and they recommended I try this site. I didn't know how to delete my first post or how to add links, I'll try to add links to the other post to direct them to this one so they can see my issue.

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,899

    Re: Formula needs to show both blanks and zeroes.

    I have already added the link so you don't need to edit your post. You cannot delete a post, and there is almost never a need to do so.

    The other site also requires cross-posting links so you should consider adding a link on that site, as you describe. The easiest way to add a link to a post is to highlight the address bar in your browser, CTRL-C, then go to your post and hit CTRL-V to paste it.

  8. #8
    Registered User
    Join Date
    02-26-2015
    Location
    texas
    MS-Off Ver
    2013
    Posts
    5

    Re: Formula needs to show both blanks and zeroes.

    I was curious to see if anyone was able to help me with this problem.

    Thanks so much.

  9. #9
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,899

    Re: Formula needs to show both blanks and zeroes.

    What is the difference between these two:
    leave blank if the person didn't attend and wasn't expected to,
    and put a N/A if the person wasn't expected to attend meeting (i.e. hadn't joined team yet, wasn't required to attend, etc)
    When Excel takes a sum of a range, blank cells and cells with non-numeric values are interpreted to be zero. When you require that a pivot table cell be a sum, it's going to have to have a number in it, even if that number is zero. My first thought is that for what you are defining, you would need to do this with formulas rather than a pivot table, and it could get a little involved.

    However, there is a fundamental weakness in the way that data is recorded in the Attendance sheet. Even if you could get a pivot table to look like your desired example, a 0 would tell you they didn't go to any meetings, but it wouldn't tell you how many required meetings they missed. A better way to structure the data would be for each person to have a count of required meetings and count of meetings attended. See attached redesign. I didn't update your pivot tables because I am not sure what you are trying to get out of those that you don't already have on the Attendance sheet.

    I also see no need to turn automatic calculation off. I also removed merged cells, which can cause trouble unnecessarily.Excel attendance redesign.xlsx

  10. #10
    Registered User
    Join Date
    02-26-2015
    Location
    texas
    MS-Off Ver
    2013
    Posts
    5

    Re: Formula needs to show both blanks and zeroes.

    I'm coming into a new job with a very different structure. I'll propose to them the redesign and see if that will work.

    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. [SOLVED] Different Interpretations of Zeroes and Blanks After Passing to an Extra Function
    By XOR LX in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-13-2014, 11:22 AM
  2. Automatic sort, ignore zeroes, blanks and combobox
    By jigneshoctober in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 03-17-2011, 11:16 PM
  3. How to avoid plotting blanks as zeroes...
    By solecraft311 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-22-2008, 11:59 AM
  4. Conditional formatting : Zeroes and blanks
    By tonywig in forum Excel General
    Replies: 3
    Last Post: 01-03-2008, 09:37 AM
  5. [SOLVED] Count IF excluding blanks or zeroes
    By Ash in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-02-2006, 07: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