+ Reply to Thread
Results 1 to 23 of 23

Lookup Date equal to or smaller than specified Date

Hybrid View

  1. #1
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Lookup Date equal to or smaller than specified Date

    You're welcome. Basically, the LOOKUP function [ LOOKUP(2,1/... ] returns the last value in column I that meets a certain criteria.

    That criteria is: Bank!A3:A300=MAX(IF(Bank!A3:A300<=F7,Bank!A3:A300))

    So it checks the last value in the range A3:A300 that is {=MAX(IF(Bank!A3:A300<=F7,Bank!A3:A300))} and returns the corresponding value (same row) in column I.

    The MAX IF array formula finds the maximum value of A3:A300 that is less than or equal to the value in F7.

    All dates have a numerical value associated with them (the number of days away from 1/0/1900) so the MAX IF formula finds the most recent date that is less than or equal to the date in F7.

  2. #2
    Registered User
    Join Date
    10-18-2017
    Location
    London
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Lookup Date equal to or smaller than specified Date

    Thanks 63falcondude...

    Using the same spreadsheet and criteria, the above works perfectly at providing the value for the specified date. I now realise i will also need a formula to return a value when the specified date is first found (rather than last time as above). I've tried removing 2,1 etc.. but not getting the result. Could you point me in the right direction?

    Thanks again..

  3. #3
    Registered User
    Join Date
    10-18-2017
    Location
    London
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Lookup Date equal to or smaller than specified Date

    Quote Originally Posted by NiugeS View Post
    Thanks 63falcondude...

    Using the same spreadsheet and criteria, the above works perfectly at providing the value for the specified date. I now realise i will also need a formula to return a value when the specified date is first found (rather than last time as above). I've tried removing 2,1 etc.. but not getting the result. Could you point me in the right direction?

    Thanks again..
    To ensure i've explained myself correctly, if a date of 01/01/2017 is entered, the formula will first look for 01/01/2017 and return the first value for that date. If there is no entry for 01/01/2017, it will than look for the next date etc.
    Last edited by NiugeS; 10-19-2017 at 11:46 AM.

+ 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] Change code so macro activates when entry date is older or equal to current date
    By Big.Moe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-29-2017, 10:59 PM
  2. Replies: 0
    Last Post: 11-23-2015, 04:50 AM
  3. [SOLVED] Need FORMULA for Date subtract Date equal bussiness hour (don't count weekend)
    By tuongtu3 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-24-2015, 03:29 AM
  4. [SOLVED] Finding Largest Date but Smaller than any Given Date (non-array)
    By Jonathan78 in forum Excel General
    Replies: 10
    Last Post: 04-26-2015, 04:28 PM
  5. [SOLVED] Lookup with 3 conditons (1 is date equal or next date)
    By thilag in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-21-2014, 04:15 AM
  6. [SOLVED] Copy data from one sheet to another if the date is equal or higher than a gien date
    By ANDREAAS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-08-2013, 02:57 PM
  7. Replies: 4
    Last Post: 09-01-2011, 03:25 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