[color="#3E0000"]
Solution ( guess )
The previous formula solution already always adjust number down,
Row\Col D H K L M N O P 2 1087 1079.9 1090.69 21813.8 21813 1090.65 1090.65 1090.65 3 148.05 146.5 147.95 2959 2959 147.95 147.95 147.95 4 265 267.15 264.47 5289.4 5289 264.45 264.45 264.45 5 30.4 29.95 30 600 600 30 30 30
Row\Col D H K L M N O P 2 1087 1079.9 1090.69 =K2*100/5 =INT(L2) =M2*5/100 =INT(L2)*5/100 =INT(K2*100/5)*5/100 3 148.05 146.5 147.95 =K3*100/5 =INT(L3) =M3*5/100 =INT(L3)*5/100 =INT(K3*100/5)*5/100 4 265 267.15 264.47 =K4*100/5 =INT(L4) =M4*5/100 =INT(L4)*5/100 =INT(K4*100/5)*5/100 5 30.4 29.95 30 =K5*100/5 =INT(L5) =M5*5/100 =INT(L5)*5/100 =INT(K5*100/5)*5/100
The above solution is .05 too small for row 4
So previous solution is correct if H < D
If H > D , the previous solution is .05 too small , so previous solution must be adjusted by +.05 if H > D
=IF(H2K2*100/5 )*5/100,IF(H2>D2,(INT(K2*100/5)*5/100)+0.05,"H is equal to D")) =IF(H3K3*100/5 )*5/100,IF(H3>D3,(INT(K3*100/5)*5/100)+0.05,"H is equal to D")) =IF(H4K4*100/5 )*5/100,IF(H4>D4,(INT(K4*100/5)*5/100)+0.05,"H is equal to D")) =IF(H5K5*100/5 )*5/100,IF(H5>D5,(INT(K5*100/5)*5/100)+0.05,"H is equal to D"))
But we must also check if number is already exact multiple of .05
Like if ( integer (value/.05))
Bookmarks