+ Reply to Thread
Results 1 to 7 of 7

Unique ID count based on specific Criteria

  1. #1
    Registered User
    Join Date
    12-02-2017
    Location
    NJ
    MS-Off Ver
    2016
    Posts
    27

    Unique ID count based on specific Criteria

    I attached the example what I think is an exact replica of what I am looking for and I color coded the results so you can see where it came from. Basically what I need is: A count of Unique Column A that only owe the way the dates and Freq are set up on the right side.
    so pretty much a total count of Unique ID numbers that only owe 11/1/2017 and nothing else. Then the next 11/1/2017 and 11/1/2016 and so on as I listed it. I hope I am explaining it enough and thank you for your help and sticking with me to figure this out.

    I have been able to get it to where it counts if the date or dates are associated with the Account ID but I am not able to get it to where its specific with the criteria.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,169

    Re: Unique ID count based on specific Criteria

    No file attached ...

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    12-02-2017
    Location
    NJ
    MS-Off Ver
    2016
    Posts
    27

    Re: Unique ID count based on specific Criteria

    Sorry about that for whtever reason the upload keeps failing so here is a link to the file I have on drive.

    https://drive.google.com/file/d/1INr...ew?usp=sharing

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,546

    Re: Unique ID count based on specific Criteria

    This proposed solution employs a pivot table and 10 'other' columns as a helper sheet.
    The array entered formula* that populates column G of the 'Before' sheet is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    *Array entered formulas are confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Note: cells E2, E5 and E8 have an apostrophe added before the date so that the formula will read those values as text.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    12-02-2017
    Location
    NJ
    MS-Off Ver
    2016
    Posts
    27

    Re: Unique ID count based on specific Criteria

    Wow that looks and works great. One question is if I want to add more Account Id's to the list do I just edit the formula for the corrected range on the before only or do I add them to the Pivot table and the Before with correcting the forumal range?
    Last edited by AliGW; 12-12-2017 at 05:30 PM. Reason: Unnecessary quotation removed.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,652

    Re: Unique ID count based on specific Criteria

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,546

    Re: Unique ID count based on specific Criteria

    Try the following:
    1) Add the Account ID's on the 'Before' sheet,
    On the 'Pivot Table' sheet
    2) From the PivotTable Tools pane > Options tab > Change Data Source and choose the range from the 'Before' sheet,
    3) Choose the Refresh button on the same tab,
    4) Drag the formulas from column J:S down to the last row of the pivot table,
    5) Change the range of the COUNTIFS based formula in S2 and double click to copy down,
    On the 'Before' sheet
    6) Change the range of the formula that populates column G.
    Let us know if you have any questions/problems.

+ 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. Count unique value based on two criteria.
    By Dkz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-06-2016, 06:32 AM
  2. Unique Count Based on Certain Criteria
    By MattJ147 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-08-2014, 08:28 PM
  3. [SOLVED] Count unique entries based off unique criteria in another column
    By hambly in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 06-11-2014, 03:33 PM
  4. [SOLVED] Unique value count based on multiple criteria
    By Ronny66 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-06-2013, 10:18 AM
  5. Count unique values with specific criteria
    By kaz_jones in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2012, 03:56 PM
  6. Reassign unique ids based on specific criteria
    By wanna_learn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2011, 01:26 PM
  7. Count unique values based on several criteria
    By evilgrin in forum Excel General
    Replies: 2
    Last Post: 10-10-2010, 03:50 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