+ Reply to Thread
Results 1 to 8 of 8

Split runs from wickets in cricket score

  1. #1
    Registered User
    Join Date
    11-20-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    3

    Split runs from wickets in cricket score

    Hi

    I'm currently doing a project for uni where I need to get large amounts of cricket batting data in excel. One of the things I want to do is work out the average number of wickets taken per over. However, the data is in the form "230/7" where 230 is runs scored and 7 is wickets taken. Is there a way of separating the wickets from the runs ie just have a column with the number of wickets without the 230 or forwards slash?

    Thanks
    James

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Split runs from wickets in cricket score

    Strange Uni project !!

    You can use this formula, assuming that text data is in A1:

    =RIGHT(A1,LEN(A1)-FIND("/",A1))*1

    Hope this helps.

    Pete

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

    Re: Split runs from wickets in cricket score

    =mid(a1,find("/",a1)+1,2)+0
    "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

  4. #4
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Split runs from wickets in cricket score

    Welcome to the forum

    try this :
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  5. #5
    Registered User
    Join Date
    11-20-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Split runs from wickets in cricket score

    Quote Originally Posted by Pete_UK View Post
    Strange Uni project !!

    You can use this formula, assuming that text data is in A1:

    =RIGHT(A1,LEN(A1)-FIND("/",A1))*1

    Hope this helps.

    Pete
    Thanks Pete that works great. However is there a way of showing the value '10' is there is no forwards slash?

    The project is predicting the outcomes of cricket matches, not just wickets It's the very early stages so just wanting to create a few basic models before progressing into the more complex stuff.

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

    Re: Split runs from wickets in cricket score

    =iferror(mid(a1,find("/",a1)+1,2)+0,10)

  7. #7
    Registered User
    Join Date
    11-20-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Split runs from wickets in cricket score

    Quote Originally Posted by martindwilson View Post
    =iferror(mid(a1,find("/",a1)+1,2)+0,10)
    Thanks for that, much appreciated.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Split runs from wickets in cricket score

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Replies: 2
    Last Post: 03-20-2012, 06:30 PM
  2. Highest Cricket Batting Score, non-consecutive
    By Moosetg in forum Excel General
    Replies: 12
    Last Post: 02-20-2012, 10:29 AM
  3. cricket batsman highest score from list
    By cricket_stoner in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-29-2007, 01:46 PM
  4. Maximum score in cricket season
    By BernzG in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 07-30-2007, 09:49 PM
  5. Cricket Score sheets?
    By Rodney in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 10-21-2005, 08:05 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