Formula to separate a number into individual including double 0.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,444
Office Version
  1. 2007
Platform
  1. Windows
Hi everyone,
I'm looking for a formula that will return the digits from a number in separate cell even if it is 00 or 01, Thank you.
 

Attachments

  • 11111.PNG
    11111.PNG
    2.3 KB · Views: 12

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
If you are using XL2010 or a later version then with Power Query

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Split Column by Position" = Table.SplitColumn(Source, "Column1", Splitter.SplitTextByRepeatedLengths(1), {"Column1.1", "Column1.2"})
in
    #"Split Column by Position"
 
Upvote 0
Thank you very much alansidman, but I'm looking for a formula, I'm still using 2007
 
Upvote 0
How about
Excel Formula:
=LEFT(A1,1)

and
Excel Formula:
=RIGHT(A1,1)
 
Upvote 0
If you only have two-digit numbers this will work:
Book1
LBLCLDLELF
5as textas value
6000000
7010101
8101010
9111111
Sheet1
Cell Formulas
RangeFormula
LC6:LC9LC6=LEFT(LB6,1)
LD6:LD9LD6=RIGHT(LB6,1)
LE6:LE9LE6=--(LEFT(LB6,1))
LF6:LF9LF6=--RIGHT(LB6,1)
 
Upvote 0
Columns A:C are formatted as text. If you need the output to be numbers add a zero (e.g. =MID($A1,COLUMNS($A:B)-1,1)+0).
SpeedTest.xlsm
ABC
10000
20101
31010
Sheet2
Cell Formulas
RangeFormula
B1:C3B1=MID($A1,COLUMNS($A:B)-1,1)
 
Upvote 0
Thank you guys for your answers but I can't make it work !! The cell were are the 00,01,10,11 are fill with this formula :
=LOOKUP(KZ6,'New Code1'!$LZ$4:$MA$7) which is Formatted as Custom because it let me keep the double 0 and 01 which I need for my system.

My reference table is :
1 = 00
2 = 01
3 = 10
4 = 11
So for me to keep my reference table working I had to formatted the cells as Custom and when I use your formulas it's not working, maybe you could show me a different way ?

So when I use this formula for exaple :
=--(LEFT(LA6,1)) and =--RIGHT(LA6,1)

The left one don't return the right digit see in green !

1234.PNG


What am I doing wrong ???
Thank you.
 

Attachments

  • 11111.PNG
    11111.PNG
    2.3 KB · Views: 6
Upvote 0
Try replace your current lookup formula with this.
Excel Formula:
=TEXT(LOOKUP(KZ6,'New Code1'!$LZ$4:$MA$7),"00")
 
Upvote 0
Wow, Thank you so much Cubist it works perfect now, I really appreciate your help and everyone else with all your formulas you guys are the Greatest.
Thank you.
 
Upvote 0

Forum statistics

Threads
1,223,705
Messages
6,173,989
Members
452,541
Latest member
haasro02

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