Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The following is what I need help with:
(1) I have a main sheet where I am entering my data. I have defined a dynamic range for this data so that if I enter a new row or column in the sheet then this data will be included in the dynamic range. I want to know what I need to do to copy the data from the main sheet into asecond sheet so that when I enter a new row/column or amend the existing data in the first sheet then the second sheet will automatically update. I presume it is something to do with referencing the dynamic range from the first sheet into the second sheet. Once this part has been implemented then I will lock the second sheet so that it cannot be amended and only the first sheet can be amended. (2) I have been using the count functions to total up data from the first sheet into a summary sheet, for example, the total number of people from a specific area. I have also used SUMPRODUCT to total up dates in specific range, for example, the total number of people born between 1.1.1970 and 31.12.1970. I want to implement a formula in my summary sheet which will take my dynamic range from the first sheet and search it by 2 or more conditions, for example, I want to total up the number of people from a specific area who were born between 1.1.1970 and 31.12.1970. Any help would be appreciated. Kind Regards Roopesh |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Nov 16, 11:42*am, Roopesh1978
wrote: The following is what I need help with: (1) * I have a main sheet where I am entering my data. *I have defined a dynamic range for this data so that if I enter a new row or column in the sheet then this data will be included in the dynamic range. I want to know what I need to do to copy the data from the main sheet into asecond sheet so that when I enter a new row/column or amend the existing data in the first sheet then the second sheet will automatically update. I presume it is something to do with referencing the dynamic range from the first sheet into the second sheet. Once this part has been implemented then I will lock the second sheet so that it cannot be amended and only the first sheet can be amended. *(2) * I have been using the count functions to total up data from the first sheet into a summary sheet, for example, the total number of people from a specific area. I have also used SUMPRODUCT to total up dates in specific range, for example, the total number of people born between 1.1.1970 and 31.12.1970. I want to implement a formula in my summary sheet which will take my dynamic range from the first sheet and search it by 2 or more conditions, for example, I want to total up the number of people from a specific area who were born between 1.1.1970 and 31.12.1970. Any help would be appreciated. Kind Regards Roopesh hey roopesh use this ideology: macro 1: dim i i=1 do until worksheets("Data").cells(i,1)="" worksheets("DataDump").cells(i,1)=worksheets("Data ").cells(i,1) i=i+1 loop worksheets("DataDump").cells(i,1).formula= "=sum(A1:A" & i ")" this will move your data, and plant a formula at the base of your datadump sheet, with some formulas (you can make sum whatever you want). this should help. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Roopesh
Regulars will see your question where ever you put it, so if you could restrict your posts to the singular that would be fantastic. The answer to the second part of your question is below. Change the region to reference a cell. Dates A1 = 31-12-1970 and B1 = 1-1-1971 =SUMPRODUCT((A2:$A$18="Sydney")*($B$2:$B$18A1)*($ B$2:$B$18<B1)) Marcus |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Marcus
Thanks for the formula, it worked a treat Roopesh "marcus" wrote: Roopesh Regulars will see your question where ever you put it, so if you could restrict your posts to the singular that would be fantastic. The answer to the second part of your question is below. Change the region to reference a cell. Dates A1 = 31-12-1970 and B1 = 1-1-1971 =SUMPRODUCT((A2:$A$18="Sydney")*($B$2:$B$18A1)*($ B$2:$B$18<B1)) Marcus . |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Jason
Thanks for the Macro How would I go about implenting this, would i type it into the Visual Basic editor and save it?? Roopesh "jason" wrote: On Nov 16, 11:42 am, Roopesh1978 wrote: The following is what I need help with: (1) I have a main sheet where I am entering my data. I have defined a dynamic range for this data so that if I enter a new row or column in the sheet then this data will be included in the dynamic range. I want to know what I need to do to copy the data from the main sheet into asecond sheet so that when I enter a new row/column or amend the existing data in the first sheet then the second sheet will automatically update. I presume it is something to do with referencing the dynamic range from the first sheet into the second sheet. Once this part has been implemented then I will lock the second sheet so that it cannot be amended and only the first sheet can be amended. (2) I have been using the count functions to total up data from the first sheet into a summary sheet, for example, the total number of people from a specific area. I have also used SUMPRODUCT to total up dates in specific range, for example, the total number of people born between 1.1.1970 and 31.12.1970. I want to implement a formula in my summary sheet which will take my dynamic range from the first sheet and search it by 2 or more conditions, for example, I want to total up the number of people from a specific area who were born between 1.1.1970 and 31.12.1970. Any help would be appreciated. Kind Regards Roopesh hey roopesh use this ideology: macro 1: dim i i=1 do until worksheets("Data").cells(i,1)="" worksheets("DataDump").cells(i,1)=worksheets("Data ").cells(i,1) i=i+1 loop worksheets("DataDump").cells(i,1).formula= "=sum(A1:A" & i ")" this will move your data, and plant a formula at the base of your datadump sheet, with some formulas (you can make sum whatever you want). this should help. . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Update Excel Database via Access Main Database with a script | New Users to Excel | |||
Convert Excel database to dBASE database? | Excel Discussion (Misc queries) | |||
HELP: VBA Code to extract data from an SQL Server database and put it into Access Database | Excel Programming | |||
Moved database, how do I change link to the database in excel | Excel Discussion (Misc queries) | |||
Using Excel as a database and need macro or vba to take data entered on one tab and update the database by adding to the next avail row | Excel Programming |