+ Reply to Thread
Results 1 to 3 of 3

LOOKUP Function with Conditions: i.e. Lookup only if Date 1 is > than Date 2

  1. #1
    Registered User
    Join Date
    10-31-2012
    Location
    Prince George, British Columbia
    MS-Off Ver
    Excel 2007
    Posts
    1

    LOOKUP Function with Conditions: i.e. Lookup only if Date 1 is > than Date 2

    confused:Hello,

    I have two sets of client data. The data represents admissions and discharges into 2 different facilities (Facility A and Facility B). Facility A is a hospital and Facility B is a Residential Care Facility. The purpose of this analysis is to determine which clients from Facility B have been admitted into Facility A during their stay at Facility B.

    Person 1 could have been admitted and discharged more than 1 time to Facility A as well as the Facility B. I did a VLOOKUP between the two data sets to see which clients are on both sets of data; however, I need to determine if in fact person 1 was actually in Facility B at time of admission to Facility A.

    I am not sure if there is such at thing as a function that will look these clients up only if the Facility B (Res Care) Admit Date is less than the Facility A (acute) admit date AND the Facility B discharge date is greater than the Facility A admit date???
    Attached Files Attached Files
    Last edited by KMaxwell; 10-31-2012 at 12:03 PM. Reason: adding workbook

  2. #2
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: LOOKUP Function with Conditions: i.e. Lookup only if Date 1 is > than Date 2

    Hi KMaxwell,

    Welcome to the forum.

    Please upload a workbook with sample data, this will help forum members to address the queries more efficiently.
    If solved kindly remember to mark Thread as solved.
    Click the small star icon at the bottom left of my post if this was useful.

  3. #3
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: LOOKUP Function with Conditions: i.e. Lookup only if Date 1 is > than Date 2

    Hi KMaxwell

    I am not quite sure what you mean, but how about the SUMPRODUCT function

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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