+ Reply to Thread
Results 1 to 2 of 2

Creating a calculated field, count of non-zero items in filtered results

  1. #1
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Creating a calculated field, count of non-zero items in filtered results

    Having some trouble with a calculated field. In the attached workbook the problem column is E.

    If you doubleclick on D7 it will open a sheet showing the 6 filtered rows that make up the current results.

    Column F is properly counting the number of sheets that variable was found on, though I'm not sure I trust the calc. If a sheet were listed multiple times (column A of the database) for a specific variable, I'd prefer this field still only count each unique sheet once.... but I digress.

    COLUMN E needs to display a count of the values that are in the AVERAGE (D2). In this sample filtering I'd want the result to be 2, as there are 2 non-zero answers in the current calculation.

    Can you help me adjust the column E calculated field to do this? I'm stumped atm.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Creating a calculated field, count of non-zero items in filtered results

    I was overthinking it. Simple "Count of Values" was all I needed. (embarrassed)

+ 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: 0
    Last Post: 10-24-2013, 10:59 AM
  2. Replies: 0
    Last Post: 02-18-2013, 03:50 PM
  3. Replies: 1
    Last Post: 06-12-2012, 03:47 PM
  4. Replies: 2
    Last Post: 03-06-2009, 11:49 AM
  5. Totals of calculated field in pivot table give incorrect results
    By Jake in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2006, 02:20 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