Automatically fill in days of the month

Fatherof4

New Member
Joined
Jan 18, 2012
Messages
13
I have a spreadsheet where I have each day of the month listed vertically in column "B" so that I can input quantities used on a daily basis. What I am wanting to do is make it where I can put the first day of each month in cell "B4" and have the cells below automatically fill in the rest of the month but on months with only 30 days I don't want it to put the first day of the next month in the last cell. I tried to accomplished this with a basic formula of (=A1+1, A2+1,A3+1, etc.), but I don't know how to keep it from showing the first day of the next month in that last cell. Thank you in advance for helping me out with this.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Assuming that your first date is in cell A1, enter this formula in cell A2 and copy all the way down to cell A31:
Code:
=IFERROR(IF(MONTH(A10)=MONTH(A10+1),A10+1,""),"")
After the end of the month, it will just return blanks (instead of the first day or so of the following month).
 
Upvote 0
You could put in B5 then drag down:

=IFERROR(IF(MONTH(B4+1)>MONTH(B4),"",B4+1),"")
 
Upvote 0
Thank you both for taking the time to help me out!! It took me a couple of times of not entering in the formula right to get it to work but I finally got it.

Thanks again!!

Jodi
 
Upvote 0

Forum statistics

Threads
1,213,560
Messages
6,114,309
Members
448,564
Latest member
ED38

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