text string brain cramp...

decisionsupportdiva

New Member
Joined
Jan 20, 2005
Messages
16
Hopefully this will be as easy as I think it should be for someone... for me, I am at a loss.

I have a column of numbers:
433.5672
26.136
4.12
0.5999
10.06

etc.

I need them to look like this in order to upload them to our system:
00000043357
00000002614
00000000412
00000000060
00000001006

In other words, rounded to the 2nd decimal place, 11 characters, right justified with leading zeroes.

My first step was to round them, thinking this would give me two places, and then I could just use Text to Columns with "." as the delimiter, then use "RIGHT("00000000"&...) etc. and add the leading zeroes I need.

But rounding the numbers doesn't give me the two decimals all the time, meaning:

433.57
26.14
4.12
0.6
10.06

Which means when I use Text to Columns, I get:
433 57
26 14
4 12
0 6 ** should be 60
10 6 ** should be 6... how can I differentiate six cents from sixty cents??

I hope this makes sense to someone as I am under pressure and possibly not explaining myself well. I believe I am looking for a function that differentiate the hundreths from the tenths place, but maybe someone else has something better to suggest.

Thanks,
Amanda
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,214,588
Messages
6,120,409
Members
448,959
Latest member
camelliaCase

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