+ Reply to Thread
Results 1 to 11 of 11

Need help with countif/countifs

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-26-2017
    Location
    west midlands
    MS-Off Ver
    365
    Posts
    185

    Need help with countif/countifs

    Hi guys,
    Can I have some expert help with an issue I am trying to solve.?
    Problem is I want to count multiple entries in one cell as per the attached. Can someone please advise if this is at all possible and if so what formula should I use?

    Thanking you all for your patience and support,
    Tony
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Need help with countif/countifs

    One way:

    =SUMPRODUCT(--ISNUMBER(SEARCH(ROW(A1),$C$4:$C$8)))

    copied down
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Contributor
    Join Date
    07-26-2017
    Location
    west midlands
    MS-Off Ver
    365
    Posts
    185

    Re: Need help with countif/countifs

    Crikey Glenn,
    You came up with the solution so quickly, and it works fine, only problem is I have not got a clue what the formula means or does, can you explain please?
    Sorry to be a pain, but I would love to understand what has been applied here.

    Thanks in advance,
    Tony

  4. #4
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Need help with countif/countifs

    Quote Originally Posted by Glenn Kennedy View Post
    One way:

    =SUMPRODUCT(--ISNUMBER(SEARCH(ROW(A1),$C$4:$C$8)))

    copied down
    If the number of sports go above 9 then it will count 10, 11 etc as part of the Football results.

    I would also say though that the solution provided is "too clever" as such by referring to a row number to search and is working on an assumption that the full table would run in order etc (edit: however I have just seen your proposal to split column E which solves that).
    Last edited by pjwhitfield; 09-10-2018 at 07:18 AM.
    If someone has helped you then please add to their Reputation

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Need help with countif/countifs

    Though, I'd be tempted to split column E into 2, as shown here.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    07-26-2017
    Location
    west midlands
    MS-Off Ver
    365
    Posts
    185

    Re: Need help with countif/countifs

    This just gets better !!

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Need help with countif/countifs

    The Cyan isn't easy to see beside the green, but it's the -- in the formula.

  8. #8
    Forum Contributor
    Join Date
    07-26-2017
    Location
    west midlands
    MS-Off Ver
    365
    Posts
    185

    Re: Need help with countif/countifs

    Thanks so much Glenn, This is exactly what I wanted and through your help can now see what the formula means.

    Thanks once again,
    Tony

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Need help with countif/countifs

    Explanation (of second formula).

    =SUMPRODUCT(--ISNUMBER(SEARCH(F4,$C$4:$C$8)))

    Red: search for this number
    Orange; In this range
    Green: returns TRUE if the number is found, otherwise FALSE.
    Cyan: convert TRUE to 1, FALSE to 0
    Black: add up the 1s and 0s.



    You're welcome.



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

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Need help with countif/countifs

    You're welcome.


    BtW, the best way to see what a formua is doing is via:

    Formulas/Formula Auditing/Evaluate Formula.

    You can then step through the formula to see what it does. Rather annlyingly, the evluation box cannot be resized.


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

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  11. #11
    Forum Contributor
    Join Date
    07-26-2017
    Location
    west midlands
    MS-Off Ver
    365
    Posts
    185

    Re: Need help with countif/countifs

    Thanks Glenn, That`s something else I have learnt today - what a great site this is.
    Will mark it as solved,
    Cheers buddy.
    Tony

+ 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] % and COUNTIF/COUNTIFS
    By cjharwood in forum Excel General
    Replies: 3
    Last Post: 09-06-2015, 08:47 PM
  2. Need help with COUNTIF, COUNTIFS, or maybe something else
    By M_Easty in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-05-2013, 03:21 PM
  3. [SOLVED] Countif or Countifs -
    By MercyMercyMe in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-14-2013, 04:52 PM
  4. Need Help with Countif or countifs
    By ihateexcelmorethanu in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-27-2013, 03:52 PM
  5. Countif and Countifs
    By alexfamily5 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 01-15-2013, 05:51 PM
  6. Countif or countifs - please help
    By Davidcat in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 06-24-2011, 04:53 AM
  7. countif & countifs
    By northernstar197 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-02-2007, 12:51 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