Return number into separate cells

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,459
Office Version
  1. 2007
Platform
  1. Windows
Hello, I'm looking for formulas that will separate a 3 or 4 digits number into 3 cell, like the example here if I have the number 6104, the 6 would be in the 1st cell A2 the 10 in B2 and 4 in C2 but the problem is that with my data I get sometime 3 digits number or 4 digits number so I don't get the right return in B2 with this formula :

A2 =MID(TEXT(A1,"000"),1,1)+0
B2 =MID(TEXT(A1,"000"),2,2)+0
C2 =MID(TEXT(A1,"000"),3,2)+0

A2 and C2 are Ok but B2 I have a problem because of the 2 centered digits, could this be solve ? Thank you.

12.PNG
 
Try these three:

A2: =LEFT(A1,1)
B2: =MID(A1,2,LEN(A1)-2)
C2: =RIGHT(A1,1)
 
Upvote 0
Solution
WOOOWW, Thank you so much Joe4, this really help me, I appreciate you, quick response and accurate.
Thanks.
 
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,226,840
Messages
6,193,281
Members
453,788
Latest member
drcharle

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