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

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
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,979
Messages
6,122,557
Members
449,088
Latest member
davidcom

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