Results 1 to 7 of 7

Select only the first N instances of a value in a table

Threaded View

  1. #1
    Registered User
    Join Date
    04-26-2024
    Location
    Portland, OR
    MS-Off Ver
    Microsoft 365 Apps for Business v. 2403
    Posts
    2

    Select only the first N instances of a value in a table

    I feel like there are a hundred simple solutions to my problem but I can not come up with any!! I have a table full of patients and their Primary Care Providers. Some providers have 100 patients, some only have 30. I want to be able to select only the first 30 patients for each provider and make a new table.

    One solution I thought of was to create a column that numbers the patients from 1 to N and then starts over when it gets to a new provider. For example, if I could go from image one (no index column) to image 2 (index column that starts over when it gets to a new provider), I would be home free. However, I can't figure out how to make an index column that resets to one when it gets to a new provider.

    I would greatly appreciate any help on this. Like I said, there are probably many ways to get this done, but I've been thinking about it for weeks and searching forums, talking to AI, and I can't get a solution!

    UPDATE: Replaced screenshots with .xlsx.
    Attached Files Attached Files
    Last edited by mark3824; 04-26-2024 at 05:55 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 04-27-2021, 11:10 AM
  2. VLookup 2 instances in a table with 2 instances horizontal and vertical
    By vivek.budhram in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-08-2019, 11:47 AM
  3. Replies: 4
    Last Post: 04-14-2018, 09:54 AM
  4. select multiple text instances to conditionally format a row
    By CHRISCOUCK in forum Outlook Formatting & Functions
    Replies: 8
    Last Post: 08-14-2015, 07:25 AM
  5. Replies: 1
    Last Post: 02-12-2013, 06:02 PM
  6. Replies: 3
    Last Post: 07-18-2012, 11:53 AM
  7. [SOLVED] Extracting/look up data from a list and select multiple instances
    By Candice H. in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-29-2005, 12:06 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