Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() At the moment each month a new row of data is added to the bottom of a "RawData" sheet, this sheet holds monthly data from 2003. A Summary sheet details just the last 13 months of data. At the moment, each month I have to delete the top month and copy and paste the "new" months data on the bottom. I believe I can set a formula that will always select the last 13 rows of data from the "RawData" sheet, I regret I do not know how to go about this, can anybody help please. With thanks Bob |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
And what would you like this formula to do?
-- Don Guillett SalesAid Software "Robert Gillard" wrote in message .uk... At the moment each month a new row of data is added to the bottom of a "RawData" sheet, this sheet holds monthly data from 2003. A Summary sheet details just the last 13 months of data. At the moment, each month I have to delete the top month and copy and paste the "new" months data on the bottom. I believe I can set a formula that will always select the last 13 rows of data from the "RawData" sheet, I regret I do not know how to go about this, can anybody help please. With thanks Bob |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The Summary sheet should show the latest 13 months records, so I would like
the row A13:J13 on the Summary sheet to lookup the last row of the RawData sheet and to reflect that data. Then I want row A12:J12 to lookup the 2nd from last row on the Raw Data sheet etc through to A1:J1 which would lookup the 13th from bottom row on the RawData sheet and reflect it on the Summary sheet.. I am sorry my initial post was unclear. Bob "Don Guillett" wrote in message ... And what would you like this formula to do? -- Don Guillett SalesAid Software "Robert Gillard" wrote in message .uk... At the moment each month a new row of data is added to the bottom of a "RawData" sheet, this sheet holds monthly data from 2003. A Summary sheet details just the last 13 months of data. At the moment, each month I have to delete the top month and copy and paste the "new" months data on the bottom. I believe I can set a formula that will always select the last 13 rows of data from the "RawData" sheet, I regret I do not know how to go about this, can anybody help please. With thanks Bob |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Robert
Try this example for the activesheet Copy both in a formula and run test There is no error checking if there are less then 13 rows Sub test() range(Cells(LastRow(ActiveSheet) - 12, 1), Cells(LastRow(ActiveSheet), 1)).EntireRow.Select End Sub Function LastRow(sh As Worksheet) On Error Resume Next LastRow = sh.Cells.Find(What:="*", _ after:=sh.range("A1"), _ Lookat:=xlPart, _ LookIn:=xlFormulas, _ SearchOrder:=xlByRows, _ SearchDirection:=xlPrevious, _ MatchCase:=False).Row On Error GoTo 0 End Function -- Regards Ron de Bruin http://www.rondebruin.nl "Robert Gillard" wrote in message .uk... At the moment each month a new row of data is added to the bottom of a "RawData" sheet, this sheet holds monthly data from 2003. A Summary sheet details just the last 13 months of data. At the moment, each month I have to delete the top month and copy and paste the "new" months data on the bottom. I believe I can set a formula that will always select the last 13 rows of data from the "RawData" sheet, I regret I do not know how to go about this, can anybody help please. With thanks Bob |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Copy both in a formula and run test
Copy both in a module and run test -- Regards Ron de Bruin http://www.rondebruin.nl "Ron de Bruin" wrote in message ... Hi Robert Try this example for the activesheet Copy both in a formula and run test There is no error checking if there are less then 13 rows Sub test() range(Cells(LastRow(ActiveSheet) - 12, 1), Cells(LastRow(ActiveSheet), 1)).EntireRow.Select End Sub Function LastRow(sh As Worksheet) On Error Resume Next LastRow = sh.Cells.Find(What:="*", _ after:=sh.range("A1"), _ Lookat:=xlPart, _ LookIn:=xlFormulas, _ SearchOrder:=xlByRows, _ SearchDirection:=xlPrevious, _ MatchCase:=False).Row On Error GoTo 0 End Function -- Regards Ron de Bruin http://www.rondebruin.nl "Robert Gillard" wrote in message .uk... At the moment each month a new row of data is added to the bottom of a "RawData" sheet, this sheet holds monthly data from 2003. A Summary sheet details just the last 13 months of data. At the moment, each month I have to delete the top month and copy and paste the "new" months data on the bottom. I believe I can set a formula that will always select the last 13 rows of data from the "RawData" sheet, I regret I do not know how to go about this, can anybody help please. With thanks Bob |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Losing rows that reference data from another worsheet | Excel Worksheet Functions | |||
reference every 19 rows | Excel Worksheet Functions | |||
Rows to Columns on reference | Excel Worksheet Functions | |||
after selecting 50 rows of a column i can't reference the cells in the rows | New Users to Excel | |||
How do I reference multiple rows | Excel Worksheet Functions |