Closed Thread
Results 1 to 2 of 2

Find the nearest date in a range of dates formula (Google sheets)

  1. #1
    Registered User
    Join Date
    10-20-2017
    Location
    California
    MS-Off Ver
    Windows 10
    Posts
    7

    Find the nearest date in a range of dates formula (Google sheets)

    Hi,

    Was hoping someone could help me with a formula that returns the nearest date in a range of dates, where the returned date is earlier than the search date.

    This is what I have: =INDEX(B:B,MATCH(MIN(IF(C:C=L2,abs(B:B-K2))),ABS(B:B-K2),0)), however, this returns the nearest date later than the search date.

    Date___________Object_______Search date______Object______Returned date
    03/03/2007_______a_________06/14/2007_________a________
    06/05/2007_______a
    06/16/2007_______a
    09/09/2007_______a
    10/10/2007_______b
    03/04/2007_______b


    The desired result is 06/05/2007, however with the formula above, I get 06/16/2007

    Thank you,
    Caroline

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,401

    Re: Find the nearest date in a range of dates formula (Google sheets)

    Your original thread has been moved to the correct section. Continue there, please: https://www.excelforum.com/for-other...s-formula.html
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Find the nearest date in a range of dates formula
    By kaytoc in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 10
    Last Post: 10-20-2017, 04:51 PM
  2. Anniversary Date Formula Reminder [Google Sheets]
    By switzd0d in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 04-26-2016, 04:18 PM
  3. Anniversary Date Formula Reminder [Google Sheets]
    By switzd0d in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-26-2016, 02:04 PM
  4. To compare & find out the nearest date in the range with a common date
    By rkulasekaran in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-04-2015, 08:08 AM
  5. Replies: 1
    Last Post: 11-25-2014, 07:26 PM
  6. Replies: 4
    Last Post: 08-23-2011, 07:42 AM
  7. Replies: 8
    Last Post: 02-27-2009, 06:06 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