Search : in
By :

Excel Leading Zero Format

Last answer on Mar 25, 2009 6:15:40 am GMT a68tbird, on Mar 24, 2009 2:46:13 pm GMT 
 Report this message to moderators

Hello,
I would like some advice on formatting cells to have leading zeroes. I do know about using ="0####", but my problem is somewhat more complex.

The data in the cell can vary from 10 digits to 11, to 12. What I need is that whenever the LEN=10, append 00 to the string (ie. "00##########), when LEN=11, "0###########"), otherwise no change.

I've tried using a custom cell format, but it's tedious to go through many dozens of cells applying the correct format, not to mention that the data is then only masked and can't be exported to a CSV for example.

Any help would be greatly appreciated.

Thanks

Configuration: Windows Vista
Firefox 3.0.7

Best answers for « Excel Leading Zero Format » in :
[Excel]changing cell formula to text Show [Excel]changing cell formula to text Issue Solution Notes Issue Consider that I have: In cell A4, it contains a formula =Sum(A1:B3)+A3/B2. How to extract this formula in cell A6 as a string of text? That is ... I want cell A6...
[Excel] – Countif Formula Show[Excel] – Countif Formula Issue Solution Note Issue I have one excel file in that Column "B" has the "pending or Closed" Status and Column "C" has "Severity 1, Severity 2 and Severity 3" I want to count in one cell with "Pending...
Avoid duplicates in Excel ShowAvoid duplicates in Excel In order to avoid duplication when encoding in a column from an excel sheet: take the conditional format on the first cell under the headings (eg A2) choose the following formula:...
Manipulating Excel comments ShowManipulating Excel comments Associating an explanatory comment to a cell Customizing the format of this comment Associating an explanatory comment to a cell Put your cursor on cell you want to comment. Right-click the cell, then...
Download DBF To XLS Converter ShowThis is a very useful software that will allow anyone to convert DBF files into Excel's .xls format files. Features: The user interface of the converter is very simple to comprehend and almost anyone can do it within some simple clicks. All...
Download XLS (Excel) to DBF Converter ShowDescription The application is designed by WhiteTown Software. XLS (Excel) to DBF Converter is a tool that enables you to convert your XLS files to DBF format quickly and easily. Simple and easy to use, the application has been awarded from various...
Spreadsheet - Formulas ShowIntroduction to Formulas The main use of a spreadsheet is to automate calculations, which means using cells to perform operations based on values in other cells. The spreadsheet recalculates all the values each time a change is made to the value of...
Spreadsheets - The Excel Interface ShowExcel Introduction Microsoft Excel is the spreadsheet in the Microsoft Office office suite. To start it, simply click on the appropriate icon in the Start menu (in Windows) or click on an Excel file (that has an .xls file extension). A Excel...

1

 dvi40, on Mar 25, 2009 6:15:40 am GMT
Reply to dvi40