+ Reply to Thread
Results 1 to 3 of 3

Calculating Percentage of Data in Column

  1. #1
    Registered User
    Join Date
    10-20-2007
    Posts
    1

    Calculating Percentage of Data in Column

    I am putting together a Service Delivery Report fro the Fire Department I work for. I am tracking the amount of time it is taking units to respond and arrive at calls. The amount of time in minutes is then compared against the departments time response standard. I am using an IF function to do this for example, Dispatch time is 10:00:00 arrival time is 10:05:00 so the response time is 5 minutes. I then take and use the IF/Then function and state that if < 10 minutes then 1 if not then 2. What I need to do is figure out the percentage of 1's there are in relation to the total number of calls.

    Thanks

    -Jason

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,919
    Say you use column B for dispatch time, column C for arrival time and col. D for your IF statements; then, in col E you could count the total number of dispatches with the formula:
    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Suppose you have headers in the first row (A1 = "Alarm", B1 = "Response"), and data below that as Excel dates. Then define these names (Insert > Name > Define):

    Tbl =OFFSET(Sheet1!$A$1, 1, 0, COUNTA(Sheet1!$A:$A)-1, 2)
    Alarm =INDEX(Tbl, 0, 1)
    Response =INDEX(Tbl, 0, 2)

    Then this formula will show the percent of response times meeting the criterion:

    =SUMPRODUCT( --(Response - Alarm <= TIME(0,10,0) ) ) / COUNTA(Alarm)

    Because this formula references cells formatted as time, Excel will automatically format it as time. Just change the formatting to %.
    Last edited by shg; 10-20-2007 at 07:42 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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