Create new worksheets using date data [Closed]

Report
-
 Blocked Profile -
Hello,

I've been asked to find a way to sort data comprised of visit dates in to worksheets (within the same workbook) by age. The dates range from early 2016 to late 2017 and we want them aged as follows: 0-30 days old, 31-60, 61-90 and 91-120.

2 replies


You can sort right?
Click on the column you wish to sort by, and sort it.

You have to manually cut and paste the data after sorting.
We were hoping for something a bit more automated. I'm fully aware of what sorting can yield.
Blocked Profile
Take a look here, the examples at the bottom will help out!

https://ccm.net/faq/53497-how-to-manipulate-data-in-excel-using-vba

Here is a quick bone:

Private Function copyRow(whatrow, whatsheet)
ActiveSheet.Paste Destination:=Worksheets(whatsheet).Range("A" & whatrow)
Application.CutCopyMode = False
End Function