+ Reply to Thread
Results 1 to 4 of 4

Aggregate Counta with criteria

  1. #1
    Registered User
    Join Date
    06-20-2016
    Location
    Hawaii
    MS-Off Ver
    2010, 2015, 365
    Posts
    8

    Question Aggregate Counta with criteria

    I have a table with a column that contains text. I'd like to be able to use the Aggregate function to count only certain text string (ie; "Split level") and return the count for just the visible/unfiltered results.

    I've tried...:

    Aggregate(3,7,Tbl_Master[NOTE]="Split level")

    This returns...: #Value

    If I highlight the Tbl_Master[NOTE]="Split level" and press [F9], I see all of the true and false values for the column. I can't figure out how to return a count of all of the true values.

    Any help will be greatly appreciated.

    Cg

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Aggregate Counta with criteria

    Aggregate only supports criteria arrays (range="x") with options 14+

    I suggest adding a helper column to the table, call it Visible or whatever
    In that column put
    =AGGREGATE(3,7,[@NOTE])

    Then use
    =COUNTIFS(Tbl_Master[NOTE],"Split level",Tbl_Master[Visible],1)
    Last edited by Jonmo1; 06-28-2016 at 09:22 PM.

  3. #3
    Registered User
    Join Date
    06-20-2016
    Location
    Hawaii
    MS-Off Ver
    2010, 2015, 365
    Posts
    8

    Re: Aggregate Counta with criteria

    THANK YOU FOR THE PROMPT REPLY...

    I tried the Countifs statement. I get an error highlighting the Tbl_Master[Visible] part of the formula.

    I'M AFRAID I WILL NEED MORE HELP...

    - I'm not familiar with the "VISIBLE" state.
    - I am also not familiar with the 1 used for criteria.

    ? is the Visible state part of a list of states that a table/field/record can be in?
    ? is the "1" used as criteria refer to a logical state of 1=true 0=false?

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Aggregate Counta with criteria

    You add a column to the table
    I just used Visible as an example for the Header text of that helper column.
    In the helper column, put the aggregate formula I posted.
    The aggregate will return 1 if there is a value in the Note column of that row AND that row is visible
    It will return 0 otherwise.
    Then use the Countifs function I posted

+ 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. CountA with Multiple Criteria
    By albert28 in forum Excel General
    Replies: 2
    Last Post: 05-25-2014, 11:51 AM
  2. Replies: 3
    Last Post: 06-09-2012, 11:18 PM
  3. Formula to COUNTA distinct values with multiple criteria
    By f0urchette in forum Excel General
    Replies: 4
    Last Post: 02-20-2012, 04:54 AM
  4. countA based on a criteria
    By raza_m33hdy in forum Excel General
    Replies: 2
    Last Post: 03-24-2011, 10:53 AM
  5. sum with counta & countif with many matching criteria
    By Ramzes in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-21-2010, 03:56 AM
  6. how to calculate aggregate numbers based on a certain criteria
    By Sheki in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-06-2007, 01:47 AM
  7. countif counta with multiple lookup criteria
    By JR573PUTT in forum Excel General
    Replies: 1
    Last Post: 02-15-2006, 03:37 PM

Tags for this Thread

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