Problem with Dates in Excel (scheduling a day in a week each month)

financefinance

New Member
Joined
Dec 29, 2020
Messages
4
Office Version
  1. 365
Platform
  1. Windows
In cell B10 I have a value of $10,000
In cell C10, I have the value 26
In this example, I am intending to create a schedule of payments in whichever week the 26th falls in each month throughout the year

In cell D6 I have the week ending date 12/25/2020
In cell E6 I have the week ending date 1/1/2021 (in this example, I am expecting the payment to be in the week in 1/1/21)
In cell F6 I have the week ending date 1/8/2021 ... and so on

I tried the following formulas, but neither is resulting a value in the week of 1/1/2021 (I understand why I am not getting the value; I am not sure of the fix)
=IF(AND($C10>(DAY(D$6)-7),$C10<=DAY(D$6)),$B10,0)

=IF(AND(DATE(YEAR(D$6),MONTH(D$6),$C10)>(D$6-7),DATE(YEAR(D$6),MONTH(D$6),$C10)<=D$6),$B10,0)

Prefer a formula solution. Appreciate your help!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
T202012c.xlsm
BCDEFGHI
6Fri 18-Dec-20Fri 25-Dec-20Fri 01-Jan-21Fri 08-Jan-21Fri 15-Jan-21Fri 22-Jan-21Fri 29-Jan-21
702600026
8
9
101000026
3a
Cell Formulas
RangeFormula
D7:I7D7=AND(DATE(YEAR(C6),MONTH(C6),$C$10)>C6,DATE(YEAR(C6),MONTH(C6),$C$10)<D6)*$C$10
 
Last edited:
Upvote 0
T202012c.xlsm
ABCDEFGHIJ
6Fri 18-Dec-20Fri 25-Dec-20Fri 01-Jan-21Fri 08-Jan-21Fri 15-Jan-21Fri 22-Jan-21Fri 29-Jan-21Fri 05-Feb-21
7010000000100000
8
9
101000026
3a
Cell Formulas
RangeFormula
D7:J7D7=AND(DATE(YEAR(C6),MONTH(C6),$C$10)>C6,DATE(YEAR(C6),MONTH(C6),$C$10)<D6)*$B$10
 
Last edited:
Upvote 0
1609266975689.png


Thanks. The solution didn't suit my needs as I may have simplified my example too far. It may be a little more complicated because I am looking the value up via SUMPRODUCT from a Monthly Schedule. I am choosing the day within the month I would like the payment to fall (i.e., the 26th) and trying to create a weekly schedule.
 
Upvote 0
@Dave Patton I haven't evaluated your second post, but the first one doesn't work correctly with days early in the month (try 3 instead of 26).

@financefinance does this help?

Book1
BCDEFGHIJKLMNOPQR
625/12/202001/01/202108/01/202115/01/202122/01/202129/01/202105/02/202112/02/202119/02/202126/02/202105/03/202112/03/202119/03/202126/03/202102/04/2021
7
8
9
1010000260100000001000000010000000100000
Sheet1
Cell Formulas
RangeFormula
D10:R10D10=IF(OR(DAY(D$6-{0,1,2,3,4,5,6})=$C10),$B10,0)
 
Upvote 0
Both versions work. I like concise solutions such as your suggestion.
T202012c.xlsm
ABCDEFGHIJ
6Fri 18-Dec-20Fri 25-Dec-20Fri 01-Jan-21Fri 08-Jan-21Fri 15-Jan-21Fri 22-Jan-21Fri 29-Jan-21Fri 05-Feb-21
7010000000100000
8010000000100000
9
101000026
3a
Cell Formulas
RangeFormula
D7:J7D7=AND(DATE(YEAR(C6),MONTH(C6),$C$10)>C6,DATE(YEAR(C6),MONTH(C6),$C$10)<D6)*$B$10
D8:J8D8=IF(OR(DAY(D$6-{0,1,2,3,4,5,6})=$C10),$B10,0)
 
Upvote 0
Both versions work.
Not for me they don't, if c6 is early in the month
+Fluff v2.xlsm
ABCDEFGHIJKLMNO
618/12/202025/12/202001/01/202108/01/202115/01/202122/01/202129/01/202105/02/202112/02/202119/02/202126/02/202105/03/202112/03/2021
70010000000000000
8001000000010000000100000
9
10100004
Data
Cell Formulas
RangeFormula
D7:O7D7=AND(DATE(YEAR(C6),MONTH(C6),$C$10)>C6,DATE(YEAR(C6),MONTH(C6),$C$10)<D6)*$B$10
D8:O8D8=IF(OR(DAY(D$6-{0,1,2,3,4,5,6})=$C10),$B10,0)
 
Upvote 0
Do you have an amortization schedule?
Can you use a lookup to secure the relevant amount?
Please post relevant information with the forum's XL2BB.
 
Upvote 0
Do you have an amortization schedule?
Can you use a lookup to secure the relevant amount?
Please post relevant information with the forum's XL2BB.
The monthly table is the amortization table. The amounts are not constant, so the relevant amount for each payment on the 26th will change.

Apologies, I was not familiar with XL2BB. I have read about it and will install it on my personal PC this afternoon and try to repost this evening.

Appreciate you trying to assist.
 
Upvote 0

Forum statistics

Threads
1,215,523
Messages
6,125,318
Members
449,218
Latest member
Excel Master

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