+ Reply to Thread
Results 1 to 3 of 3

Formula for total entries in a column and for percentage of certain value

  1. #1
    Registered User
    Join Date
    03-09-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Formula for total entries in a column and for percentage of certain value

    Ok, this is going to be somewhat complicated to explain, but I will try my best.

    I have a workbook that has 3 sheets in it, Arrests, SFST, and Stats

    I need some help calculating the stats.

    DUI Investigations needs to calculate a total number entries in column K of the SFST sheet, when a value of "yes" or "no" is entered
    DUI Arrests needs reference column K of the SFST sheet, and return a value indicating the number of time "yes" appears in the column
    DUI convictions will be the hard one, as it will need to check column G of the Arrest sheet for one of the following values "DUI 1st, DUI 2nd, DUI 3rd, DUI 4th" then cross-reference column I for a value of "conviction" and return the value for how many times the above option and "conviction" occur in the same row.

    Then I can input the formulas for the last 2 stats by referencing the above cells.
    % Arrests
    % Convictions

    If it would help, or make it possible, I guess I could split the "Arrest" sheet into "DUI Arrests" and "Other arrests" I have attached a sample workbook

    I'm not sure how to remove the original sample workbook, but the 2nd one, "Arrests and SFSTs with content," has some rows of fictitious info
    Attached Files Attached Files
    Last edited by SharpTJ; 03-09-2013 at 09:28 PM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Formula for total entries in a column and for percentage of certain value

    manually giving the answers to us next time would also be very helpful. for now, try this B2:B4 respectively:
    =COUNTA(SFST!$K$2:$K$100)
    =COUNTIF(SFST!$K$2:$K$100,"yes")
    does your entries in column G of the Arrest sheet contain anything other than the 4 "DUI" you mentioned? if no, consider:
    =COUNTIFS(Arrests!$G$2:$G$100,"DUI *",Arrests!$I$2:$I$100,"Conviction")
    that will count everything that begins with "DUI "
    if yes, then maybe:
    =SUM(COUNTIFS(Arrests!$G$2:$G$100,{"DUI 1st","DUI 2nd","DUI 3rd","DUI 4th"},Arrests!$I$2:$I$100,"Conviction"))

    the last 2 would work only in Excel 2007 & above

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    03-09-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Formula for total entries in a column and for percentage of certain value

    Wow...that was quick..and impressive. Thank you very much!!!

+ 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