formula for unique date range - 15th - 14th of each month as opposed to full calendar months

doug firr

Board Regular
Joined
Mar 28, 2011
Messages
140
Hello

I have two columns: date (yyyy/mm/dd) and data associated with each date.

I'd like to group by month that ties in with our reporting period, which is not calendar months but mid months - 15th - 14th.

Is there a way to easily tell either my pivot table to do this or add a new column with formula next to date for each row to allow my pivot table to do this?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
the formula you would need would be:

Rich (BB code):
=If(Day(daterange here)>14,if(month(daterange here)=12,1,month(daterange here)+1),month(daterange here))


Just replace "daterange here" with the cell reference.
 
Upvote 0

Forum statistics

Threads
1,223,630
Messages
6,173,454
Members
452,514
Latest member
cjkelly15

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