Inserting decimal inbetween text / numbers

nadzri

New Member
Joined
Oct 4, 2005
Messages
38
Hi,
I got these from previous post.

=IF(LEN(A1)=3,LEFT(A1,1)&"."&RIGHT(A1,2))

1 = 0.01 IF(LEN(A1)=1,LEFT(A1,0)&"0.0"&RIGHT(A1,1))
22 = 0.22 IF(LEN(A1)=2,LEFT(A1,0)&"0."&RIGHT(A1,2))
333 = 3.33 IF(LEN(A1)=3,LEFT(A1,1)&"."&RIGHT(A1,2))
.
.
.
Until 10 digits.

1234567890 = 12345678.90

But the problem arise because nested 'if" can only be use up to 7 times.

What should I do to insert the decimal just by stating "To put decimal two character from the right disregard how many character it is on the left and at the same time converting it from text to numbers(value)?"

Thanks for the help.
Nadzri
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Why don't you convert to numeric first and divide by 100?

Code:
=VALUE(A1)/100
 
Upvote 0

Forum statistics

Threads
1,225,563
Messages
6,185,708
Members
453,316
Latest member
mani_mech031

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