+ Reply to Thread
Results 1 to 4 of 4

Count occurrences that contain one or more named range values

  1. #1
    Registered User
    Join Date
    09-30-2016
    Location
    Massachusetts
    MS-Off Ver
    2016
    Posts
    2

    Count occurrences that contain one or more named range values

    Hello, I'm working on a customer service log where five different people input their initials when they respond to an incident. I need to count the total number of times someone on a specific list responds to an incident. I put those five people in a named range and use the formula =SUMPRODUCT(COUNTIF(searchrange,namedrange)). It worked like a charm, but I now see that sometimes two people will respond to an incident and put a slash in the log instead of just one person's initials.

    For example, if AB and CD both respond to something, they'll input AB/CD. My formula will not include that cell in its count, and I end up having a lower total than I should.

    Any advice other than including all possible combinations of initials in the named range?

    Thanks!

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Count occurrences that contain one or more named range values

    Attach a sample workbook (not a picture or pasted copy).

    Make sure there is just enough data to demonstrate your need.

    Make sure your desired results are shown, mock them up manually if necessary.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,926

    Re: Count occurrences that contain one or more named range values

    Best advice would to prevent them from doing this. Maybe create drop-down lists for data entry and limit the cell’s content to what’s available. Don’t let the tail wag the dog!
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Count occurrences that contain one or more named range values

    I would agree with @AliGW.

    Force users to enter consistent entries instead of trying to handle every hoop they can make you jump through.

    I would use data validation as a drop down if: you can pull entries from a list (sounds like you could) and will only ever enter 1 entry at a time. You could use additional columns for multiple entries, but then need to adjust your formula to account for this.

    The other option is to use data validation to limit what gets entered following some "rules". This could be something like length of the entry (2 characters long only) or not allowing special characters like /, \, | for example.

    It sounds to me like you need to adjust your form/file to allow for a "proper" entry that accounts for more than 1 person being involved, unless you dont want more than 1 person per incident. The users have put entries using a / in there as the current form doesnt have any other way for them to indicate more than 1 person being involved. If you want them to be able to, provide them a way thats conducive to how you analyze the information post entry.

    In combination with this, providing clear instruction for users will make everyone's job easier. This can be done using text boxes, comments in cells, data validation input/error messages, even sending out an email or providing a sheet with instructions in the file. Make them aware of the proper ways to fill in the file and how to go about it.
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

+ 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. [SOLVED] How to Count Values Which Are Between 100 and 200 Without Creating Named Range
    By zanshin777 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-25-2015, 10:03 AM
  2. [SOLVED] Count # of occurrences in range
    By HalPlz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2015, 02:28 AM
  3. [SOLVED] Count the occurrences of 3 words in a range
    By tlacloche in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-20-2014, 10:54 AM
  4. How to make a named range null or empty if count = 0 (no values present)
    By MCunningham in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-15-2013, 12:12 PM
  5. Replies: 3
    Last Post: 10-23-2013, 08:42 AM
  6. [SOLVED] Count occurrences of text in a range
    By braydon16 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-18-2013, 08:33 PM
  7. Count occurrences of values in a column??!!
    By me123 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-10-2006, 03:40 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