+ Reply to Thread
Results 1 to 8 of 8

Extract Duplicate values in range with criteria

  1. #1
    Registered User
    Join Date
    10-13-2022
    Location
    Montreal, Quebec, Canada
    MS-Off Ver
    365
    Posts
    13

    Extract Duplicate values in range with criteria

    We have a locker lottery at work, where locker numbers are drawn on a 10-week basis. Within those 10 weeks the same locker number can be drawn multiple times. But, those locker numbers which have been drawn more than once, in those 10 weeks, are not eligible for the next 10 weeks.

    I need to extract those duplicate locker numbers by division and display them separately (Horizontally) so they can be printed.
    How can I do this in excel without resorting to VBA.
    Attached Files Attached Files

  2. #2
    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: Extract Duplicate values in range with criteria

    Excel cannot use formatting in a formula, so unless you identify those numbers differently, then you'll have to use VBA.
    Last edited by AliGW; 03-29-2024 at 02:34 AM.
    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.

  3. #3
    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: Extract Duplicate values in range with criteria

    You could use this:

    =LET(s,SORT(TOCOL(D5:H14)),f,FILTER(s,s<=150),b,BYROW(f,LAMBDA(r,SUMPRODUCT((f<>"")*(f=r)))),TRANSPOSE(UNIQUE(FILTER(f,b>1))))

    and this:

    =LET(s,SORT(TOCOL(D5:H14)),f,FILTER(s,s>150),b,BYROW(f,LAMBDA(r,SUMPRODUCT((f<>"")*(f=r)))),TRANSPOSE(UNIQUE(FILTER(f,b>1))))
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Extract Duplicate values in range with criteria

    Another option.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by DJunqueira; 03-29-2024 at 03:16 AM.

  5. #5
    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: Extract Duplicate values in range with criteria

    What is PARALIN???

    Please make sure that functions are in ENGLISH. You've been asked before several times to take care of this.

    PARALIN = TOROW (I think).

    EDIT: Thanks for updating the post. Please check BEFORE posting next time.
    Last edited by AliGW; 03-29-2024 at 03:19 AM.

  6. #6
    Registered User
    Join Date
    10-13-2022
    Location
    Montreal, Quebec, Canada
    MS-Off Ver
    365
    Posts
    13

    Re: Extract Duplicate values in range with criteria

    Thank you, much appreciated

  7. #7
    Registered User
    Join Date
    10-13-2022
    Location
    Montreal, Quebec, Canada
    MS-Off Ver
    365
    Posts
    13

    Re: Extract Duplicate values in range with criteria

    Thank you it'll come in handy

  8. #8
    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: Extract Duplicate values in range with criteria

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

+ 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] Extract and countif avoiding duplicate for a Criteria
    By Sekars in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-21-2022, 08:52 AM
  2. Replies: 4
    Last Post: 01-25-2022, 02:29 PM
  3. Extract Duplicate Values in New Sheet
    By hookedupon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-08-2017, 09:16 AM
  4. [SOLVED] Extract data with one criteria and no duplicate
    By omegaboost in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2016, 11:56 PM
  5. Replies: 1
    Last Post: 11-09-2014, 06:04 PM
  6. [SOLVED] Extract Duplicate values
    By kmahesh in forum Excel General
    Replies: 5
    Last Post: 10-14-2014, 05:29 AM
  7. How to extract duplicate from the range of cells and gives its count?
    By nagesh_mvj in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 02-20-2012, 02:48 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