+ Reply to Thread
Results 1 to 4 of 4

Counting Non-Duplicate Appearances of Text in Cells with Criteria from other columns

Hybrid View

  1. #1
    Registered User
    Join Date
    09-04-2018
    Location
    UK
    MS-Off Ver
    2013
    Posts
    24

    Counting Non-Duplicate Appearances of Text in Cells with Criteria from other columns

    Hello,

    Attached is a outline of What I've been working on. What I want to do is count how many times a colour appears WITHIN the text of the cells in Column B without including duplicates, I think I've managed that with the formula in Column H? But what I can't work out to do is how, in a formula, to filter it further so it e.g. only counts entries in Column B where Column C is 'A' or 'B' and Column D is over 3.

    Thanks,
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Counting Non-Duplicate Appearances of Text in Cells with Criteria from other columns

    Please try at I2
    =SUMPRODUCT(($B$2:$B$100<>"")*($C$2:$C$100="A")*($D$2:$D$100>3),(ISNUMBER(SEARCH($F2,$B$2:$B$100)))/COUNTIFS($B$2:$B$100,$B$2:$B$100&"",$C$2:$C$100,$C$2:$C$100&""))

    or
    =SUM(SIGN(FREQUENCY(IF(ISNUMBER(SEARCH(F2,$B$2:$B$100))*($C$2:$C$100="a")*($D$2:$D$100>3),MATCH($B$2:$B$100,$B$2:$B$100,)),ROW($B$1:$B$100))))
    and press Ctrl+Shift+Enter
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-04-2018
    Location
    UK
    MS-Off Ver
    2013
    Posts
    24

    Re: Counting Non-Duplicate Appearances of Text in Cells with Criteria from other columns

    Thanks a lot,

    Also is there a good way to count 'this' OR 'that' in the same column using this formula, e.g. count all those where value in Column C is 'A' OR 'B'? I know you can just '+' and double up the formula with that one bit changed, but it's a bit long winded.

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Counting Non-Duplicate Appearances of Text in Cells with Criteria from other columns

    1st formula not sure if it count correctly, please test further.

    =CEILING(SUMPRODUCT(($B$2:$B$100<>"")*(($C$2:$C$100="A")+($C$2:$C$100="B"))*($D$2:$D$100>3)*(ISNUMBER(SEARCH($F2,$B$2:$B$100)))/COUNTIFS($B$2:$B$100,$B$2:$B$100&"")),1)

    I have more confidence on the 2nd formula.

    =SUM(SIGN(FREQUENCY(IF(ISNUMBER(SEARCH(F2,$B$2:$B$100))*(($C$2:$C$100="a")+($C$2:$C$100="b"))*($D$2:$D$100>3),MATCH($B$2:$B$100,$B$2:$B$100,)),ROW($B$1:$B$100))))
    and press Ctrl+Shift+Enter

+ 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. Counting appearances of particular unique IDs
    By NowATxn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-27-2018, 05:27 PM
  2. [SOLVED] Counting Duplicate Text With 2 Criteria
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-22-2014, 10:33 AM
  3. [SOLVED] Counting Duplicate Text With 2 Criteria
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-21-2014, 01:59 PM
  4. Counting ID appearances with parameters
    By dems in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-21-2010, 02:07 PM
  5. Counting Duplicate cells in multiple columns - pt2
    By dgcuk23 in forum Excel General
    Replies: 2
    Last Post: 03-12-2009, 07:30 PM
  6. Counting Duplicate cells in multiple columns
    By dgcuk23 in forum Excel General
    Replies: 6
    Last Post: 03-10-2009, 05:05 PM
  7. Counting Duplicate Cells in different columns
    By SailorGuy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-06-2007, 09:44 AM

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