Hello All,
I have a spreadsheet with data about what information in a database has been reviewed or not (data is reviewed on a “page” by “page” basis, per subject).</SPAN>
The data looks something like this:</SPAN>
<TBODY>
</TBODY>
The number of rows per subject varies as a function of number of pages that have data in them and is therefore dynamic.</SPAN>
I need to provide some metrics about how many pages per subject have been reviewed and this information needs to be presented in percent (%) format.</SPAN>
So for a given subject, all the rows will equal total number of rows (totrows) and all the rows with YES in column 7 will equal number of reviewed rows (revrows). This will make my formula look like:</SPAN>
Percent of reviewed per subject = (revrows/totrows)*100</SPAN>
And I want this formula result to be displayed in the cell (blank row, column 7), so that my data now looks like:</SPAN>
<TBODY>
</TBODY>
I am not sure where or how to start writing this sort of code, so I would appreciate help or if someone could point me in the right direction. Thanks!</SPAN>
I have a spreadsheet with data about what information in a database has been reviewed or not (data is reviewed on a “page” by “page” basis, per subject).</SPAN>
The data looks something like this:</SPAN>
SITE #</SPAN> | SUBJECT #</SPAN> | VISIT NAME</SPAN> | VISIT DATE</SPAN> | PAGE NAME</SPAN> | PAGE STATUS</SPAN> | REVIEWED?</SPAN> |
1001</SPAN> | 1001008</SPAN> | End of Study</SPAN> | 06/15/2012</SPAN> | Hematology</SPAN> | Monitored</SPAN> | Yes</SPAN> |
1001</SPAN> | 1001008</SPAN> | End of Study</SPAN> | 06/15/2012</SPAN> | Chemistry</SPAN> | Monitored</SPAN> | No</SPAN> |
1001</SPAN> | 1001008</SPAN> | End of Study</SPAN> | 06/15/2012</SPAN> | Vital Signs</SPAN> | Monitored</SPAN> | Yes</SPAN> |
| | | | | | |
1001</SPAN> | 1001009</SPAN> | Screening</SPAN> | 07/02/2013</SPAN> | Eligibility</SPAN> | Complete</SPAN> | No</SPAN> |
1001</SPAN> | 1001009</SPAN> | Screening</SPAN> | 07/02/2013</SPAN> | Disease History</SPAN> | Complete</SPAN> | Yes</SPAN> |
1001</SPAN> | 1001009</SPAN> | Screening</SPAN> | 07/02/2013</SPAN> | Liver Function</SPAN> | Complete</SPAN> | Yes</SPAN> |
| | | | | | |
<TBODY>
</TBODY>
The number of rows per subject varies as a function of number of pages that have data in them and is therefore dynamic.</SPAN>
I need to provide some metrics about how many pages per subject have been reviewed and this information needs to be presented in percent (%) format.</SPAN>
So for a given subject, all the rows will equal total number of rows (totrows) and all the rows with YES in column 7 will equal number of reviewed rows (revrows). This will make my formula look like:</SPAN>
Percent of reviewed per subject = (revrows/totrows)*100</SPAN>
And I want this formula result to be displayed in the cell (blank row, column 7), so that my data now looks like:</SPAN>
SITE #</SPAN> | SUBJECT #</SPAN> | VISIT NAME</SPAN> | VISIT DATE</SPAN> | PAGE NAME</SPAN> | PAGE STATUS</SPAN> | REVIEWED?</SPAN> |
1001</SPAN> | 1001008</SPAN> | End of Study</SPAN> | 06/15/2012</SPAN> | Hematology</SPAN> | Monitored</SPAN> | Yes</SPAN> |
1001</SPAN> | 1001008</SPAN> | End of Study</SPAN> | 06/15/2012</SPAN> | Chemistry</SPAN> | Monitored</SPAN> | No</SPAN> |
1001</SPAN> | 1001008</SPAN> | End of Study</SPAN> | 06/15/2012</SPAN> | Vital Signs</SPAN> | Monitored</SPAN> | Yes</SPAN> |
| | | | | % Reviewed</SPAN> | 67%</SPAN> |
1001</SPAN> | 1001009</SPAN> | Screening</SPAN> | 07/02/2013</SPAN> | Eligibility</SPAN> | Complete</SPAN> | No</SPAN> |
1001</SPAN> | 1001009</SPAN> | Screening</SPAN> | 07/02/2013</SPAN> | Disease History</SPAN> | Complete</SPAN> | Yes</SPAN> |
1001</SPAN> | 1001009</SPAN> | Screening</SPAN> | 07/02/2013</SPAN> | Liver Function</SPAN> | Complete</SPAN> | Yes</SPAN> |
| | | | | % Reviewed</SPAN> | 67%</SPAN> |
<TBODY>
</TBODY>
I am not sure where or how to start writing this sort of code, so I would appreciate help or if someone could point me in the right direction. Thanks!</SPAN>