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!
 
Did you try the formula that Jason suggested in post#5, just replacing the reference to B10 with your sumproduct formula?
 
Upvote 0

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
Not sure if I'm following correctly given the frequent brainfarts that I've been having lately but this is my attempt at what I think is needed. The hidden columns all have blanks returned by the formulas, I've just done this so that the table fits the forum a bit easier.
Book1
BCDEFGHIJKMQVZAEAF
525/12/202001/01/202108/01/202115/01/202122/01/202129/01/202105/02/202112/02/202126/02/202126/03/202130/04/202128/05/202102/07/202109/07/2021
6P26 1500000   0  01400000014000000 
7I262500000280000019000
8F26800000155000016000
9
1030/11/202031/12/202031/01/202128/02/202131/03/202130/04/202131/05/202130/06/2021
11P00/01/19001500000001400000014000000
12I00/01/19002500000280000019000
13F00/01/1900800000155000016000
Sheet3
Cell Formulas
RangeFormula
D6,F6:H6,J6:K6,AF6,AE6:AE8,Z6:Z8,V6:V8,Q6:Q8,M6:M8,I6:I8,E6:E8D6=FILTER($D$11:$K$13,OR(DAY(D$5-{0,1,2,3,4,5,6})=$C6)*($D$10:$K$10=EOMONTH(D$5+6,-1)),"")
 
Upvote 0

Forum statistics

Threads
1,215,029
Messages
6,122,757
Members
449,094
Latest member
dsharae57

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