Moving all decimals after the second number

jrabi

Board Regular
Joined
Aug 20, 2010
Messages
143
I have the following spreadsheet:


Sales

5444.33
12222.55
123.78
7899999.22
65898.56
565.33

I want the values to be:


54.4433
12.22255
12.378
78.9999922
65.89856
56.533


Is there an easy way, I have over 3000 rows..........
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
It looks like you want to end up with a column of numbers having 2 digits in front of the decimal point. I wish you included an example like 1.23 so we would know for sure... the formula below returna 12.3 for that value.

=--REPLACE(SUBSTITUTE(A2,".",""),3,0,".")
 
Upvote 0
Another way:

=A1/10^(INT(LOG(A1)-1))

Although, what if the number is less than 10?
 
Upvote 0
My preference would be to convert it to a multiplication instead of a division though (saves 2 characters to boot as well)...

=A1*10^(2-LEN(INT(A1)))
DON'T DO THIS

Changing it to a multiplication format makes it return an incorrect result for 7899999.22 (it returns 79, not 78.9999922).
 
Upvote 0

Forum statistics

Threads
1,224,570
Messages
6,179,610
Members
452,931
Latest member
The Monk

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