+ Reply to Thread
Results 1 to 10 of 10

Average number of times a text string occurs

  1. #1
    Registered User
    Join Date
    09-02-2012
    Location
    Plymouth, United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    5

    Average number of times a text string occurs

    Hi all,
    I have a column of results which are either 'Win' or 'Lose' and need to find out the average number of times that 'Lose' occurs but I only know how to obtain a mean on number strings.

    Kind regards.........

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Average number of times a text string occurs

    There are several solutions possible, but

    You get better help if you post an Excel-file (example of your workbook), without confidential information.

    Make sure the workbook demonstrates your desired results if possible, or just highlight the cells you're trying to fix.

    Use BEFORE/AFTER sheets if that helps make it clearer.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    09-02-2012
    Location
    Plymouth, United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Average number of times a text string occurs

    Hopefully you can see from the attached spreadsheet what I am trying to do.....thanks for responding....
    Attached Files Attached Files
    Last edited by Cutter; 09-02-2012 at 09:30 AM. Reason: Removed whole post quote

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Average number of times a text string occurs

    Please reply, if this is what you're up to.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-02-2012
    Location
    Plymouth, United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Average number of times a text string occurs

    Hi Oeldere, not quite. I want to know the average number of Losers before a winner; so if say from 11 races there is 1 winner followed by 4 losers, then a winner, then 6 losers, then a winner, the average number of losers is 5.........does that make sense.

    Thanks again......

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Average number of times a text string occurs

    Not realy. How you come on an average of 5.

    1 winner
    10 losers
    11 total

    The average losers of total is 10/11.

    This answer not equals to 5.

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Average number of times a text string occurs

    OP means WLLLLWLLLLLLW 2 sequences of L one of 4 one of 6 so the average is(6+4)/2 =5 not sure how to calculate that
    well this does it for whatever use it is lol
    Attached Files Attached Files
    Last edited by martindwilson; 09-02-2012 at 08:02 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  8. #8
    Registered User
    Join Date
    09-02-2012
    Location
    Plymouth, United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Average number of times a text string occurs

    Hi Oeldere, sorry, it's obviously my inability to put the problem across in a logical way, never the less, martindwilson has explained it very much better than I; and yes that is what I am after thanks. I take my hat off to you people for your knowledge of Excel formulae as I have always struggled like hell trying to get to grips with the syntax. I think I understand your instruction Martin, I shall soon know when I enter some more data and if the results are as promising as they appear to be (a little more to it than meets the eye) then, if you guys are interested, I shall tell you what it amounts to.

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Average number of times a text string occurs

    I think the average streak of wins and losses is ...

    Please Login or Register  to view this content.


    Formulas return 1.11 and 5.56 respectively.

    Both MUST be confirmed with Ctrl+Shift+Enter insead of just Enter
    Entia non sunt multiplicanda sine necessitate

  10. #10
    Registered User
    Join Date
    09-02-2012
    Location
    Plymouth, United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Average number of times a text string occurs

    Thanks all for your responses, I think Martin came up with the easiest way for me to sort the problem though.

    Kind regards........

+ 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