Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Breaking out Dates from a Date Range

Not sure how to do this or if it can be done. Im am trying to manipulate
data from a Project Management download. In my spreadsheet i have 3 columns;
a task, a Start Date and a End Date (EX: Build House; Start 1/1/08; End
2/1/08).

Is there a way that Excel can look at the start and end dates and then
populate that task for each day it will be done as seperate line items? (EX
Build HOuse on 1/1/08, 2nd row = Build House on 1/2/08, 3rd row = Build House
on 1/3/08,,,etc).

I dont want to do this manually. Please Help. Thanks.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Breaking out Dates from a Date Range

Public Sub ProcessData()
Dim i As Long
Dim LastRow As Long
Dim NumRows As Long

With ActiveSheet

LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
For i = LastRow To 1 Step -1

If .Cells(i, "B").Value < .Cells(i, "C").Value Then

NumRows = .Cells(i, "C").Value - .Cells(i, "B").Value
.Rows(i + 1).Resize(NumRows - 1).Insert
.Cells(i + 1, "A").Resize(NumRows).Value = .Cells(i,
"A").Value
.Cells(i, "B").AutoFill .Cells(i, "B").Resize(NumRows + 1)
.Cells(i, "C").ClearContents
End If
Next i

End With

End Sub


--
__________________________________
HTH

Bob

"WPNX777" wrote in message
...
Not sure how to do this or if it can be done. Im am trying to manipulate
data from a Project Management download. In my spreadsheet i have 3
columns;
a task, a Start Date and a End Date (EX: Build House; Start 1/1/08; End
2/1/08).

Is there a way that Excel can look at the start and end dates and then
populate that task for each day it will be done as seperate line items?
(EX
Build HOuse on 1/1/08, 2nd row = Build House on 1/2/08, 3rd row = Build
House
on 1/3/08,,,etc).

I dont want to do this manually. Please Help. Thanks.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
More About Breaking Down Days between Dates Veritec Excel Worksheet Functions 0 November 16th 06 02:40 PM
Breaking down days between dates Veritec Excel Worksheet Functions 4 November 15th 06 08:44 PM
return a date from range, date is between dates in two other cells NN Excel Discussion (Misc queries) 1 September 28th 06 10:05 PM
How to count dates within a certain range in a column with mutiple date range entries Krisjhn Excel Worksheet Functions 2 September 1st 05 01:59 PM
Finding dates within a date range Marcus Excel Worksheet Functions 2 April 5th 05 02:03 AM


All times are GMT +1. The time now is 09:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"