+ Reply to Thread
Results 1 to 3 of 3

Nearest due date formula

  1. #1
    Registered User
    Join Date
    10-13-2017
    Location
    Perth, Australia
    MS-Off Ver
    2007
    Posts
    7

    Nearest due date formula

    Hi,
    I am trying to get the nearest due date from the attached sheet which have tabs for each month of the year. The condition is whenever the excel sheet is opened it checks the todays date ignore the dates before today and brings up the nearest due date after today. I am using the below formulas

    =INDEX(P2:P13,MATCH(MIN(ABS(P2:P13-TODAY())),ABS(P2:P13-TODAY()),0))

    Where in P2:P13 I have put a formula for each monthly tab
    =INDEX('Jan 18'!B3:B25,MATCH(MIN(ABS('Jan 18'!B3:B25-TODAY())),ABS('Jan 18'!B3:B25-TODAY()),0))

    Both these formulas were entered using CTRL+SHIFT+ENTER.
    This formulas is ignoring dates from 2017 but from strange reason not ignoring 10th or 11th Jan.




    P.S.- Both the above formulas were copied from web and customised, I still don't have a clue how they work.
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Nearest due date formula

    You use ABS that rejected the date in past.
    Try date-TODAY >0 as criteria
    In P2:

    Please Login or Register  to view this content.
    Quang PT

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,615

    Re: Nearest due date formula

    ARRAY formula in Q2 then drag down
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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. Find the nearest date in a range of dates formula (Google sheets)
    By kaytoc in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 10-20-2017, 05:20 PM
  2. 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
  3. Find the nearest date in a range of dates formula
    By kaytoc in forum Excel General
    Replies: 9
    Last Post: 10-20-2017, 03:24 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: 0
    Last Post: 11-16-2015, 08:57 AM
  6. Finding Nearest date in a range based on critera date
    By skate1991 in forum Excel General
    Replies: 5
    Last Post: 07-22-2015, 02:10 PM
  7. [SOLVED] Find the Exact date, Nearest old and new date for the given input Letter) and date
    By thilag in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-17-2015, 05:13 AM

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