+ Reply to Thread
Results 1 to 4 of 4

VLOOKUP from a pivot with Patient ID with contact dates and referral dates

  1. #1
    Registered User
    Join Date
    11-25-2015
    Location
    Bradford
    MS-Off Ver
    2010
    Posts
    2

    VLOOKUP from a pivot with Patient ID with contact dates and referral dates

    Hi all

    I have a lot of data with referral dates of patients in one sheet and the contact dates in another. I have the referrals listed with a Patient ID. In my contact data I have a wide range of contacts both before and after the referral date. How can I lookup the first contact date after the referral when the contact dates are in a pivot table? I also have the contact data in a table but not pivoted if this would be easier? Any ideas?

    Thanks

    Michael

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: VLOOKUP from a pivot with Patient ID with contact dates and referral dates

    Please post a small sample file with example(s) of expected results.

    Click "Go Advanced" then Paper Clip icon

  3. #3
    Registered User
    Join Date
    11-25-2015
    Location
    Bradford
    MS-Off Ver
    2010
    Posts
    2

    Re: VLOOKUP from a pivot with Patient ID with contact dates and referral dates

    Hi

    Does this explain what I need to do?

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: VLOOKUP from a pivot with Patient ID with contact dates and referral dates

    Try this in C2

    =IF(A2,IFERROR(INDEX(ContactData!$B$2:$B$36,SMALL(IF((ContactData!$A$2:$A$36=A2)*(ContactData!$B$2:$B$36>B2),ROW($A$2:$A$36)-ROW($A$2)+1,""),1)),"No contact"),"")

    Enter with Ctrl+shift+enter

    Copy down

+ 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. How to count number of different dates for a patient.
    By ATaylor643 in forum Excel General
    Replies: 3
    Last Post: 09-23-2014, 07:05 PM
  2. Select Multiple Dates In Report Filter Pivot Table But Dates Are Not Static
    By biasedobserver in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2014, 03:38 PM
  3. Count of consecutive dates as single occasion per patient
    By mallen91693 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-04-2014, 01:32 AM
  4. Count multiple dates unique to patient
    By ktrobinson in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-18-2012, 10:52 PM
  5. [SOLVED] Sorting Master Database & Tracking Contact Dates
    By adawg in forum Excel General
    Replies: 3
    Last Post: 04-25-2012, 06:50 PM
  6. Formula to Sum Charges Based on Dates for each Patient
    By chuckwud in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-27-2011, 11:03 AM
  7. [SOLVED] I need to exclude duplicate patient names for dates of service is.
    By Shannon in forum Excel General
    Replies: 2
    Last Post: 04-10-2005, 10:06 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