+ Reply to Thread
Results 1 to 2 of 2

Lookup Given Date in Cell A1 to date list in Cell E:E and find closest match

  1. #1
    Registered User
    Join Date
    05-14-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    92

    Lookup Given Date in Cell A1 to date list in Cell E:E and find closest match

    Hi i need code to be able to search the date in Cell A1 and look through the data in Cells E:E, then find the closest match then return the corresponding value in cell D:D.

    See the attached, thanks!!

    Example.xlsx

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Lookup Given Date in Cell A1 to date list in Cell E:E and find closest match

    Hi all your column E dates are just text strings. They can be understood as dates but since they're not numeric Excel can't perform any date arithmetic.

    You need to convert them first. Here's one way. Enter in F1 on sheet 2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    copy this down.
    Then to find the nearest value that precedes the date in A1 use

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

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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] How to Match or Lookup the the qty to other specific cell that match the date
    By JESSHOR60 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-11-2015, 04:20 AM
  2. Move cell based on closest match from list.
    By jeff p in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-13-2014, 01:27 PM
  3. Find cell with the last closest date
    By Chiefsotos in forum Excel General
    Replies: 8
    Last Post: 04-13-2014, 04:09 PM
  4. [SOLVED] look-up a date in a range and find the date that is closest todays date
    By VanShark in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-12-2014, 09:46 PM
  5. [SOLVED] Find the closest match to a cell , but with a condition.
    By Sarangsood in forum Excel General
    Replies: 8
    Last Post: 12-31-2011, 05:00 AM
  6. find the closest match of a cell from a column when another cell reaches a value
    By Sarangsood in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2011, 12:58 AM
  7. Replies: 1
    Last Post: 05-27-2006, 04:00 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