Want to find the nearest date

vishu

Board Regular
Joined
Oct 26, 2011
Messages
73
Office Version
  1. 2016
Platform
  1. Windows
N5 to NO5 to OResult
01-01-202501-01-2025
01-02-202521-01-2025
01-03-202526-01-2025
01-04-202527-01-2025
01-05-2025
21-01-2025
26-01-2025
27-01-2025
Hello friends, I have Two columns N and O. N is paid date and O is suppose to pay date. Need formula want to find the nearest date so the result should look like shown in Result header
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Friends let me explain please provide formula please
Column O5 to O (Should Pay) captures the due date which is for each month, the repayment date.
Column N5 to N (Paid) Contains the actual Paid date.

Now, for each should pay date in column O, want to have the latest Paid date from column N. Need formula for this logic which will calculate the nearest paid date for each “should pay” date in column O with the aid of ‘minimum’. It calculates the absolute difference between the should pay date and all paid dates.
Paidshould paySort Nearest Date Formula
01-01-202501-01-2025
01-02-202521-01-2025
01-03-202526-01-2025
01-04-202527-01-2025
01-05-2025
21-01-2025
26-01-2025
27-01-2025
 
Upvote 0
If this is so difficult or may be you guys are busy solving, helping bigger problems. Please allow me to ask same question some other forums Please
 
Upvote 0

Forum statistics

Threads
1,225,902
Messages
6,187,735
Members
453,437
Latest member
Chexmix

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top