+ Reply to Thread
Results 1 to 4 of 4

Count specific numbers within a group of numbers

  1. #1
    Registered User
    Join Date
    02-20-2019
    Location
    London
    MS-Off Ver
    2013
    Posts
    6

    Question Count specific numbers within a group of numbers

    Hi,

    I have a spreadsheet with around 10,000 rows capturing information on our suppliers.

    This contains a group of categories which identifies the type of work that the supplier does for us.

    I have been asked to identify suppliers that do specific types of work and to provide an overall count of the number of suppliers for each of the criteria.

    The data looks like (example spreadsheet attached):

    Supplier Number Categories

    Supplier C 345678 1,3,4,5,6,9,14,17
    Supplier D 456789 1,3,4,5,6,7,8,9,13,14,15,17
    Supplier E 567890 1,3,4,5,6,7,9,11,13,14,15,17,18
    Supplier F 678901 1,2


    I have been asked to find out information such as:

    Both 15 & 18
    17 but 15 & 18 Don’t exist
    16 but 15,17 & 18 Don’t exist
    14 but 15,16,17 & 18 Don’t exist

    If i could understand how to make up the basic formula i could use this code and manipulate it to meet the other examples that are required.

    Can anyone provide some guidance on how this can be done please?

    Any help appreciated

    Thanks
    Ickle
    Attached Files Attached Files

  2. #2
    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,421

    Re: Count specific numbers within a group of numbers

    Cumbersome possibilities:

    =IFERROR(IF(IF(FIND("15",C2),1)+IF(FIND("18",C2),1)=2,"Yes"),"")

    =IF(AND(IFERROR(FIND("15",C2),"No")&IFERROR(FIND("18",C2),"No")="NoNo",IFERROR(FIND("17",C2),"No")<>"No"),"Yes","")

    =IF(AND(IFERROR(FIND("15",C2),"No")&IFERROR(FIND("17",C2),"No")&IFERROR(FIND("18",C2),"No")="NoNoNo",IFERROR(FIND("16",C2),"No")<>"No"),"Yes","")

    =IF(AND(IFERROR(FIND("15",C2),"No")&IFERROR(FIND("16",C2),"No")&IFERROR(FIND("17",C2),"No")&IFERROR(FIND("18",C2),"No")="NoNoNoNo",IFERROR(FIND("1",C2),"No")<>"No"),"Yes","")
    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.

  3. #3
    Registered User
    Join Date
    02-20-2019
    Location
    London
    MS-Off Ver
    2013
    Posts
    6

    Re: Count specific numbers within a group of numbers

    Brilliant - Thanks Ali

    Steve C

  4. #4
    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,421

    Re: Count specific numbers within a group of numbers

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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: 3
    Last Post: 05-19-2019, 07:31 AM
  2. Highlight numbers in a column +/- 2.5 from a select group of numbers
    By AlgoTrader77 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-22-2018, 02:30 AM
  3. [SOLVED] Function possible for Using specific number to count other specific numbers total ?
    By Karnik in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-02-2015, 03:35 AM
  4. [SOLVED] Search Group of Numbers in Cel Rangel and Highligh matched numbers.
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-24-2013, 01:07 AM
  5. Program to randomly selecting numbers from a group of numbers
    By flexalong in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-27-2008, 04:22 AM
  6. Replies: 1
    Last Post: 01-09-2006, 09:30 AM
  7. [SOLVED] count a group of numbers but do not count duplicates
    By Lisaml in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-26-2005, 08:06 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