Create new worksheets using date data

Closed
Erich - Jan 11, 2018 at 09:19 AM
 Blocked Profile - Jan 11, 2018 at 04:58 PM
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 responses

Blocked Profile
Jan 11, 2018 at 04:46 PM
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.
0
We were hoping for something a bit more automated. I'm fully aware of what sorting can yield.
0
Blocked Profile
Jan 11, 2018 at 04:54 PM
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
0
Blocked Profile
Jan 11, 2018 at 04:58 PM
Here is a quick bone:

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


0