+ Reply to Thread
Results 1 to 6 of 6

Counting Instances where 3 or more concurrent cells containing specific text

  1. #1
    Forum Contributor
    Join Date
    05-04-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    125

    Counting Instances where 3 or more concurrent cells containing specific text

    Hi,

    I've got data for products on individual rows, with each having 100 or greater columns running from B:CZ (this is a date range)

    Some of the cells contain the word 'Data", and for each row I'm looking to count the number of times that three concurrent cells have the word 'Data'. The cells only contain the word 'Data' or are blank, so there aren't many choices

    I've attached a sample file which might explain my issues a bit better

    Any help would be appreciated

    Thanks

    David

    Data Example.xlsx

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Counting Instances where 3 or more concurrent cells containing specific text

    In DA4:

    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Quang PT

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Counting Instances where 3 or more concurrent cells containing specific text

    Hey David,

    What should happen in 4 "Data" are in a row? Should that give 2?

    BTW - I like Bebo's answer.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Counting Instances where 3 or more concurrent cells containing specific text

    Quote Originally Posted by MarvinP View Post
    Hey David,
    What should happen in 4 "Data" are in a row? Should that give 2?
    BTW - I like Bebo's answer.
    Thaks for kind words, Marvin.
    Title said "3 or more..." is clear.

  5. #5
    Forum Contributor
    Join Date
    05-04-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    125

    Re: Counting Instances where 3 or more concurrent cells containing specific text

    Thanks Bebo021999 for the fantastic solution, I added a reputation :-)

    Much appreciated.

    David

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Counting Instances where 3 or more concurrent cells containing specific text

    Quote Originally Posted by bebo021999 View Post
    =SUMPRODUCT(--(FREQUENCY(IF($B$4:$CZ$4<>"",COLUMN($B$4:$CZ$4)-MIN($B$4:$CZ$4)+1,""),IF($B$4:$CZ$4="",COLUMN($B$4:$CZ$4)-MIN($B$4:$CZ$4)+1,""))>=3))
    Try it like this...

    Array entered**:

    =SUM(IF(FREQUENCY(IF(B4:CZ4<>"",COLUMN(B4:CZ4)),IF(B4:CZ4="",COLUMN(B4:CZ4)))>=3,1))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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 Cells with Specific Text and Font Color
    By omeng414 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-29-2014, 05:03 AM
  2. How to count and report instances of specific text in a block of cells?
    By Rowlock in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-17-2014, 06:23 AM
  3. [SOLVED] Excel 2007 : Counting the number of instances in a specific month
    By Dutch01 in forum Excel General
    Replies: 6
    Last Post: 06-03-2012, 03:25 PM
  4. Replies: 0
    Last Post: 06-14-2011, 04:09 AM
  5. Macro for counting instances of text
    By ameya27 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-04-2008, 08:18 AM
  6. [SOLVED] counting instances of specific times in fields with date and time
    By Rob Odum in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-13-2006, 11:10 AM
  7. [SOLVED] Counting cells not containing specific text
    By [email protected] in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-09-2006, 03: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