+ Reply to Thread
Results 1 to 6 of 6

Trying to check a list of names (with repeats) against another cell value

  1. #1
    Registered User
    Join Date
    06-18-2015
    Location
    Oregon
    MS-Off Ver
    2013
    Posts
    3

    Trying to check a list of names (with repeats) against another cell value

    Hey all,

    I'm using Excel 2013. I'm trying to organize a medical database with several hundred clients, and am having trouble with a formula. I need to check and see if a patient has been seen within the past 60 days. Every time a patient is seen, a new entry is made that shows their name, date of visit, etc. I created a function to lookup today's date, turn it into a value, then subtract 60 from that value to give me the date value that is the cutoff. What I'm having trouble with is figuring out how to check if a patient has been seen in the last 60 days. I've uploaded a screenshot w/redacted names to help get my point across.

    Essentially, I need a formula that will go through all instances of a name (Column A) and compare each instance to Column I, which states whether that visit was within the past 60 days. If any of the visits return a "Yes", then I want an output (whether that's highlighting the name or displaying it in an adjacent cell, I don't really care) that will tell me that. Likewise, if none of the visits for that name return a "Yes", then I want an output that will notify me they haven't been seen in 60 days.
    Attached Images Attached Images

  2. #2
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Trying to check a list of names (with repeats) against another cell value

    Does this work for you if you put it in I2?

    Please Login or Register  to view this content.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  3. #3
    Registered User
    Join Date
    06-18-2015
    Location
    Oregon
    MS-Off Ver
    2013
    Posts
    3

    Re: Trying to check a list of names (with repeats) against another cell value

    Yes! That worked wonderfully! I didn't expect a response so quickly on here. Maybe you can help me streamline my process here a bit further. Since I have so many patients to go through, I'd like to make another column that checks for the "Yes" or "No" in column I, then returns a list with each name. For example, if John Doe visited 20 times, and some visits were within the past 60 days, the function would check that and return a single instance of John Doe, then go to the next person. This would let me give my providers a list of who should be an open or closed case without having to manually create the list. Thanks again for your help!

    Edit: I figured out a clunky way to do it with a Pivot Table, but it seems like there ought to be a formulaic method as well.
    Last edited by marksman1941; 06-18-2015 at 07:10 PM.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Trying to check a list of names (with repeats) against another cell value

    Welcome to the forum

    Can I suggest that you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Trying to check a list of names (with repeats) against another cell value

    You could do a formula method like this:
    Please Login or Register  to view this content.
    I applied it on the attached workbook. It gets the job done but it is very computer intensive and you have to drag it down far enough so that you would never miss a name.

    I like the pivot table option much better. I also did that on the attached workbook. It isn't clunky at all and it keeps up to date without using a ton of computer power.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-18-2015
    Location
    Oregon
    MS-Off Ver
    2013
    Posts
    3

    Re: Trying to check a list of names (with repeats) against another cell value

    Hey all,

    Sorry it took so long to reply. I got lucky enough to go on vacation over the last 5 days Using the formula that nigelbloomy provided, I figured out a fairly streamlined way of doing it. I download the patient list into Excel, insert a column next to the name column, and paste in the formula (and alter it to refer to the date column). Once that does its magic, I make a pivot table and sort by names that return "No", copy the names into a master sheet, then sort by "Yes" and copy the names over. It takes about 4 minutes from start to finish. I was able to provide my boss with a full practice caseload (8,500+ entries ) as well as individual provider caseloads in under an hour. She expected this to take me two weeks, but underestimated my ability to garner help from wonderful internet strangers lol. Thanks again!

+ 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. Need formula to select 20 names from list of 300 with no repeats
    By Melski in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-22-2015, 01:07 AM
  2. [SOLVED] Formula to check LAST CELL in column containing one of the names in a list
    By chiidzzz in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-05-2013, 01:11 PM
  3. Sort through list picking out names (not repeats)
    By stevedes7 in forum Excel General
    Replies: 1
    Last Post: 10-18-2009, 02:54 AM
  4. Replies: 1
    Last Post: 11-27-2008, 11:11 AM
  5. Replies: 3
    Last Post: 07-04-2008, 07:42 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