+ Reply to Thread
Results 1 to 4 of 4

Create Function fro adding Cricket Overs

  1. #1
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Question Create Function fro adding Cricket Overs

    Hi all,

    i reaaly need some help creating a function that will add cricket overs.

    overs are written as follows:

    1.1, 5.5, 12.3

    The first half of the number is actually a multiple of six and the second half can only reach 5 and represents one bowl.

    so 2.3 overs is actually 15 bowls beacuse 2 * 6 = 12 and .3 = 3 so 12 + 3 = 15.

    hope thats clear for the non-cricket amongst us.

    anyway i need to create a function that will allow me to add over up.

    problem being is i don't know how to get around the second part of the number as once it exceeds .5 it should then at another multiple of 6 then start again at 0.

    i would like to be able to add upto say 20 values at any one time in the function if possible.

    i have no idea how to set this one up so any help is much appreciated

    thanks for reading all
    Mr MaGoo
    Magoo.Inc MMVII

    If i've helped please add to my Rep by Clicking on the Blue Scales in the top right hand corner of the post

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Hi, use the following function in a Code Module in the VBE. In Xl enter

    Please Login or Register  to view this content.
    and the Function() is
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Ta

    Thans very very much mate

  4. #4
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Quick one:

    This Function works really well however:

    my overs are not in one joined range e.g. (A1:A10)

    they are more like A1, A4, A7 etc

    is there an alteration i can make so that the function can be used as follows:

    =AddOvers(A1,A4,A7......)

    Hope that's clear and your help is greatly appreciated!!

    ta

+ 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