I have an Excel sheet that has multiple columns with decimal values having two digits after the decimal e.g. 15.98, 14.42.
I wrote a formula that changes the value after the decimal point to 0.45 or 0.95, Formula is as follows
=IF(AND(MOD(M8,1)>=0,MOD(M8,1)<=0.49),0.45,0.95)+FLOOR(M8,1)
You would have to use VBA to get your input to transform to your output in the same cell.
You can copy the formula, then select the whole sheet (by clicking the upper-left hand corner box), then pasting, BUT this will only really work for formulas without references (like =1+1
), anything with a reference will cause you to have a self-referencing cell. It's a very good method if you select rows and columns that are outside of the referenced cells range.