# Adding date, but stopping at the last day of the month

#### thunt1274

##### New Member
I need help setting up a formula. My employer lost the contract & a new company is taking over. The current company was set up for bi-weekly pay periods, but the new company is set up for bi-monthly pay periods. In my spread sheet I have 16 cells set up for dates. I have a formula for the first cell that will put the correct date in & i know how to leave a blank space / NA. What i need help with is not to go into the next month.
For example in Feb, the last pay period will be from the 16th - 28th. I need to set up a formula that will stop on the last day of the month & show "NA" for the rest of the cells.
Any help will be greatly appreciated.

### Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

#### pjmorris

##### Well-known Member
I'm sure someone on here can provide a formula for you, but I'm not clear on the layout of your data and the required output. If you use the XL2BB utility (button above) you can paste your spreadsheet. It helps enormously if you can show a sample of your starting point and the output you want to achieve.

Replies
27
Views
1K
Replies
0
Views
57
Replies
6
Views
89
Replies
2
Views
88
Replies
3
Views
132

### Forum statistics

1,126,932
Messages
5,621,671
Members
415,849
Latest member
PhoenixRising2015

### 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.

### Which adblocker are you using?

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

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