parse cell data

I2omani

Board Regular
Joined
Feb 8, 2007
Messages
85
Hi,
I have over 3000 rows of data similar to "MAYALB93.0106.04.39" in column E1. I want to parse it so that ...
A1 = MAYALB93
B1 = 0106
C1 = 04
D1 = 39

so far i was able to come up with this formula below , but i really feel lost

in A1 i did this:
Code:
=LEFT(E1,FIND(".",E1)-1)

in B1 i did this:
Code:
=MID(E1,FIND(".",E1)+1,FIND(".",E1,FIND(".",E1)+1)-1-FIND(".",E1))

I would really appreciate any suggestions
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Data > Text to Columns, select delimited > next, Tick other and enter a full stop next to it, press finish
 
Upvote 0
.. I am keen to use the formulas.
Is there a particular reason for that? This sort of issue is exactly what Text to Columns is designed for.
With a couple of extra tweaks on what mrshl9898's suggested, you could have the results in columns A:D as required and preserve any leading 0's like in your "0106" and "04"
 
Upvote 0
thank you. but when i try the text to column , it eliminates leading 0's

keep in mind that some rows might not have leading 0 and just start 144.XX
 
Last edited:
Upvote 0
If you really do want formulas, try this, copied across and down.

Excel Workbook
ABCDE
1MAYALB9301060439MAYALB93.0106.04.39
TTC
 
Upvote 0
thank you. but when i try the text to column , it eliminates leading 0's
:) That's why I said
With a couple of extra tweaks .. you could .. preserve any leading 0's like in your "0106" and "04"
In the Text to Columns, in Step 3

- You can choose the Destination so you could type A1 into that box
- In the data preview window at the bottom, click in the second column where you see the first number (eg 0106) & the column should go black. Then at the top section of the dialog, select the 'Text' button. repeat this step for any other columns that may contain leading 0's
- Finish
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,224
Members
452,620
Latest member
dsubash

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