Cell value increasing by 1 when value in another cell reaches 100

Viewed 30

In Google Sheets is it possible to have the value in cell A1 to increase by 1 when the value in B1 reaches 100 and also changing the value in B1 to -100?

So for example, "120" in B1 would change the value of A1 to "1" and change the value of B1 to "20".

Basically, I am looking to use the value of A1 as a whole number and the value in B1 as the decimal place but with a max of 99 on the decimal place.

Update following request for same but with varying max decimal numbers:

https://docs.google.com/spreadsheets/d/193Vbg9Dm4qDjIx4PNcmTOkMyPLdDaAr5-HaFkD1V2Eg/edit?usp=sharing

Columns A-C are input columns Columns F-I are to work out the totals of the input columns for the relevant people and then to concatenate as a decimal figure Columns K-N are updated totals using @player0's formula based on the max decimal place being 99 before it increases the whole number by 1 at 100.

So using the 44.120 total as an example, using decimal maximums of 50, 80 & 90 for when the whole number is changed: For 50 - 44.120 would become 46.20 For 80 - 44.120 would become 45.40 For 90 - 44.120 would become 45.30

2 Answers

try:

=ARRAYFORMULA(SPLIT(REGEXREPLACE("0000"&A1:A6, "(.+)(.{2})$", "$1×$2"), "×"))

enter image description here

What want is not 100% able to be completed, but this is:

A B C
1 75 175
0 75 75
=IF(C1>100, LEFT(C1,1), "0") =IF(C1>100, RIGHT(C1, 2), C1) Input Number Here...
Related