Make Month start on 26th and end on 25th of the next month

Andy1990

New Member
Joined
Jul 3, 2023
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi Team,

Was looking to create a payroll that allows Users to select a month, and that will prefill a column thats starts on the 26th of that month and end on the 25th of the following month.

I.e Users can select C1 and the Date on Column B prefills from the 26th of that month to the 25th of the following month.

1688508840692.png


Any help would be appreciated.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Disregard, i may have figured it out.

I used the following:
=DATE(C$2,C$1,1)+25

Unless there is a better way of doing it.

However, if for example the last cell goes past the EOM pay cycle (i.e i start on 26/09/2023 and page ends on 26/09/2023) - is there a way to make it blank? either via formula or conditional formatting

1688510642779.png
 
Upvote 0
Disregard, i may have figured it out.

I used the following:
=DATE(C$2,C$1,1)+25

Unless there is a better way of doing it.

However, if for example the last cell goes past the EOM pay cycle (i.e i start on 26/09/2023 and page ends on 26/09/2023) - is there a way to make it blank? either via formula or conditional formatting

View attachment 94732
Apologies i meant start 26/09 and end 26/10 in this example
 
Upvote 0
Upvote 0
Not quite following your messages about where to end, but what about this?

23 07 05.xlsm
BC
19
22023
3
426/09/23
527/09/23
628/09/23
729/09/23
830/09/23
91/10/23
102/10/23
113/10/23
124/10/23
135/10/23
146/10/23
157/10/23
168/10/23
179/10/23
1810/10/23
1911/10/23
2012/10/23
2113/10/23
2214/10/23
2315/10/23
2416/10/23
2517/10/23
2618/10/23
2719/10/23
2820/10/23
2921/10/23
3022/10/23
3123/10/23
3224/10/23
3325/10/23
34
Dates
Cell Formulas
RangeFormula
B4:B33B4=LET(s,DATE(C2,C1,26),SEQUENCE(EDATE(s,1)-s,,s))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,216,494
Messages
6,130,977
Members
449,611
Latest member
Bushra

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