+ Reply to Thread
Results 1 to 12 of 12

Count if uniq id after a filter in a collumn

  1. #1
    Forum Contributor alexxl's Avatar
    Join Date
    04-21-2015
    Location
    Romania
    MS-Off Ver
    2019/2010
    Posts
    305

    Count if uniq id after a filter in a collumn

    Hello,

    Please help me as fallows i have a set of informations wich belongs to different dates (in this case i made an example for 2 dates), i would like to extract only duplicate number and bring the uniq count for it (like if i have 3 same numbers for date 1.11 it would return 1), To look in collumn a for this primary key.

    As a helper i ascked you guys for formula in collumn E wich helps me to identify wich doubled or tripeled and so on primary key has no resolution(agent) (and i have to place it for further inspections). After this check in collumn e i need to extract uniq primari key (coll a) for each duplicated primary key and for each date in part.
    In collumn F it s a way that i can say if an primary key is uniqe but it applys for all information.

    Is there a way how i can sepparate this by date withouth moving my information with filter in another sheet and apply collumn F formula or make an infinite collumns with statements for every day and if a day is equal to something to start and apply the formula (i could also do this if information is always sorted in order) but it would be a pain in the *** and a lot of multplications of formulas.

    Hope you understand what i wish.
    Count IF uniq ids after a filter in a collumn.xlsx


    Alex

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Count if uniq id after a filter in a collumn

    I am a bit confused.... Was your original formula in column F giving the correct result? If NO, then an explanation PLUS correct results, manually calculated, is mUCH more useful.

    This is a guess...


    =SUMPRODUCT(($A$2:$A$49=A2)*(COUNTIF(A$2:A2,A2)=1)*($D$2:$D$49=D2)*(E2=TRUE))>0
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor alexxl's Avatar
    Join Date
    04-21-2015
    Location
    Romania
    MS-Off Ver
    2019/2010
    Posts
    305

    Re: Count if uniq id after a filter in a collumn

    No my F formula it was only a way i do check unique keys but i have no further knowledge in conditioning this formula.

    Glenn, i need to evaluate each day, like if you filter on day 1.11 and in column E you chose false from your formula in E, Than it brings false for all my keys, but i would like to have the uniqe primary key in this case separately from all of the other ones (days).
    Last edited by alexxl; 11-25-2022 at 12:17 PM.

  4. #4
    Forum Contributor alexxl's Avatar
    Join Date
    04-21-2015
    Location
    Romania
    MS-Off Ver
    2019/2010
    Posts
    305

    Re: Count if uniq id after a filter in a collumn

    I would like that this formula start only if day is selected and only to take in consideration information for that day. and return the unique ones.

    My formula in f is just an example but as a whole. i need it to work for each day.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Count if uniq id after a filter in a collumn

    Please amend the sheet and add manually calculated results.

  6. #6
    Forum Contributor alexxl's Avatar
    Join Date
    04-21-2015
    Location
    Romania
    MS-Off Ver
    2019/2010
    Posts
    305

    Re: Count if uniq id after a filter in a collumn

    Quote Originally Posted by Glenn Kennedy View Post
    Please amend the sheet and add manually calculated results.
    Count IF uniq ids after a filter in a collumn.xlsx

    Here you go MR Glenn! Thank you in advance!

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Count if uniq id after a filter in a collumn

    Are you saying that the ONLY incorrect result in the sheet attached at Post 6 is cell F21??? If ONLY it should be FALSE, why should F2 be TRUE?

    Unless you tell me what you expect to see, I have NO IDEA what you want.

  8. #8
    Forum Contributor alexxl's Avatar
    Join Date
    04-21-2015
    Location
    Romania
    MS-Off Ver
    2019/2010
    Posts
    305

    Re: Count if uniq id after a filter in a collumn

    OK Glenn i understand why you were confused,
    because now i realise when i went true this i pushed this forward without making anysense and forget about the previous request.

    So please try first make tham unique only conditionated by date, in this case we have to forget about f2 being true and f21 being incorect.

    And next if is there is by anychance possible to extract from this only the uniques one that are also duplicated and are also separated by dates would be another good point.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Count if uniq id after a filter in a collumn

    Please upload a file showing EXACTLY what you want, where you want to see it. I want to see your actual EXPECTED RESULTS, and not a formula that does not quite work.

  10. #10
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Count if uniq id after a filter in a collumn

    @Glenn
    Seems to have been solved on one of the three cross posts I reported

  11. #11
    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,916

    Re: Count if uniq id after a filter in a collumn

    @alexxi

    You seem to have a major issue with respecting our rules. If you continue to disregard them, then your posting rights here will be terminated.


    Cross-posted on THREE other forums:

    https://chandoo.org/forum/threads/co...0/#post-290733
    https://forums.excelguru.ca/threads/...58/#post-48342
    https://www.mrexcel.com/board/thread...llumn.1223204/

    Our rules are here - READ THEM NOW: https://www.excelforum.com/forum-rul...rum-rules.html
    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.

  12. #12
    Forum Contributor alexxl's Avatar
    Join Date
    04-21-2015
    Location
    Romania
    MS-Off Ver
    2019/2010
    Posts
    305

    Re: Count if uniq id after a filter in a collumn

    Well i didn`t do it on purposley i thought there are different communities that work with different people. I never mind this. But it make sense and now after i read your warning i understand how to do it. Thank you.

+ 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] Count a collumn for each month and person
    By mrdaave in forum Excel General
    Replies: 19
    Last Post: 10-04-2022, 05:00 AM
  2. Replies: 13
    Last Post: 09-01-2022, 04:17 PM
  3. [SOLVED] Count uniq orders
    By alexxl in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-05-2020, 12:15 PM
  4. Replies: 4
    Last Post: 01-22-2020, 09:37 AM
  5. Replies: 2
    Last Post: 06-15-2018, 11:43 AM
  6. [SOLVED] Find a collumn in a dynamic sheet and select the entire collumn
    By Armand0 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-03-2014, 11:20 AM
  7. Using filter when the collumn contains empty cells
    By Bandini in forum Excel General
    Replies: 2
    Last Post: 04-25-2012, 09:13 AM

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