+ Reply to Thread
Results 1 to 1 of 1

Match Greatest Number of Occurrences by Name. If Equal, Choose Most Recent

  1. #1
    Registered User
    Join Date
    03-27-2013
    Location
    West Des Moines, IA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Match Greatest Number of Occurrences by Name. If Equal, Choose Most Recent

    I am trying to find a provider for a patient using the following conditions:
    -if seen by multiple providers, choose the one with the most visits, then choose most recent visit
    -if equal number of visits by providers, then choose most recent

    This is the last formula I have started to work with:
    =IF(AND(MAX(COUNTIF($K$2:$K$876,K2)),($M$2:$M$876="Newest")),"x","")
    The problem with this, is it only considers those with "Newest" in column M. The formula needs to consider the conditions above, specifically, to choose the most visits, then most recent.

    I am attempting to place an "x" in column N under "Select"

    Here is a sample file:
    https://docs.google.com/spreadsheet/...Xc&usp=sharing
    Last edited by jdppep; 07-16-2013 at 11:13 AM.

+ 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] Choose and Match a number with a segment.
    By t123x in forum Excel General
    Replies: 6
    Last Post: 06-27-2012, 02:38 PM
  2. Replies: 6
    Last Post: 05-12-2012, 11:40 AM
  3. Replies: 7
    Last Post: 05-11-2011, 12:36 PM
  4. Choose the bigger or equal value
    By Blue_Wings in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-07-2011, 02:52 PM
  5. Excel 2007 : Sum of greatest number
    By cecilj in forum Excel General
    Replies: 5
    Last Post: 02-22-2010, 04:11 PM

Tags for this Thread

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