+ Reply to Thread
Results 1 to 3 of 3

Find the Exact date, Nearest old and new date for the given input Letter) and date

  1. #1
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Find the Exact date, Nearest old and new date for the given input Letter) and date

    Hello Friends

    Please find the attached 2010 version file <Equal and nearest dates for 1 creteria170715.xlsx>

    I want to find the Exact date, Nearest old and new date for the given input criteria (Letter) and given input date in Light yellow cells by formula.


    thanks in advance

    thilag

    Finding the Exact date, Nearest old and new date for the given input date without criteria for reference.
    http://www.excelforum.com/excel-form...iven-date.html

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Find the Exact date, Nearest old and new date for the given input Letter) and date

    In F2
    =IFERROR(INDEX($B$1:$B$12,MATCH(1,INDEX(($A$1:$A$12=$D2)*($B$1:$B$12=$E2),0),0)),"Nil")

    In G2
    =IF(MAX(IF(($A$1:$A$12=$D2)*($B$1:$B$12<$E2),$B$1:$B$12))=0,"Nil",MAX(IF(($A$1:$A$12=$D2)*($B$1:$B$12<$E2),$B$1:$B$12)))
    Array entered

    In H2
    =IF(MIN(IF(($A$1:$A$12=$D2)*($B$1:$B$12>$E2),$B$1:$B$12))=0,"Nil",MIN(IF(($A$1:$A$12=$D2)*($B$1:$B$12>$E2),$B$1:$B$12)))
    Array entered

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Re: Find the Exact date, Nearest old and new date for the given input Letter) and date

    Hello Ace_XL

    Excellent, thanks

    thanks again

    thilag

+ 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] exact date, nearest old and new dates for the given date
    By thilag in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-17-2015, 02:39 AM
  2. Replies: 1
    Last Post: 12-31-2014, 08:39 AM
  3. Sum ifs - Based on Matching Date (exact date not range)
    By alyssakhan in forum Excel General
    Replies: 11
    Last Post: 06-03-2014, 03:35 PM
  4. Compare and find nearest date with criteria
    By Dwexdwex in forum Excel General
    Replies: 4
    Last Post: 08-18-2013, 09:51 AM
  5. Find nearest available date that meets criteria
    By scottylad2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-16-2013, 03:17 PM
  6. Replies: 2
    Last Post: 01-04-2012, 09:15 AM
  7. How to find nearest date to that of given
    By TRJJK73 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-16-2008, 06:30 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