Hi All,
I need a formula to take a number from cell A2, and move the decimal point 2 places to the left.
So if I have the value 10 entered into the cell A2, it will give me 0.1
=LEFT(A2,LEN(A2)-2)&"."&RIGHT((SUBSTITUTE(A2,".00","")),2)
The formula above works fine, except if the value 0 is entered into A2. I returns an error due to it being 0.
Any help greatly appreciated.
---------
Some further information in case you are wondering what I am trying to do
The cell A2 only ever has 2 values entered into it - 10 or 0. (These equate to a tax rate).
I want to get the value 10 so that it becomes 1.1 (using the above formula, and then adding 1 to it.
I want to get the value 0 so that it becomes 1.0 (if the formula above simply returned a 0 I would be right, but it returns an error).
I expect someone will have a very simple solution, but I have been looking at it for too long, and have excel block.
Cheers
Inxcel
I need a formula to take a number from cell A2, and move the decimal point 2 places to the left.
So if I have the value 10 entered into the cell A2, it will give me 0.1
=LEFT(A2,LEN(A2)-2)&"."&RIGHT((SUBSTITUTE(A2,".00","")),2)
The formula above works fine, except if the value 0 is entered into A2. I returns an error due to it being 0.
Any help greatly appreciated.
---------
Some further information in case you are wondering what I am trying to do
The cell A2 only ever has 2 values entered into it - 10 or 0. (These equate to a tax rate).
I want to get the value 10 so that it becomes 1.1 (using the above formula, and then adding 1 to it.
I want to get the value 0 so that it becomes 1.0 (if the formula above simply returned a 0 I would be right, but it returns an error).
I expect someone will have a very simple solution, but I have been looking at it for too long, and have excel block.
Cheers
Inxcel