+ Reply to Thread
Results 1 to 7 of 7

Count and list text occurrences

Hybrid View

  1. #1
    Registered User
    Join Date
    09-18-2013
    Location
    LD
    MS-Off Ver
    Excel 2007
    Posts
    4

    Count and list text occurrences

    Hi to all,
    I'm a new entry of this forum and I need your help.

    Suppose tu have the table in attach, I need:
    - to count the maximum number of occurrence for each item in the row 4
    - to check if the maximum calculated value is less than a specific value.

    Could someone help me?

    Thank you!!!!
    Attached Images Attached Images

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Count and list text occurrences

    Hi freelancercs,

    Welcome to the forums. I suggest you take at the "Forum Rules" as an early activity, it will possibly save you from the wrath of the "moderators" who struggle daily to keep us all in line

    It is always a really good idea to post a sample spreadsheet with your requests showing your starting position and your expected results.

    Most of us volunteers (of varying skills and experience) work better with a spreadsheet in front of us.

    Again, welcome, we are happy to help but please post an example spreadsheet to work with (and remember to sanitise out any really sensitive data )

    Cheers

    Jmac1947

    1. Please consider clicking on the * Add Reputation if you think this post has helped you
    2. Mark your thread as SOLVED when question is resolved

  3. #3
    Registered User
    Join Date
    09-18-2013
    Location
    LD
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Count and list text occurrences

    Hello Jmac1947,

    thank you for the advice!
    I'm sorry for the mistake!

    I attached the example file.

    Thank you!!

    freelancercs
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Count and list text occurrences

    Hi again,

    thanks for the attached spreadsheet but I am still

    what is the specific value??

    the data in the sample don't actually give me a sense of what you are trying to do... can you be a bit more explicit (just imagine a business analyst was asking you "so exactly what are you trying to do"

  5. #5
    Registered User
    Join Date
    09-18-2013
    Location
    LD
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Count and list text occurrences

    You are right again.

    I attached the modified file.

    I have to check the max occurrence of each line (row4) and if for each item the relative max is less than a specific value, supposed 6.
    So, for example, vl1 has 2 occurrence, vl2 and vl3 have 1 occurrence and so the check return me the true value.
    If one line has 7 occurrence, then the check return me the false value.

    Is my problem more clear now?
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Count and list text occurrences

    not really, still

    if I understand you from the second spreadsheet and your explanation you posted:

    1. rows 1 thru 4 are basically ignored yes/no?
    2. row 5 is the only row you are interested in yes/no?

    3. you are trying to count instances of cells in row 5 that are the same so vl1 = 2, vl2 = 1, vl3 = 1 etc

    4. if the individual counts are less than a magic number (say 6 as in your post) then somewhere you want a true/false flag recorded? (where would you expect to see "True" or "False" shown??

    Sorry again if I seem a bit slow but your posts and spreadsheet do not give me a clear sense of what you are trying to achieve

  7. #7
    Registered User
    Join Date
    09-18-2013
    Location
    LD
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Count and list text occurrences

    Exactly...I need to check for each line if the number of object on that line is less than 6, it's a constraint.

    The result can be a flag or also a list as the following:

    vl1 2
    vl2 1
    vl3 1

    This way I could apply the check in another way.
    I don't know if it's necessary to use a macro or if it's possible to do that by a formula.

    Thank you!

+ 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. count the occurrences of text
    By Elainefish in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-01-2013, 09:32 AM
  2. [SOLVED] Count occurrences of text in a range
    By braydon16 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-18-2013, 08:33 PM
  3. Replies: 3
    Last Post: 01-09-2013, 07:55 PM
  4. Count occurrences of text with various criteria
    By ludgirardi in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 12-20-2012, 05:31 AM
  5. Count occurrences of text with various criteria
    By ludgirardi in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 12-18-2012, 07:50 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