+ Reply to Thread
Results 1 to 2 of 2

VLOOKUP formula that matches a date and returns sequential text from a separate worksheet

  1. #1
    Registered User
    Join Date
    04-10-2009
    Location
    Colorado
    MS-Off Ver
    Excel 2016
    Posts
    30

    VLOOKUP formula that matches a date and returns sequential text from a separate worksheet

    I am trying to streamline a data entry process for tracking central line associated blood stream infections (CLA-BSI). I have attached an example of what the data might look like in the "TestData" worksheet. This data would be appended for each month of data. In the "Forms" worksheet the nurse would enter the first day of the month in the following format in cell J1 (11/1/2018) which will return the spelled out month and year. Using this date from cell J1, the formula I need would look for this same month/year combination in TestData worksheet, then input the data from TestData column A if the dates match. For example:

    In Forms worksheet cell J10 I would like to write a formula to VLOOKUP(J1,TestData!H2:H9) if any of the dates in the TestData H column match cell J1 from Forms, then return the first value in Column A from the TestData (i.e. Patient 1). I would like a way to enter the next patient name in the list as long as the dates match for the next patient name section in cell J12 and so on. So a sequential listing of the values from TestData column A as long as dates match.

    Hopefully that makes sense, but should be clearer once you view the attached example file.

    Thanks as always for your expertise in helping me figure this one out!
    kdestef1
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: VLOOKUP formula that matches a date and returns sequential text from a separate worksh

    How about this in J10 (it's an array formula and so needs to be confirmed with Ctrl+Shift+Enter) then copied and pasted into J12, J14, J16 etc.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    See attached.

    BSB
    Attached Files Attached Files

+ 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] if vlookup returns #n/a then create separate sheet with VBA macro code
    By pacificepoc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-29-2018, 02:20 AM
  2. [SOLVED] Excel2010 IF Formula to return value based on a separate date and two separate text values
    By jakecutler in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-12-2015, 03:24 AM
  3. Replies: 7
    Last Post: 03-28-2014, 07:56 AM
  4. [SOLVED] Vlookup with multiple matches returns blank
    By RJK in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-29-2013, 11:28 AM
  5. Variation of VLOOKUP that returns all partial matches
    By anthonyle in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 03-14-2013, 12:40 AM
  6. Variation of VLOOKUP that returns ALL matches, not just the first one...
    By Leicester in forum Excel - New Users/Basics
    Replies: 12
    Last Post: 03-14-2013, 12:34 AM
  7. [SOLVED] Lookup that returns true value if cell matches text in a column
    By shauncat in forum Excel General
    Replies: 5
    Last Post: 07-16-2012, 10:30 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