+ Reply to Thread
Results 1 to 2 of 2

Statistical analysis of text

  1. #1
    Registered User
    Join Date
    08-31-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    1

    Statistical analysis of text

    I've got a spreadsheet which has data in the first few columns, then another couple of columns which have formulae for calculations. The last column says "profit/loss" where I have two values based on an if statement: if(L3>0, "P", "L&quot. What I want to do is analyse the trends in profit/loss - so I have a sequence that goes P P L L L L P L L P P P L L L L. How can I get excel to analyse these and put the values in a statistical distribution? I want to get statistics on how long each profit/loss session lasts. That is, I want a distribution that says:

    Days profit Frequency
    1 1
    2 1
    3 1
    4 0
    5 0
    etc., and another for losses.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Statistical analysis of text

    You can use a Frequency Array

    Assume for sake of demo that

    a) your sequence is located in C2:C17

    b) your day list (say 1 to 7) is located in E2:E8 with results to be listed in adjacent cells
    You can get the frequencies of the durations with:

    Please Login or Register  to view this content.
    Arrays are expensive so keep ranges as lean as possible else consider use of lightweight helper calcs to negate need for Array in first instance.

+ 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