+ Reply to Thread
Results 1 to 1 of 1

Count rows then insert formula based on row counts

  1. #1
    Registered User
    Join Date
    10-02-2013
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2010
    Posts
    10

    Count rows then insert formula based on row counts

    Hello Forum,
    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).

    The data looks something like this:

    SITE # SUBJECT #VISIT NAME VISIT DATE PAGE NAME PAGE STATUS REVIEWED?
    1001 1001008 End of Study 06/15/2012 Hematology Monitored Yes
    1001 1001008 End of Study 06/15/2012 Chemistry Monitored No
    1001 1001008 End of Study 06/15/2012 Vital Signs Monitored Yes

    1001 1001009 Screening 07/02/2013 Eligibility Complete No
    1001 1001009 Screening 07/02/2013 Disease History Complete Yes
    1001 1001009 Screening 07/02/2013 Liver Function Complete Yes


    The number of rows per subject varies as a function of number of pages that have data in them and is therefore dynamic.
    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.

    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:

    Percent of reviewed per subject = (revrows/totrows)*100

    And I want this formula result to be displayed in the cell (blank row, column 7), so that my data now looks like:

    SITE # SUBJECT #VISIT NAME VISIT DATE PAGE NAME PAGE STATUS REVIEWED?
    1001 1001008 End of Study 06/15/2012 Hematology Monitored Yes
    1001 1001008 End of Study 06/15/2012 Chemistry Monitored No
    1001 1001008 End of Study 06/15/2012 Vital Signs Monitored Yes
    % Reviewed 67%
    1001 1001009 Screening 07/02/2013 Eligibility Complete No
    1001 1001009 Screening 07/02/2013 Disease History Complete Yes
    1001 1001009 Screening 07/02/2013 Liver Function Complete Yes
    % Reviewed 67%

    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. The attached file displays the data more accurately. Thanks!
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Enumeration of rows based on given counts
    By nilsonj in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-29-2013, 06:40 AM
  2. Macro to insert a row / rows with formula from above row based on number of reports
    By Anil Kutlu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-10-2012, 05:41 PM
  3. Insert Rows Based on Cell Count
    By PY_ in forum Excel General
    Replies: 2
    Last Post: 10-29-2010, 10:52 PM
  4. Delete Rows based on cell value and then Insert rows alternatively with a formula
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-11-2008, 04:27 PM
  5. Replies: 0
    Last Post: 01-05-2005, 09:31 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1