+ Reply to Thread
Results 1 to 4 of 4

Counting the number of appearences of several textt segments in a table array

  1. #1
    Registered User
    Join Date
    12-26-2008
    Location
    Sweden
    Posts
    10

    Counting the number of appearences of several textt segments in a table array

    Hi!
    I have a problem regarding a countif formula.
    The problem is as follows. A table array with about 40 X 40 cells in which there might be a text segment that i want to count. If i want to count it depends on wether it matches one of the text segments in a list. So in the 40 x 40 table there are 800 cells which might contain one of the up to 10 text segments. I want to compare a 40 x 40 table with a column with texts and count if there is a match. Can someone help me with this?

    Kind regards
    H3lla

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Counting the number of appearences of several textt segments in a table array

    Try something like:

    =SUMPRODUCT(COUNTIF(A2:D5,F2:F4))

    where A2:D5 is your table and F2:F4 is the criteria range.... adjust ranges to suit.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Counting the number of appearences of several textt segments in a table array

    Have all the text segments (upto 10) listed in a column (say F)..
    Then use
    =IF(F1="",0,COUNTIF(40x40grid,"*"&F1&"*")) and drag down

    ---------- Post added at 04:41 PM ---------- Previous post was at 04:40 PM ----------

    Have all the text segments (upto 10) listed in a column (say F)..
    Then use
    =IF(F1="",0,COUNTIF(40x40grid,"*"&F1&"*")) and drag down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Registered User
    Join Date
    12-26-2008
    Location
    Sweden
    Posts
    10

    Re: Counting the number of appearences of several textt segments in a table array

    Thanks, it works fine now! You guys are very reliable!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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