+ Reply to Thread
Results 1 to 3 of 3

Cricket Spreadsheet

Hybrid View

  1. #1
    Registered User
    Join Date
    04-24-2007
    Posts
    2

    Cricket Spreadsheet

    Hi Guys & Girls,
    I am trying to set up a spreadsheet to enter cricket stats.
    It's been fine until I come to 'number of overs bowled'
    The problem is that there are only six balls in an over.

    I need excel to recognise that for instance when i enter '5.5' it means '5 overs and 5 balls' not '5 and a half' overs.

    I am assuming that i need to change the cell properties from calculating in decimal to calculating in groups of six.

    At the moment as a workaround I am just entering 'balls bowled' instead of 'overs bowled'

    Any help would be much appreciated

    thanks
    Mark

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by kingspur06
    Hi Guys & Girls,
    I am trying to set up a spreadsheet to enter cricket stats.
    It's been fine until I come to 'number of overs bowled'
    The problem is that there are only six balls in an over.

    I need excel to recognise that for instance when i enter '5.5' it means '5 overs and 5 balls' not '5 and a half' overs.

    I am assuming that i need to change the cell properties from calculating in decimal to calculating in groups of six.

    At the moment as a workaround I am just entering 'balls bowled' instead of 'overs bowled'

    Any help would be much appreciated

    thanks
    Mark
    Hi,

    if you enter as 5.5, then

    =SUM(IF(A1:A5>0,INT(A1:A5)))+INT((SUM(A1:A5)-SUM(IF(A1:A5>0,INT(A1:A5))))*10/6)+((((SUM(A1:A5)-SUM(IF(A1:A5>0,INT(A1:A5))))*10/6)-INT((SUM(A1:A5)-SUM(IF(A1:A5>0,INT(A1:A5))))*10/6))*6/10)

    will accumulate as Overs / Balls

    I had also

    =SUM(IF(A1:A5>0,INT(A1:A5)))+INT(SUM(IF(A1:A5>0,MOD(A1:A5,1)))*10/6)+(MOD(SUM(IF(A1:A5>0,MOD(A1:A5,1)*10/6)),1))*6/10

    or

    =SUM(INT(A1:A5))+INT(SUM(MOD(A1:A5,1))*10/6)+(MOD(SUM(MOD(A1:A5,1)*10/6),1))*6/10

    all of which require Ctrl/Shift/Enter rather than Enter as formula.

    hth---
    Last edited by Bryan Hessey; 04-24-2007 at 09:55 AM.
    Si fractum non sit, noli id reficere.

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Closing thread - duplicate posting
    http://www.excelforum.com/showthread.php?t=597635
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

+ 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