Formula to move decimal point 2 places to the left

Inxcel

New Member
Joined
Jun 1, 2018
Messages
2
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
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
have a lookup table in first column 0 then 10 - in second column 1.0 then 1.1 - call it mytable

then if A1 contains 0 in B1 put =vlookup(A1, mytable,2)
 
Upvote 0
To get the value 1 or 1.1 from 0 or 10 in cell A2, use this formula...

=1+A2/100
 
Upvote 0
Rick, thanks for the formula. Simple & did the job.

Oldbrewer, I will keep this in mind for next time.

Cheers
Inxcel
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top