Search code examples
google-sheetssumdecimalgoogle-sheets-formulaarray-formulas

Increasing a number based on a decimal less than 100?


I'm currently working on some SUMIF formulae which will calculate certain values against specific conditions. All of the values to be calculated are decimalised but are based on 0.80 = 1.00.

As an example if I have 1.25 and 1.60 to add together I would want the outcome to read 3.05 but currently, I would get an outcome of 2.85.

Is it possible to amend the highest number a decimal can read before it converts to 1?

Hope this makes sense.


Solution

  • try:

    =ARRAYFORMULA(SUM(QUOTIENT(D1:D3, 1))+
              QUOTIENT(SUM(MOD(D1:D3, 1)), 0.8)+
                   MOD(SUM(MOD(D1:D3, 1)), 0.8))
    

    0