+ Reply to Thread
Results 1 to 6 of 6

Find and sort nearest date

  1. #1
    Forum Contributor
    Join Date
    08-07-2012
    Location
    India
    MS-Off Ver
    Microsoft office home and student 2016 (Windows 10 Home 64bit)
    Posts
    136

    Find and sort nearest date

    Hello friends need excel formula please help me

    Sheet Name "Entry" A3 to C1000
    Date ID Member Name


    Sheet Name "L001"

    Loan Date ($B$2), Interest % ($C$2), Loan Amount ($D$2), Tenor ($E$2), Loan ID: ($G$1), Name ($F$2)



    Intrest Paid Date
    A5 to A100 (Need Formula)

    Suppose to Pay Date
    B5=IF(C5="", "", DATE(YEAR($B$2),MONTH($B$2)+C5,DAY($B$2)))
    B5 to B100 data is
    01-01-2025
    01-02-2025
    01-03-2025
    01-04-2025
    01-05-2025

    Tenor
    c5=1
    c6=2
    c7=3
    c8=4
    c9=5
    and so on

    Need formula for (Intrest Paid Date) A5 to A100

    Find the closest "Intrest Paid Date" date for each "Suppose to Pay Date" (B5 to B100), provide a formula
    So helper is in "Entry" sheet F3 to F1000
    =IF(ISNUMBER('L001'!B5), ABS(A3 - 'L001'!B5), "") Drag down
    000
    031
    059
    090
    120



    I tried below formula in sheet "L001" for A5 and Drag down
    =IFERROR(
    INDEX(Entry!$A$3:$A$1000,
    MATCH(MIN(IF((Entry!$B$3:$B$1000=$G$1)*(Entry!$C$3:$C$1000=$F$2), Entry!$F$3:$F$1000, 1E+30)),
    IF((Entry!$B$3:$B$1000=$G$1)*(Entry!$C$3:$C$1000=$F$2), Entry!$F$3:$F$1000, 1E+30),
    0)
    ),
    ""
    )
    But wrong result Result. Needed correct formula to achieve below result

    Sort Nearest Date Formula Suppose to Pay Date
    01-01-2025 01-01-2025
    21-01-2025 01-02-2025
    26-01-2025 01-03-2025
    27-01-2025 01-04-2025

    Note: Same question asked in https://www.mrexcel.com/board/thread...-date.1269135/

    Friends also attaching Testing sheet for your refrence please check Yellow mark sheets and yellow marked columns
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,868

    Re: Find and sort nearest date

    One guess,
    A5
    Please Login or Register  to view this content.
    copied down.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    08-07-2012
    Location
    India
    MS-Off Ver
    Microsoft office home and student 2016 (Windows 10 Home 64bit)
    Posts
    136

    Re: Find and sort nearest date

    Thanks you tried
    But It should match
    "L001" Sheet $G$1 = "Entry" Sheet B:B
    and
    "L001" Sheet $F$2= "Entry" Sheet C:C
    After matching then finding dates from
    "Entry" Sheet A:A = place the formula with sorted dates in A5 to A100 "L001" Sheet

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,817

    Re: Find and sort nearest date

    Perhaps the following formula will do what you want:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Contributor
    Join Date
    08-07-2012
    Location
    India
    MS-Off Ver
    Microsoft office home and student 2016 (Windows 10 Home 64bit)
    Posts
    136

    Re: Find and sort nearest date

    Amazing thank you, thank you very much

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,817

    Re: Find and sort nearest date

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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] Find Nearest Installment Value according to date
    By Danilo Flaiban in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-24-2024, 01:44 PM
  2. [SOLVED] Find Nearest Date
    By hkbhansali in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 07-13-2019, 11:04 AM
  3. [SOLVED] Find nearest previous date for a date & given value combination
    By Jules1414 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-28-2018, 09:42 AM
  4. Find nearest previous date for a date & given value combination
    By Jules1414 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-28-2018, 07:11 AM
  5. 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
  6. [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
  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