+ Reply to Thread
Results 1 to 2 of 2

Lookup value based on closest date either side of a date

  1. #1
    Registered User
    Join Date
    11-26-2013
    Location
    .
    MS-Off Ver
    Excel 2010
    Posts
    33

    Lookup value based on closest date either side of a date

    Hi All.

    The attached contains two tables: 'Visits' and 'Samples'. The ID field on both tables is unique to an individual, and there may be multiple instances (again on both tables) where the individual has >1 visit or sample reported.

    I'm trying to join the most appropriate* Sample Date and the associated Sample Score (from the 'Samples' table) to each visit (on the 'Visits' table).

    *Appropriate = the 'Sample Reported Date' that is nearest either side of the 'Visit Date'.

    I've typed what I would hope to see in columns C:D. If possible, please could the manual calculations in C:D be replaced with the appropriate forumlae?

    Thanks so much for any help and let me know if I can clarify anything.
    Attached Files Attached Files
    Last edited by RollingStone88; 04-10-2019 at 07:45 AM.

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Lookup value based on closest date either side of a date

    one option

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Lookup value with multiple criteria and find date that is closest
    By Hellenborg in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 10-26-2017, 07:36 AM
  2. Replies: 3
    Last Post: 08-23-2017, 07:04 PM
  3. Lookup Given Date in Cell A1 to date list in Cell E:E and find closest match
    By Branbran10 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2015, 03:26 PM
  4. Power Pivot - Lookup based on Last Closest Date/Time
    By ELeGault in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-17-2015, 06:48 AM
  5. How to lookup value based on Date time closest to criteria
    By ilionel1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-08-2013, 02:01 PM
  6. Current date lookup and closest time display
    By Am I Wry in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2013, 02:44 PM
  7. [SOLVED] Finding the closest Date - Lookup
    By dluhut in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 05-08-2013, 04:58 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