Excel - Add a suffix or prefix

Ask a question



Issue


I need a formula that will add a zero at the end of a 4 digit number in each cell.

Solution


Use this formula:
Let say value is in A1, then in B1, use (to add zero as suffix):
=LEFT(A1 & "00000", 5) 

To add zero as prefix:
=RIGHT("00000" & A1, 5) 

Note that


Thanks to rizvisa1 for this tip on the forum.
Jean-François Pillou

CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Learn more about the CCM team

Related