+ Reply to Thread
Results 1 to 6 of 6

Need to count number of presentations that contain certain criteria excluding duplicates

  1. #1
    Registered User
    Join Date
    10-05-2018
    Location
    North Dakota, United States
    MS-Off Ver
    Excel 2016
    Posts
    3

    Need to count number of presentations that contain certain criteria excluding duplicates

    Hello,

    I need to create any sort of formula that will count how many presentations contain certain criteria. Each presentation may have multiple rows of data. The start of each new presentation is indicated by a place marker in the first column. I need to count how many of these contain at least one row that has specific criteria, but I don't want it to count duplicates. For example, if I have 1 presentation that has 3 rows of data and 2 rows contain the criteria I'm looking for, I only want it to count once. I also need it to be able to distinguish between dates as there could be one presentation that was dated 10/1/18 and that should be considered separate from a presentation by the same name dated 9/1/18.

    I hope that makes sense, please let me know if it doesn't.

    Thank you for your help!
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Need to count number of presentations that contain certain criteria excluding duplicat

    Hello and welcome to the forum.

    First, fill in column A with something different for each presentation.

    Then you can use this:

    =SUM(IF(FREQUENCY(IF((F2:F11="Permanent")*(G2:G11="Critical"), MATCH(A2:A11,A2:A11,0)),ROW(A2:A11)-ROW(A2)+1),1)) Ctrl Shift Enter

    See attachment.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-05-2018
    Location
    North Dakota, United States
    MS-Off Ver
    Excel 2016
    Posts
    3

    Re: Need to count number of presentations that contain certain criteria excluding duplicat

    I need to keep it as a 0 as with the actual workbook there's about 10 other pages of complex formulas that rely on that "0".

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Need to count number of presentations that contain certain criteria excluding duplicat

    That is an improper way to set up data. If you insist on keeping that column like that, you can create a helper column (let's say in column Z) with this formula:

    Z2 =COUNT(A$2:A2)

    Then change the formula from post #2 to this:

    =SUM(IF(FREQUENCY(IF((F2:F11="Permanent")*(G2:G11="Critical"), MATCH(Z2:Z11,Z2:Z11,0)),ROW(Z2:Z11)-ROW(Z2)+1),1)) Ctrl Shift Enter

    That helper column can be hidden if you chose to do so.

  5. #5
    Registered User
    Join Date
    10-05-2018
    Location
    North Dakota, United States
    MS-Off Ver
    Excel 2016
    Posts
    3

    Re: Need to count number of presentations that contain certain criteria excluding duplicat

    I took the project over from somebody who set it up. But in fairness, with over 50,000 lines of data and more added each day, eventually you'd run out of easily enterable combinations for an indicator in column A. I'll give the helper column a try though. Thank you!

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Need to count number of presentations that contain certain criteria excluding duplicat

    Please try and press Ctrl+Shift+Enter

    =SUM(IFERROR(--(MATCH(IF(("Permanent"=F2:F11)+("Critical"=G2:G11),D2:D11,""),D2:D11,)=(ROW(D2:D11)-ROW(D1))),))

+ 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. countif using criteria, excluding duplicates
    By glomb175 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-22-2018, 12:20 PM
  2. How to count using multiple criteria and excluding duplicates
    By Carayk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-08-2018, 01:44 AM
  3. [SOLVED] Count number of lines based on text and number criteria, without duplicates
    By HVCompleto in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-28-2017, 07:17 AM
  4. Count from a text list, excluding duplicates, with multiple criteria
    By Ecervantes in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2017, 10:42 PM
  5. [SOLVED] Count number of cells excluding duplicates
    By dineshsachidananda in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-22-2015, 01:36 AM
  6. Pivot count excluding duplicates
    By Tom_J_W in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-02-2013, 03:14 AM
  7. [SOLVED] Count excluding Duplicates
    By GRM via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-15-2005, 05:10 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