Find next payment date

rallez

New Member
Joined
Mar 16, 2017
Messages
5
Hi,

I have a spreadsheet with a set of dates and payments, each date does not mean there is a payment.
Each month I update a cell which contains the month (eg. April, May, June etc)
I want a formula to display the next payments' month.


Date of reportApril-18
Next payment date
Monthoct.-17nov.-17dic.-17ene.-18feb.-18mar.-18abr.-18may.-18jun.-18
Payment50.000350.000120.00000100.00010.0000400.000

<colgroup><col><col><col><col span="7"></colgroup><tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Assuming the cell containing the month is A6, and the cells in B3:J3 are in date format, then:

Code:
=TEXT(INDEX($B$3:$J$3,MATCH(1,INDEX((MONTH($B$3:$J$3)>MATCH(LEFT($A$6,3),INDEX(TEXT(DATE(2000,ROW(INDIRECT("1:12",1)),1),"mmm"),),0))*(YEAR($B$3:$J$3)>=YEAR(TODAY()))*($B$4:$J$4>0),),0)),"mmm")

will give you the next month that contains a payment larger than 0. E.g. if you enter April, or Apr in A6, the answer for your data is Jun.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,694
Members
448,979
Latest member
DET4492

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