+ Reply to Thread
Results 1 to 4 of 4

Searching for exact phrases

  1. #1
    Registered User
    Join Date
    12-08-2010
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Searching for exact phrases

    I currently have a listing of all plays run by a high school football team for the 2010 season. What I'd like to do is take that data and break it down into some meaningful statistics. What I'm trying to do is break down all offensive plays into 5 distinct areas:

    run inside
    run outside
    pass short
    pass medium
    pass long

    I have it currently set up so that I can break the plays down into run inside, run outside, and pass. Now I'm trying to break down the passes into short, medium, and long. I want anything 1-10 yards to be considered short 11-20 medium and 20+ yards as long. So, with my limited excel knowledge I thought about using the formula =ISNUMBER(SEARCH("1 yard", F2)) and then just changing the yard parameter. (2 yard, 3 yard, 4 yard, etc) The issue with this though is if I have "A Smith passes to J Jones for a 16 yard gain" the formula will return a positive result for both 6 yards and 16 yards. Is there a better way to do this, or is there a way to get the search function to return to me just a TRUE value for 16 and not the 6 and 16 column?

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

    Re: Searching for exact phrases

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    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
    Registered User
    Join Date
    12-08-2010
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Searching for exact phrases

    I've attached a sample of the workbook data as suggested.
    Attached Files Attached Files

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

    Re: Searching for exact phrases

    Try:

    Please Login or Register  to view this content.
    This assuming consistency in that the number of yards is entered within the last 20 characters of the whole strings in column F.

+ 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