Formula help.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,404
Office Version
  1. 2007
Platform
  1. Windows
Hi,

I'm using this formula :
=MID(L1,1,1)+0
=MID(L1,2,1)+0
=MID(L1,3,1)+0

Capture.PNG


But when the number start with a "0" the third formula return " #VALUE! ".

What need to be corrected for the first formula to return a "0" if it's start with a "0" ?
Or maybe using another formula.
Thank you.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi serge. Maybe something like this...
Code:
=IF(MID(L1,1,1)=0,0,MID(L1,1,1))
=IF(MID(L1,1,1)=0,MID(L1,1,1),MID(L1,2,1))
=IF(MID(L1,1,1)=0,MID(L1,2,1),MID(L1,3,1))
HTH. Dave
 
Upvote 0
Try this:

=MID(TEXT(L1,"000"),1,1)+0

=MID(TEXT(L1,"000"),2,1)+0

=MID(TEXT(L1,"000"),3,1)+0
 
Upvote 0
Singgle formula in M1:
=MID(TEXT($L1,"000"),COLUMN(A:A),1)
Drag down and accross
 
Upvote 0
Thank you for the formula Phuoc, but it's not giving me the right answer !.
 
Upvote 0
Hi bebo021999, your formula is perfect, Thank you.
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,598
Members
449,089
Latest member
Motoracer88

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