Round up dates to a date ending quarter

Challis

New Member
Joined
Oct 22, 2017
Messages
21
Hi,
I am looking to round up dates from column A to a date ending quarter in column B. I have 100s of dates to convert so looking for a formula to put in column B
Example
A B
[TABLE="width: 154"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD="align: right"]Jul-16[/TD]
[TD="align: right"]30/09/2016[/TD]
[/TR]
[TR]
[TD="align: right"]Aug-16[/TD]
[TD="align: right"]30/09/2016[/TD]
[/TR]
[TR]
[TD="align: right"]Sep-16[/TD]
[TD="align: right"]30/09/2016[/TD]
[/TR]
[TR]
[TD="align: right"]Oct-16[/TD]
[TD="align: right"]31/12/2016[/TD]
[/TR]
[TR]
[TD="align: right"]Nov-16[/TD]
[TD="align: right"]31/12/2016[/TD]
[/TR]
[TR]
[TD="align: right"]Dec-16[/TD]
[TD="align: right"]31/12/2016[/TD]
[/TR]
[TR]
[TD="align: right"]Jan-17[/TD]
[TD="align: right"]31/03/2017[/TD]
[/TR]
[TR]
[TD="align: right"]Feb-17[/TD]
[TD="align: right"]31/03/2017[/TD]
[/TR]
[TR]
[TD="align: right"]Mar-17[/TD]
[TD="align: right"]31/03/2017[/TD]
[/TR]
</tbody>[/TABLE]

Help appreciated!
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Bound to be a better way when one of the formula Guru's looks at this but the below gives the results you are looking for in your examples.

Excel Workbook
AB
1Jul-1630/09/2016
2Aug-1630/09/2016
3Sep-1630/09/2016
4Oct-1631/12/2016
5Nov-1631/12/2016
6Dec-1631/12/2016
7Jan-1731/03/2017
8Feb-1731/03/2017
9Mar-1731/03/2017
10May-1730/06/2017
Sheet2
 
Upvote 0
Hi,

This would also work:


Book1
AB
1Jul-169/30/2016
2Aug-169/30/2016
3Sep-169/30/2016
4Oct-1612/31/2016
5Nov-1612/31/2016
6Dec-1612/31/2016
7Jan-173/31/2017
8Feb-173/31/2017
9Mar-173/31/2017
10Apr-176/30/2017
Sheet452
Cell Formulas
RangeFormula
B1=EOMONTH(A1,MOD(MONTH(A1)*2,3))
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,967
Members
452,371
Latest member
Frana

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