Calculate Payment Date - Excel or Power Query

crazypanda

New Member
Joined
Feb 12, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I need help calculating payment date (either in Power Query or Excel - the data has been cleaned up by PQ, but happy to do a formula just in table of excel to get this part.
I have a Due Date column. I need a Payment Date column.
Payments are made on Thursdays, paying bills that have already passed the due date, and up to including the following Wednesday.
Examples:
ie Today is 13/Feb/24. IF a Due date is 10/Feb (already passed due date), it will get paid on 15Feb. If Due Date is 18/Feb (up to and including following Wednesday), it will also be paid on 15Feb.
Help would be heaps appreciated :)
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Not really sure what your past due on 10 February means regarding how to calculate when to calculate a payment date that you know you need to pay ASAP.
So, i've ignored that.

So, here is my guess at it:

Book1
ABC
1Due DatePayment Date
2Sat 2024-02-10Thu 2024-02-08
3Sun 2024-02-11Thu 2024-02-08
4Mon 2024-02-12Thu 2024-02-08
5Tue 2024-02-13Thu 2024-02-08
6Wed 2024-02-14Thu 2024-02-08
7Thu 2024-02-15Thu 2024-02-08
8Fri 2024-02-16Thu 2024-02-15
9Sat 2024-02-17Thu 2024-02-15
10Sun 2024-02-18Thu 2024-02-15
11Mon 2024-02-19Thu 2024-02-15
12Tue 2024-02-20Thu 2024-02-15
13Wed 2024-02-21Thu 2024-02-15
14Thu 2024-02-22Thu 2024-02-15
15Fri 2024-02-23Thu 2024-02-22
16Sat 2024-02-24Thu 2024-02-22
17Sun 2024-02-25Thu 2024-02-22
Sheet4
Cell Formulas
RangeFormula
C2:C17C2=WORKDAY.INTL(B2,-1,"1110111")
 
Upvote 0
If I'm following correctly, this might be what you want:
Book1
ABC
1Due DatePayment Date
2Sat 10-Feb-24Thu 15-Feb-24
3Sun 11-Feb-24Thu 15-Feb-24
4Mon 12-Feb-24Thu 15-Feb-24
5Tue 13-Feb-24Thu 15-Feb-24
6Wed 14-Feb-24Thu 15-Feb-24
7Thu 15-Feb-24Thu 15-Feb-24
8Fri 16-Feb-24Thu 15-Feb-24
9Sat 17-Feb-24Thu 15-Feb-24
10Sun 18-Feb-24Thu 15-Feb-24
11Mon 19-Feb-24Thu 15-Feb-24
12Tue 20-Feb-24Thu 15-Feb-24
13Wed 21-Feb-24Thu 15-Feb-24
14Thu 22-Feb-24Thu 22-Feb-24
15Fri 23-Feb-24Thu 22-Feb-24
16Sat 24-Feb-24Thu 22-Feb-24
17Sun 25-Feb-24Thu 22-Feb-24
Sheet1
Cell Formulas
RangeFormula
C2:C17C2=IF(B2-1<=TODAY(),WORKDAY.INTL(B2,1,"1110111"),WORKDAY.INTL(B2+1,-1,"1110111"))
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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