Formula help.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,410
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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
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,215,491
Messages
6,125,102
Members
449,205
Latest member
ralemanygarcia

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