Auto update the date range

mwvirk

Active Member
Joined
Mar 2, 2011
Messages
295
Office Version
  1. 2016
Platform
  1. Windows
I am to enter the date from A1 to A31 like

01-Sep-2024
02-Sep-2024
-
-
-
Till end of the month
30-Sep-2024

I don't want to enter the full date format

I want to have a cell B1 where is put number 1 to 12 and in B2 input year e.g. 2024 and based on this, it should update the calendar

For example if value in B1 is 1 and B2 is 2024 then calendar should be updated like:

01-Jan-2024
02-Jan-2024
-
-
-
Till end of the month
31-Jan-2024

And if the value in B1 is 2 and B2 is 2024 then calendar should be updated like:

01-Feb-2024
02-Feb-2024
-
-
-
Till end of the month
28-Feb-2024

I hope it was explained properly and it can be done.

Thank you
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
1 more question.
It is possible if enter some value in a cell and it automatically calculate some specific % and return the result only
For example if I enter a value 100 but it should convert 50% and only show 50
If I enter 200 then it should convert 50% and show only 100
 
Upvote 0
In A1 copied down up to A31.
Excel Formula:
=IF(MONTH(DATE($B$2,$B$1,1)+ROWS($A$1:$A1)-1)=$B$1,DATE($B$2,$B$1,1)+ROWS($A$1:$A1)-1,"")
 
Upvote 1
Solution

Forum statistics

Threads
1,224,596
Messages
6,179,802
Members
452,943
Latest member
Newbie4296

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