+ Reply to Thread
Results 1 to 6 of 6

Getting total number of occurrences for rows that contain keyword

  1. #1
    Registered User
    Join Date
    09-10-2013
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Getting total number of occurrences for rows that contain keyword

    Hello,

    I am once again perplexed by an excel formula. I've been using the COUNT function to total "confirm" occurrences in a spreadsheet of attendance for a conference, but now I need to keep track of how many of the "confirm"s have been sent a response. We mark the responses with "Yes" or blank cells.

    The function I have currently is =COUNT(IF((F29:F76="confirmed")*(H29:H76="Yes") - I know it's incomplete, but the example I'm using in this tutorial does not explain to my knowledge the source of the end of the function : http://office.microsoft.com/en-us/ex...010070480.aspx.

    For instance they use =COUNT(IF((A2:A11="South")*(C2:C11="Meat"),D2:D11)), but don't really say why they put in the 'D2:D:11' at the end of the function. I tried using '2,0' and 'H29:H76' (the column I want the information from) but the function keeps returning 0's which isn't the number I get when I count it myself.

    I'm probably missing something simple here, but I'm very new to excel functions so be patient with your answers please

    Thanks for your help!
    Last edited by kearbear; 09-11-2013 at 11:39 AM.

  2. #2
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Getting total number of occurrences for rows that contain keyword

    Hi and welcome

    you can use the following formula to get your result

    =SUMPRODUCT(($F$29:$F$76="confirmed")*($H$29:$H$76="Yes"))
    Excel Guru in the making

    <----------If the question has been answered to your satisfication please click the Add Repuation star to the left

  3. #3
    Registered User
    Join Date
    09-10-2013
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Getting total number of occurrences for rows that contain keyword

    Cool that helps a lot!

    Does anyone know if it is also possible, assuming I look for people who have not received a response with =(SUMPRODUCT(($F$29:$F$76="confirmed")*($H$29:$H$76=""))), to highlight those people so that it's easier to find them on the list?

  4. #4
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Getting total number of occurrences for rows that contain keyword

    You can use conditional formatting using the following formula

    ="confirmed"&""=$F29:$F36&$H29:$H36

    Please check this link for a how-to in conditional formatting

    http://office.microsoft.com/en-gb/ex...001111661.aspx

  5. #5
    Registered User
    Join Date
    09-10-2013
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Getting total number of occurrences for rows that contain keyword

    Quote Originally Posted by TheCman81 View Post
    You can use conditional formatting using the following formula

    ="confirmed"&""=$F29:$F36&$H29:$H36

    Please check this link for a how-to in conditional formatting

    http://office.microsoft.com/en-gb/ex...001111661.aspx
    Awesome that's exactly what I needed Thank you so much!

  6. #6
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Getting total number of occurrences for rows that contain keyword

    Thanks for the feedback

+ 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. Replies: 11
    Last Post: 11-23-2011, 04:39 AM
  2. Need to Count number of occurrences and get percentage of total
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 07:05 AM
  3. [SOLVED] Need to Count number of occurrences and get percentage of total
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 04:05 AM
  4. [SOLVED] Need to Count number of occurrences and get percentage of total
    By JennLee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. [SOLVED] Need to Count number of occurrences and get percentage of total
    By JennLee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

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