+ Reply to Thread
Results 1 to 3 of 3

Addition in base 6

  1. #1
    Forum Contributor
    Join Date
    11-26-2008
    Location
    UK
    MS-Off Ver
    Using Excel 2019
    Posts
    317

    Addition in base 6

    Hi,

    I've got a column of numbers that represent the number of overs bowled in games of cricket. Whilst these are whole numbers (eg. 34 overs + 34 overs) the addition isn't a problem, but when they are incomplete overs (eg. 34.4 overs + 34.5 overs) then the addition if out of kilter as it sums them in base 10, and not in base 6. (As there are six balls in an over, not ten for anyone who doesn't know!)

    Anyone know a formula for this or was round it? Ta
    Last edited by Barking_Mad; 06-14-2009 at 04:49 AM.

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

    Re: Addition in base 6

    If we assume

    A1: 34
    A2: 34.5
    A3: 33.2

    Sum of 102.1

    A4: =DOLLARFR(SUMPRODUCT((INT(A1:A3)*6)+(MOD(A1:A3,1)*10))/6,6)

    In my experience it's often easier to store the overs as balls bowled in an adjacent cell... ie:

    B1: =(INT(A1)*6)+(MOD(A1,1)*10)

    Then SUM the deliveries and divide by 6... then use DOLLARFR to return the decimal remainder into base 6 value, ie

    B4: =DOLLAFR(SUM(B1:B3)/6,6)
    Last edited by DonkeyOte; 06-14-2009 at 04:40 AM.

  3. #3
    Forum Contributor
    Join Date
    11-26-2008
    Location
    UK
    MS-Off Ver
    Using Excel 2019
    Posts
    317

    Re: Addition in base 6

    Hello Donkey and thanks (again!) I only just realised this was summing them wrongly after 9 weeks of the season!

+ 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