+ Reply to Thread
Results 1 to 7 of 7

Create an "other" countif bucket when value doesn't match range

  1. #1
    Registered User
    Join Date
    09-23-2017
    Location
    North Carolina
    MS-Off Ver
    2013
    Posts
    2

    Create an "other" countif bucket when value doesn't match range

    I am having trouble conceptualizing how to make the output I need.

    I have a list of companies and I making a function to count how many times 6 of the ~40 companies show up in my range and then bucket all the other companies into an "other" category. The range also has blanks that I do not want to include.

    I've already got a correct formula to count the instances when the 6 companies show up in my list but can't seem to get the "other" bucket to collect the rest without picking up the blank cells.

    I know there is two criteria: "not blank" and "does not match any of the 6 companies I am counting separately".

    Any help here would be great, thanks!!

    Example below:


    Burger King
    Burger King
    McDonalds
    [Blank Cell]
    Wendys
    Panera
    Burger King
    [Blank Cell]
    Chipotle
    McDonalds
    Pizza Hut

    I need count to show
    Burger King: 3
    McDonalds: 2
    Other: 4 (does not include blank cells)
    Last edited by MattyIce63; 09-23-2017 at 09:16 PM.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Create an "other" countif bucket when value doesn't match range

    better show what you did
    or
    attach example excel file (not a picture) with non-other and other.
    desensitize data first

  3. #3
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    485

    Re: Create an "other" countif bucket when value doesn't match range

    Something like:

    =COUNTIF($A$1:$A$12,A14) for Burger King
    =COUNTIF($A$1:$A$12,A15) for McDonalds
    =COUNTIF($A$1:$A$12,"<>")-SUM(B14:B15) for Others

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Create an "other" countif bucket when value doesn't match range

    or another way for others: =COUNTIF(A1:A11,"<>")-SUMPRODUCT(COUNTIF(A1:A11,D1:D2)) where D1:D2 is a range where your selected companies are.

    But there are many ways to achieve the same result

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Create an "other" countif bucket when value doesn't match range

    Just for fun

    You can do that without any formula(s) but with PowerQuery (different ways)

  6. #6
    Registered User
    Join Date
    09-23-2017
    Location
    North Carolina
    MS-Off Ver
    2013
    Posts
    2

    Re: Create an "other" countif bucket when value doesn't match range

    This did the trick. Great idea to simply subtract matches from the total. Thank you so much

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Create an "other" countif bucket when value doesn't match range

    If that takes care of your original question, & to say Thanks, please click on Add Reputtion (bottom left corner of the post of the person(s) who helped you)
    then select Thread Tools from the menu (top right corner of your thread) and mark this thread as SOLVED.
    If you did it - ignore it.
    Thank you.

+ 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] Best way to assign a "Bucket" to a "file number" based on data from row
    By BG1983 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-27-2016, 11:23 PM
  2. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  3. [SOLVED] Pasting values between ranges in different workbooks: "Range" works but "Cells" doesn't
    By Flaubert in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-13-2013, 01:19 PM
  4. Strings Variables in Range("A1").Formula = "=index/match" ?
    By nadnerb5 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-19-2012, 05:07 PM
  5. [SOLVED] Variable "sheet-name" and "range-name" wanted in INDEX/MATCH-function
    By Fiebuls in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-01-2012, 04:09 PM
  6. How to write cell address of the match in this , =IF(COUNTIF(A:A,B1)>0,"x","")
    By sureng19 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2010, 08:03 PM
  7. Why does =countif(range,"<>""") count empty cells?
    By Ingeniero1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-16-2008, 01: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