Splitting Date Range into Months

AH2014

New Member
Joined
Feb 7, 2014
Messages
4
Hope someone can help. I am using excel 2010. I have over 100 rows that need to be split by month for billing purposes.

I have a begin date (a1) and end date (a2); other cells may contain name and address, amounts.
A1 01/01/14 A2 7/15/14

Is there a way to get a new row for each month?
01/01/14 01/31/14
02/01/14 02/28/14
etc.
end with 07/01/14 07/15/14

Thanks for any help.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
I found a old post from 2008. Someone split by years and I tried it and worked. Can anyone figure out how to convert the formula to MONTHS vs YEAR???? I tried can't get it to work.

This is what posted for years.....

A2 = A1
B2 = IF(YEAR(A2)=YEAR($B$1),$B$1,DATE(YEAR(A2),12,31))
A3 = IF(A2="","",IF(YEAR(A2)>=YEAR($B$1),"",DATE(YEAR(A2)+1,1,1)))
B3=IF(A3="",",IF(YEAR(A3)=YEAR($B$1),$B$1,DATE(YEAR(A3),12,31)))

Fill the formula for A3 and B3 down as far as you need.
 
Upvote 0
Try writing the below formula in cell A3 and then drag it down


=TEXT(IF(EOMONTH($A$1,COUNTA(A$1:A1)-2)+1<$A$2,EOMONTH($A$1,COUNTA(A$1:A1)-2)+1,""),"mm/dd/yy")&" - "&TEXT(IF(EOMONTH($A$1,COUNTA(A$1:A1)-1)<$A$2,EOMONTH($A$1,COUNTA(A$1:A1)-1),$A$2),"mm/dd/yy")
 
Upvote 0
Hi

Perhaps :-
Excel Workbook
AB
101/01/201415/07/2014
201/01/201431/01/2014
301/02/201428/02/2014
AH2014
Excel 2007
Cell Formulas
RangeFormula
A2=A1
A3=IF(EOMONTH(A2,0)+1>$B$1,"",EOMONTH($A2,0)+1)
B2=IFERROR(IF(EOMONTH($A2,0)>$B$1,$B$1,EOMONTH($A2,0)),"")
B3=IFERROR(IF(EOMONTH($A3,0)>$B$1,$B$1,EOMONTH($A3,0)),"")


A3 and B3 dragged down as far as required.

hth
 
Upvote 0

Forum statistics

Threads
1,214,912
Messages
6,122,200
Members
449,072
Latest member
DW Draft

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