VBA or formula to seperate long decimal number into separate cells

michaelsmith559

Well-known Member
Joined
Oct 6, 2013
Messages
881
Office Version
  1. 2013
  2. 2007
I need vba or formula that can separate a number into different columns. Must be able to go down entire column.

Here is what I want to do:

HTML:
[RANGE=cls:xl2bb-100][XR][XH=cs:18]Excel 2012[/XH][/XR][XR][XH][/XH][XH]AL[/XH][XH]AM[/XH][XH]AN[/XH][XH]AO[/XH][XH]AP[/XH][XH]AQ[/XH][XH]AR[/XH][XH]AS[/XH][XH]AT[/XH][XH]AU[/XH][XH]AV[/XH][XH]AW[/XH][XH]AX[/XH][XH]AY[/XH][XH]AZ[/XH][XH]BA[/XH][XH]BB[/XH][/XR][XR][XH]1[/XH][XD=h:r][/XD][XD=h:r][/XD][XD=h:r][/XD][XD=h:r][/XD][XD=h:r][/XD][XD=h:r][/XD][XD=h:r][/XD][XD=h:r][/XD][XD=h:r][/XD][XD=h:r][/XD][XD=h:r][/XD][XD=h:r][/XD][XD=h:r][/XD][XD=h:r][/XD][XD=h:r][/XD][XD=h:r][/XD][XD=h:r][/XD][/XR][XR][XH]2[/XH][XD=h:r]1.00002494005922[/XD][XD=h:r][/XD][XD=h:c]1[/XD][XD=h:c]0[/XD][XD=h:c]0[/XD][XD=h:c]0[/XD][XD=h:c]0[/XD][XD=h:c]2[/XD][XD=h:c]4[/XD][XD=h:c]9[/XD][XD=h:c]4[/XD][XD=h:c]0[/XD][XD=h:c]0[/XD][XD=h:c]5[/XD][XD=h:c]9[/XD][XD=h:c]2[/XD][XD=h:c]2[/XD][/XR][XR][XH=cs:18][RANGE][XR][XD]Sheet4[/XD][XH][/XH][/XR][/RANGE][/XH][/XR][/RANGE]
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Sorry about post #1. I hit the wrong button. What I want to accomplish is in post #2. Thanks.

Mike
 
Upvote 0
Enter in AN2 and copy across as long as needed:

=MID(SUBSTITUTE($A3,".",""),COLUMNS($B:B),1)
Excel Workbook
ALAMANAOAPAQARASATAUAVAWAXAYAZBABBBC
1
21,00002494005922100002494005922
Sheet
 
Upvote 0
Just found what was wrong. I forgot to put to change A3 to AL3. Thanks. Works great.

Mike
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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