+ Reply to Thread
Results 1 to 14 of 14

Formula to Count Occurrences of 'X' Appearing Within Set Value

  1. #1
    Registered User
    Join Date
    01-01-2020
    Location
    London, England
    MS-Off Ver
    Office 365 E3 - version 1808
    Posts
    27

    Question Formula to Count Occurrences of 'X' Appearing Within Set Value

    Hey all,

    Really hard to try and explain what i need help with using the correct terminology but essentially, what i need is to be able to show how many times a specific person within the document has totally failed, in the scenario in the attached workbook, that is totally failing to eat all apples, therefore 100% apples eaten.

    How can i create a count in a seperate column of how many times Person D (in the example) has eaten 100% of the apples so that i can track and trend Person Ds performance with regards to apple eating? (are you all still with me??)

    Any help is greatly appreciated!

    Excel Novice
    Attached Files Attached Files
    Last edited by AliGW; 01-01-2020 at 02:03 PM. Reason: Irrelevant section of title removed: this is a HELP forum!!!

  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,288

    Re: Formula to Count Occurrences of 'X' Appearing Within Set Value

    Welcome to the forum.

    In G2 copied down:

    =IF(F2=1,COUNTIFS(B$2:B2,B2,F$2:F2,1),"")
    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
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,851

    Re: Formula to Count Occurrences of 'X' Appearing Within Set Value

    =countifs($b$2:$b$13,"d",$f$2:$f$13,1)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    01-01-2020
    Location
    London, England
    MS-Off Ver
    Office 365 E3 - version 1808
    Posts
    27

    Re: Formula to Count Occurrences of 'X' Appearing Within Set Value

    Thank you Ali, absolute magic!

  5. #5
    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,288

    Re: Formula to Count Occurrences of 'X' Appearing Within Set Value

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

  6. #6
    Registered User
    Join Date
    01-01-2020
    Location
    London, England
    MS-Off Ver
    Office 365 E3 - version 1808
    Posts
    27

    Re: Formula to Count Occurrences of 'X' Appearing Within Set Value

    Hey all,

    Re-opening thread for similar issue:

    Really hard to try and explain what i need help with using the correct terminology but essentially, what i need is to be able to show how many times a specific person within the document has totally fallen within a specific range (in this case, 75% - 100%).

    How can i create a count in a seperate column of how many times Person F (in the example) has shown in the 75% - 100% group so that i can track and trend Person Fs performance with regards to count in group?

    Any help is greatly appreciated!

    (Example workbook attached)

    Excel Novice
    Attached Files Attached Files

  7. #7
    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,288

    Re: Formula to Count Occurrences of 'X' Appearing Within Set Value

    In F2 copied down:

    =IF(COUNTIFS($A$2:$A$9,A2,$E$2:$E$9,"75% - 100%")=1,"",COUNTIFS(A$2:A2,A2,E$2:E2,"75% - 100%"))

  8. #8
    Registered User
    Join Date
    01-01-2020
    Location
    London, England
    MS-Off Ver
    Office 365 E3 - version 1808
    Posts
    27

    Question Re: Formula to Count Occurrences of 'X' Appearing Within Set Value

    Hey Ali,

    Thanks as always for your help and rapid responses. This worked for the excel i sent over but wasn't directly transferable to another excel, so i've added the workbook (attached) and removed sensitive data and ask for the same thing please.

    Thanks in advance,

    Excel Novice
    Attached Files Attached Files

  9. #9
    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,288

    Re: Formula to Count Occurrences of 'X' Appearing Within Set Value

    I'll have a look, but please don't provide workbooks that are NOT representative of your real data - it's a waste of our time and yours.

  10. #10
    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,288

    Re: Formula to Count Occurrences of 'X' Appearing Within Set Value

    This is even easier:

    =COUNTIFS(E$2:E2,E2,I$2:I2,"75% - 100%")

  11. #11
    Registered User
    Join Date
    01-01-2020
    Location
    London, England
    MS-Off Ver
    Office 365 E3 - version 1808
    Posts
    27

    Question Re: Formula to Count Occurrences of 'X' Appearing Within Set Value

    No problem.

    The formula is nearly there, but it's currently not showing being specific to the person as it goes further down the sheet. Does the sheet need a hidden column where it can identify with each individual person so the formula is accurate to the absolute reference (of which there are multiple as there are multiple people)?

    I've added the workbook back in with your formula with annotation as it is clearer then my explanation (my apologies!)

    Thanks again,

    EN
    Attached Files Attached Files

  12. #12
    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,288

    Re: Formula to Count Occurrences of 'X' Appearing Within Set Value

    That's because you have copied it incorrectly. This is the formula you have in J8:

    =COUNTIFS(E$2:E5,E5,I$2:I5,"75% - 100%")

    Can you see the problem? If it had been copied down correctly (by dragging) from J2, it would be this:

    =COUNTIFS(E$2:E8,E8,I$2:I8,"75% - 100%")

    Start again. The formula in J2 is correct - drag it down again to get this:

    Excel 2016 (Windows) 32 bit
    E
    I
    J
    1
    Number of Times FULL FAIL
    2
    A
    75% - 100%
    1
    3
    B
    75% - 100%
    1
    4
    C
    75% - 100%
    1
    5
    D
    75% - 100%
    1
    6
    E
    75% - 100%
    1
    7
    F
    75% - 100%
    1
    8
    F
    75% - 100%
    2
    9
    F
    75% - 100%
    3
    10
    F
    75% - 100%
    4
    11
    F
    75% - 100%
    5
    12
    G
    75% - 100%
    1
    13
    H
    75% - 100%
    1
    14
    H
    75% - 100%
    2
    15
    F
    75% - 100%
    6
    16
    F
    75% - 100%
    7
    17
    F
    75% - 100%
    8
    18
    I
    75% - 100%
    1
    19
    I
    75% - 100%
    2
    Sheet: Sheet1
    Attached Files Attached Files
    Last edited by AliGW; 01-02-2020 at 11:36 AM.

  13. #13
    Registered User
    Join Date
    01-01-2020
    Location
    London, England
    MS-Off Ver
    Office 365 E3 - version 1808
    Posts
    27

    Re: Formula to Count Occurrences of 'X' Appearing Within Set Value

    You're absolutely right (of course), my excel click and drag was playing up!

    Thanks again Ali

  14. #14
    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,288

    Re: Formula to Count Occurrences of 'X' Appearing Within Set Value

    OK - well, I am glad you got it working.

+ 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: 5
    Last Post: 04-07-2019, 12:48 PM
  2. [SOLVED] Formula to count number of occurrences that meet multiple criteria
    By Losguapos1 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-13-2018, 07:38 AM
  3. [SOLVED] Formula to count number of occurrences
    By madhatter40 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-04-2018, 10:09 AM
  4. Replies: 7
    Last Post: 09-19-2012, 12:25 AM
  5. Formula to Count the Number of Occurrences of a Text String in a Range
    By poug1903 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-10-2011, 06:49 AM
  6. Formula to count number of occurrences of a word, with some additional conditions
    By mindmystique in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-14-2011, 05:29 AM
  7. Replies: 10
    Last Post: 10-10-2009, 07:30 PM

Tags for this Thread

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