Sorting rows into other sheets by date value

Belindakzn

New Member
Joined
May 15, 2014
Messages
5
Hi all,

I need to make a excell spreadsheet for my company except I have no idea how to do this and if it is possible.

I need to enter in data into rows on Sheet 1. It will have quite a few headings and a picture next to the entered data. the last column will be a month that the job will be done eg: 05 or 06.

I would like to know is it possible for me to enter in the date in my last column of sheet 1 and excel automatically sends that entire row only onto anther sheet named 05 for jobs done in May. So on sheet 1 I will have all the quoted work listed as it comes in and excel sorts that to Sheets for the appropriate month?

I hope this makes sense. I can upload an example of this if it will help.

Thanking you in advance!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
I know this is going to sound strange, but how do I upload/attached an example of my spreadsheet with out having to retype it?

Sorry guys
 
Upvote 0
here is the link the faq you can use the html tag to attach the file. im not sure how that works:confused:. haven't posted a file here before
 
Upvote 0
DESIGN #CUSTOMER
STYLE #
PRINT NAMECOLOURSSAMPLE
MONTH
GL0288J8288MINNIE MOUSE1206
KI7445W14-0188MICKEY
ROCKS
1405

<tbody>
</tbody>
This is condensed example of what I am trying to do, there 3 more columns in there. I need to move and entire row onto another sheet dependent on the sample month. Eg: 06 is June so I need to move the whole row into another sheet named June. 05 will be May and I need to do the same, move the entire row into May Sheet. I need this to automatically do it as I enter in the data. Is there a sort of code I can use to move all rows dependent on the date? Sorry I hope i have not made it too confusing.
 
Upvote 0
I have managed to get the code for this from another website. The only problem I am having is that every time I run the Macro it inserts the same thing again. How can I just get it to update it not copy the same entries again.

Sorry I am very new to this and actually have no idea what I am doing but its working. Here is the code I have used.

Sub copyPasteData()
Dim strSourceSheet As String
Dim strDestinationSheet As String
Dim lastRow As Long

strSourceSheet = "Register"

Sheets(strSourceSheet).Visible = True
Sheets(strSourceSheet).Select

Range("C2").Select
Do While ActiveCell.Value <> ""
strDestinationSheet = ActiveCell.Value
ActiveCell.Offset(0, -2).Resize(1, ActiveCell.CurrentRegion.Columns.Count).Select
Selection.Copy
Sheets(strDestinationSheet).Visible = True
Sheets(strDestinationSheet).Select
lastRow = LastRowInOneColumn("A")
Cells(lastRow + 1, 1).Select
Selection.PasteSpecial xlPasteValues
Application.CutCopyMode = False
Sheets(strSourceSheet).Select
ActiveCell.Offset(0, 2).Select
ActiveCell.Offset(1, 0).Select
Loop
End Sub




Public Function LastRowInOneColumn(col)
'Find the last used row in a Column: column A in this example
'http://www.rondebruin.nl/last.htm
Dim lastRow As Long
With ActiveSheet
lastRow = .Cells(.Rows.Count, col).End(xlUp).Row
End With
LastRowInOneColumn = lastRow
End Function
 
Upvote 0

Forum statistics

Threads
1,214,431
Messages
6,119,462
Members
448,899
Latest member
maplemeadows

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